mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[GH-ISSUE #890] Failed to handle client request: status code 429 Too Many Requests #1471
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#1471
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 @DavidHospital on GitHub (Dec 22, 2025).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/890
Describe the bug
spotify-playerseemingly cannot make any requests to Spotify it seems. Any action that requires a request to spotify fails silently and the TUI is stuck loading forever.To Reproduce
I am not sure to be honest, this just started happening every time I try to use
spotify-playerstarting today. I have double checked there aren't any extra instancing of it running in the background.Expected behaviour
I expect the basic functions of the app to work.
Log and backtrace
An example of some of the logs:
It is the same 429 error for any action.
Environment
cargo install spotify_player)Additional context
This began happening this morning (around 10am EST) when I loaded it up to play some music. I've tried it again periodically throughout the day with no luck. I've also double checked my other devices to see if, for example, I could use Spotify on my phone; no issues there which rules out a problem with my account, etc.
@aome510 commented on GitHub (Dec 22, 2025):
I noticed the same thing when coming back to this project and start working on it again today (bad timings 😢 ).
The rate-limit issue happens when making API requests to the official Spotify client (client ID:
65b708073fc0480ea92a077233ca87bd). Hopefully, this is just a temporary thing@aome510 commented on GitHub (Dec 22, 2025):
In case anyone wants a temporary workaround, I got this app working using user-provided client instead of the integrated client to make API calls in https://github.com/aome510/spotify-player/pull/891.
With the above change, API requests will be sent to user-provided client instead of the official Spotify client. One limitation of this workaround is that with user-provided client,
spotify_playerwill have a limited API access compared to the full access when using the official Spotify client (see https://developer.spotify.com/blog/2024-11-27-changes-to-the-web-api for more details)Just a note that you will need to set a
client_idinapp.tomlto enable the user-provided client (see this doc for more details)@DavidHospital commented on GitHub (Dec 22, 2025):
Thanks for the quick response! This branch worked for navigating around the TUI, like selecting an album, etc. but now I'm getting some 401s when trying to play anything:
I have
client_idset (had this set as long as I've been usingspotify-player). Tried to switch device tospotify-playeras well, which did nothing.Could this be a user error?
@aome510 commented on GitHub (Dec 22, 2025):
hmmm, playing or transferring playback works well for me. Can you try
rm ~/.cache/spotify-player/user_client_token.jsonand re-run the app?@DavidHospital commented on GitHub (Dec 22, 2025):
Hmm tried that, regenerated the token. Still not working - same 401 error in the logs
@aome510 commented on GitHub (Dec 22, 2025):
Can you try
rm ~/.cache/spotify-player/credentials.jsonand re-run as well?@DavidHospital commented on GitHub (Dec 22, 2025):
Same thing :(
@aome510 commented on GitHub (Dec 22, 2025):
@DavidHospital I can reproduce by creating a new Spotify app myself, so i guess the 401 thing is an issue with newer app. Lemme try to figure out how to fix this and if it's possible. FWIW, this is still a workaround
@aome510 commented on GitHub (Dec 22, 2025):
@DavidHospital updated in https://github.com/aome510/spotify-player/pull/891/commits/c2d4a92860499db689b44fdd29aead966f05e78b. Can you try
rm ~/.cache/spotify-player/user_client_token.jsonand rerun the app with the new change?@DavidHospital commented on GitHub (Dec 22, 2025):
that did it! thank you. I will continue using this branch for now then
@aome510 commented on GitHub (Dec 22, 2025):
I plan to merge the PR soon to unblock working on other things and will revert the workaround once the official Spotify client is back to normal
@feskslo commented on GitHub (Dec 23, 2025):
Rebuilt with the linked commit
c2d4a92, and playback now works, no more error 429. Unfortunately, now the spotify_player UI becomes unresponsive as soon as playback begins. Librespot_playback is doing its thing in the background and playing music just fine, but the UI freezes as soon as playback starts. Stays frozen/unresponsive indefinitely.Environment: Pop!_OS 24.04.
Features image,notify,media-control,fzf
Rev
c2d4a92860Errors seen in log:
67 │ 2025-12-23T09:19:17.556322Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: request: error sending request for url (https://api.spotify.com/v1/me/player?additional_types=track%2Cepisode)
68 │ 2025-12-23T09:19:28.559292Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: request: error sending request for url (https://api.spotify.com/v1/me/player?additional_types=track%2Cepisode)
Edit: Installed again without feature "image" and it seems to work fine now
@aome510 commented on GitHub (Dec 23, 2025):
Related: https://github.com/hrkfdn/ncspot/issues/1757#issuecomment-3685875360.
ncspotusers also encountered the same issue. It seems spotify implements much stricter rate limit policy resulting in the above error. I wonder if this change is something permanent 🤔@alaughlin commented on GitHub (Dec 23, 2025):
Also having this problem. Would rather not build without the image feature so will wait to see what's up.
@B1T3X commented on GitHub (Dec 24, 2025):
Exact same problem, exact same solution
On a MacOS Sequioa 15.7.1 (24G231)
@aome510 commented on GitHub (Dec 24, 2025):
I'm using MacOS 26.1 and running the app with
cargo run --features image,notify,media-control,fzfworks fine for me without any issue on the latest commit ofmaster@TogiFerretFerret commented on GitHub (Dec 24, 2025):
I see freezing, but interestingly when I remove the image flag (kitty image protocol in ghostty for me) the freezing doesn't occur as well.
Is the image causing some hanging due to the request for the album art or something? or is it like the control codes?
@aome510 commented on GitHub (Dec 24, 2025):
hmm maybe related to recent viuer upgrade to
0.11.0ingithub.com/aome510/spotify-player@506c3318e6/spotify_player/Cargo.toml (L45G). Can you try to downgrade it to0.9.2to see if it fixes the issue?@Flynatol commented on GitHub (Dec 24, 2025):
I was just testing this and yes downgrading viuer fixes the issue.
@TogiFerretFerret commented on GitHub (Dec 24, 2025):
I also wrote a PR that doesn't need to downgrade viuer. #897
@pstumpf commented on GitHub (Dec 25, 2025):
Using the latest HEAD, playback from saved playlists and albums works fine, but attempting to open an artist’s page still results in endless "Loading ..." with a 429 error in the log.
@Alexander3a commented on GitHub (Dec 25, 2025):
yeah ever since the patch it has been broken but i seems to be a change on spotify`s end if u ask me
@aome510 commented on GitHub (Dec 28, 2025):
Thanks @TogiFerretFerret for the patch. It's not clear to me why this issue happened (I couldn't reproduce with kitty
0.44.0on MacOS) and if the above patch is enough@YourRobotOverlord commented on GitHub (Dec 29, 2025):
Darn, from the Spotify dashboard: "New integrations are currently on hold..." so we can't use the user-provided client workaround either now. 😒
@ypurpl commented on GitHub (Dec 29, 2025):
guess we gotta wait. hopefully it goes back to before this issue was created
@pstumpf commented on GitHub (Dec 29, 2025):
For the record, this is now successfully worked around by
github.com/aome510/spotify-player@baae5110a9@ruinedraziel commented on GitHub (Dec 29, 2025):
So is this issue still happening?
baae511didn't fix on my end, same behavior, do I need to disable some feature?@ypurpl commented on GitHub (Dec 30, 2025):
Disable any image-related features if necessary, but there are some server-sided issues that we can only wait for
@williamwu062 commented on GitHub (Jan 6, 2026):
are the latest workarounds in homebrew? Was having trouble with 429 issue there.
@pstumpf commented on GitHub (Jan 7, 2026):
I do not think this will be resolved on Spotify's end soon, so maybe it’s best to just do a release with the current changes?
@aome510 commented on GitHub (Jan 7, 2026):
Yep I can release a patched version later this week if Spotify doesn’t resolve the issue by then
@Sbagchee commented on GitHub (Jan 8, 2026):
You rock!
@kohane27 commented on GitHub (Jan 8, 2026):
@pstumpf Apologies for pinging. But what current workaround is working?
I tried building on current
masterbranch which hasgithub.com/aome510/spotify-player@baae5110a9It builds and the TUI opened, but I got the following error:
I never enabled Spotify connect but now it's current not available with "New integrations are currently on hold while we make updates to improve reliability and performance." Even though re-authentication worked after
rm ~/.cache/spotify-player/credentials.json.Is it catch-22 that it won't work for me case then, i.e., current API rate-limiting changes and users without "Spotify connect" enabled? I have been not been able to use spotify-player for literally 2 weeks now. Any input is much appreciated. Thank you!
@aome510 commented on GitHub (Jan 8, 2026):
@kohane27 please refer to https://github.com/aome510/spotify-player/issues/890#issuecomment-3683727470
You need to use user-provided client in order for the workaround on
mainto work. Spotify currently disallows creating new client as indicated byNew integrations are currently on hold while we make updates to improve reliability and performance. As a workaround, you can try to specify my client's ID instead:b28a574d8ad44fc7b5a89994431a8f88I will also update the code accordingly to use my client's ID as a fallback for folks who couldn't register a new Spotify app due to above restrictions before releasing a new version
@aome510 commented on GitHub (Jan 8, 2026):
release a new version https://github.com/aome510/spotify-player/releases/tag/v0.21.3 which should workaround the rate-limit issue discussed here
@unexist commented on GitHub (Jan 16, 2026):
Thanks for the hard work - I know this is an annoying change on Spotify's side.
Just a minor request: There are many things that don't work properly at the moment (no offense), but would it be feasible to replace the "Loading..." text with an actual error message? I see this quite frequently and I am never sure if it run into the well-known 429 issue or something else is amiss.
@ldreux commented on GitHub (Feb 6, 2026):
Hello, I tried with the official spotify client id but I have always status code 429 Too Many Requests with spotify_player 0.21.3. Have you another workaround to try ?
@aome510 commented on GitHub (Feb 7, 2026):
look like folks from
ncspotfigured out how to resolve the issue in https://github.com/hrkfdn/ncspot/issues/1757#issuecomment-3792564030 by using a client ID predated spotify API changes. The one I'm using right now didn't register extended quota mode so the capability is limited (see https://developer.spotify.com/blog/2024-11-27-changes-to-the-web-api)I'm going to integrate ncspot's client ID to
spotify-playerand hopefully it will bring back all previously supported functionality@aome510 commented on GitHub (Feb 7, 2026):
#918 is merged. I want to ask folks in this thread to test it to see if everything works fine after the integration.
Steps to test
ncspotclient ID integration.client_idin~/.config/spotify-player/app.toml(to use fallbackncspot's client ID)rm ~/.cache/spotify-player/user_client_token.jsoncargo run@pstumpf commented on GitHub (Feb 7, 2026):
Just tested it. Everything works, except the "Made for You" Playlist, which gives this error:
@aome510 commented on GitHub (Feb 7, 2026):
The one you're seeing is https://github.com/aome510/spotify-player/issues/821 and I'm figuring out how to patch it
@aome510 commented on GitHub (Feb 7, 2026):
@pstumpf https://github.com/aome510/spotify-player/pull/919 fixes the issue. Can you try the latest commit?
@pstumpf commented on GitHub (Feb 7, 2026):
Yes, that fixes it for me.
@hrkfdn commented on GitHub (Feb 7, 2026):
Hey, I'd love to support this fix, but I was wondering if there's another spotify-player client ID from before all this happened that you can use? Just asking because this one is tied to my personal account 😬
The fix is not only about my client ID but also about how the tokens are fetched in two flows. If you already have a client ID maybe it works with that one as well?
@unexist commented on GitHub (Feb 7, 2026):
Thanks for the bypass/fix, works perfectly for me. <3
@aome510 commented on GitHub (Feb 7, 2026):
Hi @hrkfdn sorry for not asking you before implementing the integration. I wonder how much weight this will add to your client. I can revert the change if needed
I would love to use my own client ID if possible. It’s just I didn’t register for extended quota mode for my client back then so couldn’t use it without losing some functionalities
@ddavisso4 commented on GitHub (Feb 7, 2026):
This seems promising?
https://developer.spotify.com/blog/2026-02-06-update-on-developer-access-and-platform-security
@ralph commented on GitHub (Feb 12, 2026):
@ddavisso4 more like the opposite. I'm facing the same issue with Spotifly, my Spotify client for macOS. I've switched it to bring-your-own-client-id, in order to get around these issues.
But users just cannot register a client id! It's supposed to be open again since yesterday, but if just does not work. Spotify really doesn't want any indie developers on their platform any more. 🙁
@CarlosLopezElorduy commented on GitHub (Feb 12, 2026):
I confirm version 0.22.1 fixed it for me 🚀
@pashynskykh commented on GitHub (Feb 12, 2026):
v0.22.1 still now works for me.
I tried removing these paths:
~/.cache/spotify-player/~/.config/spotify-player/And reauthenticate after.
Here's the error I get: