# Error: “access\_denied”, errorDescription: “Service not found

**URL:** <https://community.auth0.com/t/error-access-denied-errordescription-service-not-found/105583>\
**Category:** Get Help\
**Tags:** actions-management-api, management-api\
**Created:** [April 26, 2023, 6:49pm UTC](https://community.auth0.com/t/error-access-denied-errordescription-service-not-found/105583 "2023-04-26T18:49:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nelli](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nelli/32/46714_2.png) [@nelli](https://community.auth0.com/u/nelli)\
**Post date:** [April 26, 2023, 6:49pm UTC](https://community.auth0.com/t/error-access-denied-errordescription-service-not-found/105583/1 "2023-04-26T18:49:22Z")

</div>

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/](http://dev-somedev.auth0.com/)  
AUDIENCE: ‘https://dev------.us.auth0.com/api/v2/’

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

How can I fix it?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [April 26, 2023, 10:23pm UTC](https://community.auth0.com/t/error-access-denied-errordescription-service-not-found/105583/3 "2023-04-26T22:23:12Z")

</div>

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](https://auth0.com/docs/troubleshoot/troubleshooting-tools/generate-and-analyze-har-files) and send them to me as a direct message to investigate?

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![nelli](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nelli/32/46714_2.png) [@nelli](https://community.auth0.com/u/nelli)\
**Post date:** [May 1, 2023, 6:55am UTC](https://community.auth0.com/t/error-access-denied-errordescription-service-not-found/105583/5 "2023-05-01T06:55:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [May 1, 2023, 6:40pm UTC](https://community.auth0.com/t/error-access-denied-errordescription-service-not-found/105583/6 "2023-05-01T18:40:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 15, 2023, 6:41pm UTC](https://community.auth0.com/t/error-access-denied-errordescription-service-not-found/105583/7 "2023-05-15T18:41:20Z")

</div>

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