Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Error when trying to access user's profile

Solved!

Error when trying to access user's profile

I have created an application on Spotify Dashboard that converts all my songs from the collection liked songs to a playlist using a programming language Python. Everything was fine untill yesterday, when I encountered the following issue and I do not understand what I should do. Here is the issue:

requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://accounts.spotify.com/api/token
During handling of the above exception, another exception occurred:
raise Spotify Oauth Error(
spotipy.oauth2.SpotifyOauthError: error: invalid_grant, error_description: Refresh token revoked

I also tried to create another application, but nothing has changed.

Reply

Accepted Solutions
Marked as solution

If you are using Spotipy, you can try to delete the .cache file out of the directory you are running the script from. Then you'll need to log in again.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

View solution in original post

2 Replies
Marked as solution

If you are using Spotipy, you can try to delete the .cache file out of the directory you are running the script from. Then you'll need to log in again.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Thank you very much!

Suggested posts

Type a product name