Skip to content

Unable to identify proxy for host: secure and url #89

Open

Description

@barnyrelph

I'm working through the app at application-restricted-signed-jwt-tutorials/java in preparation for putting auth support into an app that'll integrate with the NHS.

When I run the tests, it looks like it's able to get a token ok, but can't make a call to the hello-world API. The error I get is this:

{"fault":{"faultstring":"Unable to identify proxy for host: secure and url: \/hello-world\/hello\/application","detail":{"errorcode":"messaging.adaptors.http.flow.ApplicationNotFound"}}}

I've generated my JWT and registered that. I've registered my app for the following APIs:

  • Hello World (Sandbox) Enabled
  • Hello World API - Application Restricted (Sandbox) Enabled
  • Personal Demographics Service - Application-Restricted (Sandbox)

Are there any pointers on what I may have done wrong? I can only find one other mention of this error: https://developer.community.nhs.uk/t/pds-fhir-api-internal-errors-returning-404-response-codes/553

Thanks

Barny

Activity

  1. barnyrelph commented on Aug 12, 2024

    @barnyrelph
    Author

    So I think I've got this working now. The example .env has

    export ENDPOINT=https://internal-dev.api.service.nhs.uk/hello-world/hello/application

    which generates the error above, but if I change that to

    ENDPOINT=https://sandbox.api.service.nhs.uk/hello-world/hello/application

    Then the test passes. If I call the sandbox API direct with no auth, then I get a 401, so I'm assuming that things must be working. I'd still like to know that what I've done is correct though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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