mirror of
https://github.com/Aran404/SpotAPI.git
synced 2026-04-25 16:55:50 +03:00
[GH-ISSUE #45] Reqquest failed, maybe Spotify no longer accepts requests in this format? #27
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SpotAPI#27
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 @Neurologist on GitHub (Aug 18, 2025).
Original GitHub issue: https://github.com/Aran404/SpotAPI/issues/45
BRAINS:PC via ~\Documents via 🐍 v3.12.6 🧠 v1.1 on Sun Aug 17 2025 17:38
λ python.exe control_spotify.py resume
✅ Session loaded successfully using from_cookies method.
[17:39:52] Failed to fetch secrets: name 'response' is not defined. Falling back to default secret.
❌ An error occurred: Could not GET https://open.spotify.com/api/token. Status Code: 400
I tried making a control script and run it, but im getting this error
Gemini says that the Api method might be outdated is this correct?
The line resp = self.client.get(...) is where your computer sends the request to Spotify's server. The server then responds with the 400 Bad Request error, which the next line catches and displays to you.
Why It Fails
The request fails because the query parameters are outdated. The library is sending a request with keys like "reason": "init" and "productType": "web-player". Spotify has updated its security and internal API, so it no longer accepts requests in this format.
....
@Neurologist commented on GitHub (Aug 18, 2025):
Can you delete this issue please?!
@gewinnorientiert commented on GitHub (Aug 19, 2025):
How did you fix it?
@gewinnorientiert commented on GitHub (Aug 19, 2025):
The TOTP Version changed to 32 and there is a new totp secret most likely. Would need help with that.
@Neurologist commented on GitHub (Aug 21, 2025):
I used an AHK (autohotkey) script instead, it's much better, requires no dependencies and i can use it on my stream deck..
spotify_play_pause.ahk
OP, please delete this thread,, no longer needed and don't want it showing on my profile !