mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 08:35:49 +03:00
[GH-ISSUE #688] User not approved for app / 403, code:-1 - https://api.spotify.com/v1/me/: error, reason: None #407
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#407
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 @TiceWise on GitHub (Jun 9, 2021).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/688
Describe the bug
Since a recent 'Spotify for Developers'-update (see "Improving the developer and user experience for third-party apps" May 27, 2021), users need to be added in the 'Spotify for Developers'-dashboard.
I discovered the bug after a successful sign in with a different account, but the the simple 'spotify.me()' call raised the unclear error: "spotipy.exceptions.SpotifyException: http status: 403, code:-1 - https://api.spotify.com/v1/me/: error, reason: None"
After diving in client.py I noticed the actual response message was b"User not approved for app". Searching further I found the news-post mentioned earlier.
Your code
Expected behavior
I think it would be better to return the "User not approved for app" as error, instead of the reason: None. Possibly even with a referral to the Spotify developer dashboard to add users.
Output
Environment:
Additional context
"Improving the developer and user experience for third-party apps"
@stephanebruckert commented on GitHub (Jun 26, 2021):
Fixed by @Peter-Schorn's PR, thanks. Will release soon