mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #503] Error 400 on revoked authentication #298
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#298
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @IzHoBX on GitHub (May 28, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/503
Steps to reproduce:
Reason: when oauth2.py attempts to refresh token, Spotify server returns error refresh_access_token() doesn't handle it.
Expected behaviour: show Spotify authentication page in browser to allow user re-authenticate
Suggestion: adds error handling around util.py prompt_for_user_token() line 88
@lucas-campbell commented on GitHub (Jun 15, 2020):
Bumping this, having the same problem. Also occurs when using another spotify app and attempting to run a login sequence with the new client id/ client secret (after I had previously revoked permission on the first app, I had set up a new one to try and get around this issue).
@dpnem commented on GitHub (Sep 3, 2020):
Something similar is happening to me as well.
I built a Spotipy app that successfully ran. I then changed my Client Secret, attached the new Client Secret to the environment variable SPOTIPY_CLIENT_SECRET and receive the following error:
SpotifyException: http status: 400, code:-1 - Couldn't refresh token: code:400 reason:Bad Request
@NicolasKermen commented on GitHub (Dec 25, 2020):
Hi,
I may have a work-around to fix this issue.
I'm developping a little script to import my m3u playlist file to different spotify account. It was perfectly working with the first account but when I wanted to import a playlist to a second spotify account, I got this error.
I noticed in the working directory a .cache-xxxx file which has been created during the first use of spotify.
I suppressed this file and it's works !
@erit1566 commented on GitHub (Jan 2, 2021):
Similar to what Nicolas said, there is a .cache in the working directory and if you recycle that it prompts for login again.