# When I call the api "/oauth/token" to refresh token,it responses 500!Why?Help!

**URL:** <https://community.auth0.com/t/when-i-call-the-api-oauth-token-to-refresh-token-it-responses-500-why-help/96597>\
**Category:** Get Help\
**Tags:** grants, management-api\
**Created:** [December 16, 2022, 6:33am UTC](https://community.auth0.com/t/when-i-call-the-api-oauth-token-to-refresh-token-it-responses-500-why-help/96597 "2022-12-16T06:33:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shengnan.qiu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shengnan.qiu/32/33837_2.png) [@shengnan.qiu](https://community.auth0.com/u/shengnan.qiu)\
**Post date:** [December 16, 2022, 6:33am UTC](https://community.auth0.com/t/when-i-call-the-api-oauth-token-to-refresh-token-it-responses-500-why-help/96597/1 "2022-12-16T06:33:32Z")

</div>

#auth0 #refresh token

 ![1](https://global.discourse-cdn.com/auth0/original/3X/f/6/f6848d4cf719e3dce488f7b169c6e357840a1caa.png)  
 ![2](https://global.discourse-cdn.com/auth0/original/3X/4/a/4a6faed6186e185851f020099eb989edccb6c412.png)  
 ![3](https://global.discourse-cdn.com/auth0/original/3X/0/f/0f9246518680c0f56851d6fa46860fb7ae5a7713.png)

---

<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:** [December 17, 2022, 12:03am UTC](https://community.auth0.com/t/when-i-call-the-api-oauth-token-to-refresh-token-it-responses-500-why-help/96597/2 "2022-12-17T00:03:37Z")

</div>

Hi there @shengnan.qiu welcome to the community!

The 500 leads me to believe there is an issue with the request itself - Admittedly, the error isn’t very helpful!

What happens if you omit the `redirect_uri` - I am going off the following doc:

> **[Use Refresh Tokens](https://auth0.com/docs/secure/tokens/refresh-tokens/use-refresh-tokens#use-post-authentication)**
>
> Describes how to use a Refresh Token you received during authorization.

---

<div class="post-metadata">

**Author:** ![shengnan.qiu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shengnan.qiu/32/33837_2.png) [@shengnan.qiu](https://community.auth0.com/u/shengnan.qiu)\
**Post date:** [December 20, 2022, 3:26pm UTC](https://community.auth0.com/t/when-i-call-the-api-oauth-token-to-refresh-token-it-responses-500-why-help/96597/4 "2022-12-20T15:26:00Z")

</div>

You mean the configuration “redirect\_uri” is wrong?

---

<div class="post-metadata">

**Author:** ![shengnan.qiu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shengnan.qiu/32/33837_2.png) [@shengnan.qiu](https://community.auth0.com/u/shengnan.qiu)\
**Post date:** [December 20, 2022, 3:28pm UTC](https://community.auth0.com/t/when-i-call-the-api-oauth-token-to-refresh-token-it-responses-500-why-help/96597/5 "2022-12-20T15:28:10Z")

</div>

However, I use a similar configuration in the test environment. It is true that this error occurs, and 200 is returned normally.

---

<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:** [February 17, 2023, 11:55pm UTC](https://community.auth0.com/t/when-i-call-the-api-oauth-token-to-refresh-token-it-responses-500-why-help/96597/6 "2023-02-17T23:55:09Z")

</div>


