Skip to content

Log response status and body in when authentication fails #1

Open
@reinkrul

Description

@reinkrul

Otherwise, it's hard to find out what failed client side, without looking into the server logs:

failed to create CarePlan: FHIR request failed (POST https://proxy/clinic/orca/cps/CarePlan): Post "https://proxy/clinic/orca/cps/CarePlan": OAuth2 token request (resource=https://proxy/clinic/orca/cps/CarePlan): failed service access token response: 500 Internal Server Error

Server logs:

time="2024-07-28T04:46:19Z" level=error msg="RequestServiceAccessToken failed" error="failed to retrieve presentation definition: server returned HTTP 404 (expected: 200)" module=Auth/iam operation=RequestServiceAccessToken operationID=RequestServiceAccessToken requestURI="/internal/auth/v2/did:web:proxy:nuts:iam:708fa077-9600-405b-b289-f7bf99568120/request-service-access-token" user="<nil>"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions