Error: “access_denied”, errorDescription: “Service not found

Hi))
In localhost:3000 everything is ok, but in dev env it doesn’t work.
frontend config
CLIENT_ID: ‘some-id’,
CLIENT_DOMAIN: http://dev-somedev.auth0.com/
AUDIENCE: ‘https://dev------.us.auth0.com/api/v2/’

after clicking the button should redirect to https://hello.dev.com, but redirect to https://hello.dev.com/api/auth/callback/error

How can I fix it?

Hi @nelli,

Thanks for reaching out to the Auth0 Community!

I understand you have experienced an error, specifically with the Error: "access_denied", errorDescription: "Service not found" error.

To help you further, could you please capture the login event in a HAR file and send them to me as a direct message to investigate?

Thanks,
Rueben

Hi @rueben.tiow )) is there any news about how to fix this error?

Hi @nelli,

Thank you for your response and patience!

I have just investigated your HAR file and was able to correlate it to the logs found on your tenant.

On a close inspection, I found that the request failed with the “Service not found” error because the audience parameter that was passed to the /authorize endpoint included an unintentional whitespace.

The actual audience:
audience": " https://{YOUR_DOMAIN}.us.auth0.com/api/v2/",

The expected audience:
audience": "https://{YOUR_DOMAIN}.us.auth0.com/api/v2/",

This typo was hard to detect, and after testing this on my side, I can reproduce the same error message and confirm that this is the source of the problem.

With that, I recommend removing the whitespace from your audience parameter.

I hope this helps!

Please reach out again if you have any additional questions.

Thanks,
Rueben

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.