mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #1194] Indefinite Hang given an invalid Client_ID #699
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#699
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 @AtomikkuLabs on GitHub (Apr 24, 2025).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1194
Describe the bug
An extension of https://github.com/spotipy-dev/spotipy/issues/957, this is an old issue that somehow is not resolved. When an invalid client_id is provided, a browser windows pops up saying "INVALID_CLIENT: Invalid client" but spotipy acts as if everything is normal. If you then proceed do anything such as sp.current_playback(), it causes the program to hang. The only solution I see having right now is a function with a timeout, however, this is not ideal. Spotipy should raise an exception when a client_id is invalid right?
Your code
Expected behavior
I expect, given an invalid client_id, for an exception to be raised
Output
Begin, 1, and 2 are printed but 3 is never reached as the program hangs.
Environment:
@stephanebruckert commented on GitHub (Apr 24, 2025):
Hey! Let's continue on https://github.com/spotipy-dev/spotipy/issues/957 as this is still the same issue. Good to know you are using the latest version though.