department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
281 stars 197 forks source link

Cancel Pending Appointment (Part 2) #88670

Closed ldelacosta closed 2 weeks ago

ldelacosta commented 1 month ago

Summary

Reference the first bug ticket #88661

Specs

Steps to Reproduce

Test User: judy.morrison@id.me

  1. Go to: www.staging.va.gov
  2. Login
  3. Click on a pending request
  4. Error appears on the screen (note: the request has not been canceled)

Actual Result

https://github.com/user-attachments/assets/ad193d10-700f-47df-80c7-42e59db121ec

Desired Result

No error message should appear.

Definition of Done

ldelacosta commented 1 month ago

Reference collab cycle ticket: 88446

vbahinwillit commented 1 month ago

Appears to be for CC appointment requests. Adding response from server.

{"errors":"Access token has expired"}
{
    "errors": [
        {
            "title": "Bad Gateway",
            "detail": "Received an an invalid response from the upstream server",
            "code": "VAOS_502",
            "source": {
                "vamfUrl": "https://fwdproxy-staging.vfs.va.gov:4463/vaos/v1/patients/434fce82be04d498f7e7e54f30c0d4c35f61bc4e53610137bcb446723597732a/appointments/6dd7cb5359f54edb9eb0becd33d19118d3e93e266ef7644cf7b9ad2b9ed1262d",
                "vamfBody": "{\"id\":\"640dc8f4-3b61-4ff0-97f3-4d2bf250555a\",\"code\":500,\"errorCode\":7011,\"traceId\":\"66992eee000000003949c33bd1e7ed86\",\"message\":\"failed to cancel appointment\",\"detail\":\"Could not update CC appointment request through the Mobile HSRM Service.\",\"meta\":{\"upstreamErrorSource\":\"mobile-appointment-service\",\"upstreamErrorId\":\"beee3374-26ae-4d38-8def-c38f163ae98a\"}}",
                "vamfStatus": 500
            },
            "status": "502"
        }
    ]
}
ryanshaw commented 1 month ago

@ldelacosta I was unable to reproduce this locally or on staging, here's a screen recording:

https://github.com/user-attachments/assets/accae019-904f-4725-a057-a74f6ccaedf7

ryanshaw commented 1 month ago

I was able to reproduce this (as @vbahinwillit mentioned above) with CC requests. The backend is returning this response:


{
    "errors": [
        {
            "title": "Bad Gateway",
            "detail": "Received an an invalid response from the upstream server",
            "code": "VAOS_502",
            "source": {
                "vamfUrl": "https://fwdproxy-staging.vfs.va.gov:4463/vpg/v1/patients/434fce82be04d498f7e7e54f30c0d4c35f61bc4e53610137bcb446723597732a/appointments/f3b7c26a0b7fdc3d01e19f8a06e9c521780696525c21277dc852fd38ed0cda59",
                "vamfBody": "{\"code\":500,\"status\":500,\"message\":\"An error occurred (ID: 39a98658-0085-4e0b-b52f-3b3162cf5987)\",\"id\":\"39a98658-0085-4e0b-b52f-3b3162cf5987\",\"traceId\":\"66b0f45f000000000a204e3ba6f957a1\"}",
                "vamfStatus": 500
            },
            "status": "502"
        }
    ]
}
ryanshaw commented 2 weeks ago

@ldelacosta I was unable to reproduce this on staging using [judy.morrison@id.me](mailto:judy.morrison@id.me) so reassigning and moving to validate. I believe there were intermittent backend service issues.

ldelacosta commented 2 weeks ago

No issues to report. Closing out the ticket.