Announcements

Help Wizard

Step 1

NEXT STEP

Cannot refresh access token? 500 "server_error" Failed to remove token

Cannot refresh access token? 500 "server_error" Failed to remove token

Plan

Premium

 

My Question or Issue

Auth using PKCE is successful but Spotify is failing when requesting a refreshed access token.

Did a POST request to https://accounts.spotify.com/api/token with (x-www-form-urlencoded),

  • client_id=123redacted
  • grant_type=refresh_token
  • refresh_token=ABC123redacted

but got back a 500 server error with this response,

  {"error":"server_error","error_description":"Failed to remove token"}

 

 Why is that? Please help.

Reply
3 Replies

I'm personally not getting this error anymore. Are you still experiencing this issue?

I still randomly see this error too.

I don't know if this will help you, but I had this same error and the only "solution" I found was to disable the "StrictMode" of React. I understand that it's related to the second call that is made to the Spotify API, which is what strict mode does. Anyway, If anyone can provide any real solution or a more detailed explanation of the error, it would be appreciated.

Suggested posts