# \[Solved\] Token retrieval issue, status 500, Invalid URL

**URL:** <https://community.auth0.com/t/solved-token-retrieval-issue-status-500-invalid-url/112759>\
**Category:** Get Help\
**Tags:** outage, public-cloud\
**Created:** [August 3, 2023, 6:40am UTC](https://community.auth0.com/t/solved-token-retrieval-issue-status-500-invalid-url/112759 "2023-08-03T06:40:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![john.b](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.b/32/49540_2.png) [@john.b](https://community.auth0.com/u/john.b)\
**Post date:** [August 3, 2023, 6:40am UTC](https://community.auth0.com/t/solved-token-retrieval-issue-status-500-invalid-url/112759/1 "2023-08-03T06:40:45Z")

</div>

Hello,

I have a few tenants which are working fine, except for one.  
This one was working fine for like 2 years now, but starting beginning of August, we are not able to login anymore, I mean, the request to retrieve the token is returning a status code 500 →

> HTTP/2 500  
> {“error”:“ERR\_INVALID\_URL”,“error\_description”:“Invalid URL”}

Looking around, I have seen an incident yesterday, but it should be resolved now: [Service Disruptions in the EU-2 Production Environment • Auth0 Status Page](https://status.auth0.com/incidents/w2772tlxk8dl)  
However, I still have the same issue when trying to request a new token on:

> POST https://.eu.auth0.com/oauth/token

I checked the Production Readiness, and it seems to work fine for all my tenants, except for this one:

 ![readiness checks](https://global.discourse-cdn.com/auth0/original/3X/a/8/a8047e467fcf0ebbb7338e6772c62ea29820e999.png)

Nothing changed on my side, and I can see users activities in my logs on July 31st, so I know that it’s happening since beginning of August.

I tried to search around the community, but I didn’t find a topic related to this issue.  
Did anyone encounter the same issue ?

Any help would be greatly appreciated.

Thanks,  
John

---

<div class="post-metadata">

**Author:** ![john.b](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.b/32/49540_2.png) [@john.b](https://community.auth0.com/u/john.b)\
**Post date:** [August 3, 2023, 12:40pm UTC](https://community.auth0.com/t/solved-token-retrieval-issue-status-500-invalid-url/112759/2 "2023-08-03T12:40:07Z")

</div>

Updating the topic, in case it happens to anyone else.

After talking with Auth0 support, it was caused by a URL inside _Allowed Callback URLs_, _Allowed Logout URLs_ and _Allowed Web Origins._, in our Application Settings.

I still don’t know yet if anything has changed on Auth0’s side for the URL to start causing Internal Server Error, maybe a pattern matching for URL validation (the URL had a custom pattern).

---

<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:** [August 17, 2023, 12:40pm UTC](https://community.auth0.com/t/solved-token-retrieval-issue-status-500-invalid-url/112759/3 "2023-08-17T12:40:48Z")

</div>

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