# Auth0 access token getting 500 response

**URL:** <https://community.auth0.com/t/auth0-access-token-getting-500-response/116693>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [September 20, 2023, 7:58am UTC](https://community.auth0.com/t/auth0-access-token-getting-500-response/116693 "2023-09-20T07:58:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sellochrismodise](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sellochrismodise/32/51025_2.png) [@sellochrismodise](https://community.auth0.com/u/sellochrismodise)\
**Post date:** [September 20, 2023, 7:58am UTC](https://community.auth0.com/t/auth0-access-token-getting-500-response/116693/1 "2023-09-20T07:58:55Z")

</div>

```auto
System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'dev-zwjeuaavtw7unwk4.us.auth0.com/.well-known/openid-configuration'. Will retry at '2023/09/19 16:15:50 +00:00'. Exception: 'System.IO.IOException: IDX20804: Unable to retrieve document from: 'dev-zwjeuaavtw7unwk4.us.auth0.com/.well-known/openid-configuration'.

 ---> System.InvalidOperationException: An invalid request URI was provided. Either the request URI must be an absolute URI or BaseAddress must be set.

   at System.Net.Http.HttpClient.PrepareRequestMessage(HttpRequestMessage request)

   at System.Net.Http.HttpClient.CheckRequestBeforeSend(HttpRequestMessage request)

   at Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.SendAsyncAndRetryOnNetworkError(HttpClient httpClient, Uri uri)

   at Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(String address, CancellationToken cancel)

   --- End of inner exception stack trace ---

   at Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(String address, CancellationToken cancel)

   at Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfigurationRetriever.GetAsync(String address, IDocumentRetriever retriever, CancellationToken cancel)

   at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)'.

 ---> System.IO.IOException: IDX20804: Unable to retrieve document from: 'dev-zwjeuaavtw7unwk4.us.auth0.com/.well-known/openid-configuration'.

 ---> System.InvalidOperationException: An invalid request URI was provided. Either the request URI must be an absolute URI or BaseAddress must be set.

   at System.Net.Http.HttpClient.PrepareRequestMessage(HttpRequestMessage request)

   at System.Net.Http.HttpClient.CheckRequestBeforeSend(HttpRequestMessage request)

   at Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.SendAsyncAndRetryOnNetworkError(HttpClient httpClient, Uri uri)

   at Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(String address, CancellationToken cancel)

   --- End of inner exception stack trace ---

   at Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(String address, CancellationToken cancel)

   at Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfigurationRetriever.GetAsync(String address, IDocumentRetriever retriever, CancellationToken cancel)

   at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)

   --- End of inner exception stack trace ---

   at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)

   at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()

   at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()

   at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.AuthenticateAsync()

   at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme)

   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)

   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)

   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)

   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

HEADERS

=======

Accept: text/plain

Connection: keep-alive

Host: localhost:5000

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0

Accept-Encoding: gzip, deflate, br

Accept-Language: en-US,en;q=0.5

Authorization: Bearer XXX

Cookie: _ga_WZ7RBDHMKW=GS1.1.1690371986.120.0.1690371986.0.0.0; _ga=GA1.1.1509392560.1675084187; PHPSESSID=3rccai85qmcje6d862pfa9jjs6

Referer: http://localhost:5000/swagger/index.html

Sec-Fetch-Dest: empty

Sec-Fetch-Mode: cors

Sec-Fetch-Site: same-origin

```

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [September 22, 2023, 10:25pm UTC](https://community.auth0.com/t/auth0-access-token-getting-500-response/116693/2 "2023-09-22T22:25:03Z")

</div>

Hello @sellochrismodise welcome to the community!

In what context are you receiving this response? The more information you can share about your environment and steps to reproduce the better. I went ahead and redacted the access token that was included in the error, just a heads up 🙂

---

<div class="post-metadata">

**Author:** ![sellochrismodise](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sellochrismodise/32/51025_2.png) [@sellochrismodise](https://community.auth0.com/u/sellochrismodise)\
**Post date:** [October 2, 2023, 11:45am UTC](https://community.auth0.com/t/auth0-access-token-getting-500-response/116693/4 "2023-10-02T11:45:02Z")

</div>

Hi apologies for late response but i managed to fix this by creating new tenant and clients i am able to authenticate now.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 4, 2023, 9:56pm UTC](https://community.auth0.com/t/auth0-access-token-getting-500-response/116693/5 "2023-10-04T21:56:48Z")

</div>

Thanks for following up!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 18, 2023, 9:56pm UTC](https://community.auth0.com/t/auth0-access-token-getting-500-response/116693/6 "2023-10-18T21:56:57Z")

</div>

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