psst icon indicating copy to clipboard operation
psst copied to clipboard

HTTP Status: 429

Open babochyk opened this issue 11 months ago • 32 comments

Describe the bug Upon launching psst, no tracks load, the sidebar says http status: 429, but the home page does.

To Reproduce Launch psst Click on any playlist on the home page or select any other page.

Expected behavior The tracks and the sidebar should load tracks.

Screenshots Image

Environment

  • OS: Arch Linux
  • Version: Continuous release (2025.12.20-ae4f16d) Image

Additional context I switched to psst because ncspot started lagging.

babochyk avatar Dec 23 '25 18:12 babochyk

Same problem here on Ubuntu 25.10. Worked until latest pull. Official Spotify website and app are working without 429, so I don't think my account is being rate limited.

Image

jtaub avatar Dec 23 '25 23:12 jtaub

Happening on Fedora 43 KDE Plasma spin too.

notrudyyy avatar Dec 24 '25 13:12 notrudyyy

Maybe related to the latest Anna's Archive news as Spotify said they've implemented some safe-guard mechanisms.

gslin avatar Dec 24 '25 16:12 gslin

Maybe related to the latest Anna's Archive news as Spotify said they've implemented some safe-guard mechanisms.

Wow can't believe they did that. If the cost is me using the web player for a while so be it!

notrudyyy avatar Dec 24 '25 16:12 notrudyyy

Related discussions:

https://github.com/hrkfdn/ncspot/issues/1757

https://github.com/aome510/spotify-player/issues/890

Pogodaanton avatar Dec 24 '25 17:12 Pogodaanton

Same

Image

Cleboost avatar Dec 25 '25 00:12 Cleboost

same issue, on arch

Image

monskov avatar Dec 27 '25 23:12 monskov

It looks like 429 from spotify is your api key being rate limited. Maybe adding a setting where users can provide their own api key, similar to the last.fm config, would be a decent workaround?

timstapl avatar Dec 28 '25 17:12 timstapl

I feel like its because of anna's archive doing the spotify meta data download sh..t. 429 means too many requests idk should get resolved or what's happening..

wizardwithcodehazard avatar Dec 29 '25 13:12 wizardwithcodehazard

Oddly, this does not happen when using another client, like Riff. If the issue was with Spotify, I would expect to see 429s there too. 🤔

Potherca avatar Dec 29 '25 21:12 Potherca

Oddly, this does not happen when using another client, like Riff. If the issue was with Spotify, I would expect to see 429s there too. 🤔

Interesting...

Riff uses a custom client_id that was created when it was still maintained as spot. I did not know that you were able to register applications on Spotify that are granted the necessary scopes to use librespot-playback.

The auth token psst obtains seems to have been blocked for anything touching the api.spotify.com endpoint. For psst, this includes most requests in the GUI and metadata retrieval for playback. That's also why the home section on psst still works partially though: Those requests go to a different endpoint.

Resolving playback for psst with the current token is trivial. Accessing track lists with the current token, however, will require a change to a different endpoint. The pathfinder API, which is already used in the home section, could be a potential choice. It still works with the current token. As that API has a completely different output and barely any documentation, this might become a time-consuming do-over.

Alternatively, we could get a hold of a registered client_id that has streaming scopes among others and base (all) API requests on that. This would still require a change in how tokens are retrieved and refreshed (akin to #694). I don't know when and if obtaining such an ID is possible any time soon, as Spotify has (quietly?) paused application registrations for now.

Otherwise, 'bring your own api key' is also a viable option. However, that will be hard to test/use for people who don't have one (e.g. me), given that Spotify has paused paused application registrations for now.

Pogodaanton avatar Jan 04 '26 14:01 Pogodaanton

The (historical) problems with personal client IDs is they have more usage restrictions. Specifically, lower rate-limits and no access to some endpoints. But that's all moot if the traditional shared client ID has now been crippled in Spotify's latest hissy fit/panic.

kingosticks avatar Jan 04 '26 17:01 kingosticks

Yeah - I've been following and patiently waiting to see how other projects are approaching this. It might just mean adding some rate limiting to our requests to prevent this from happening.

Otherwise, 'bring your own api key' is also a viable option. However, that will be hard to test/use for people who don't have one (e.g. me), given that Spotify has paused paused application registrations for now.

@Pogodaanton Thanks for the investigation! I think given that Spotify might be making some changes re: api access, I think there will just be more and more work ahead until they make an announcement.

jacksongoode avatar Jan 05 '26 05:01 jacksongoode

The (historical) problems with personal client IDs is they have more usage restrictions. Specifically, lower rate-limits and no access to some endpoints. But that's all moot if the traditional shared client ID has now been crippled in Spotify's latest hissy fit/panic.

It's also currently not possible to obtain a personal client ID, Spotify have quietly disabled new applications.

kingosticks avatar Jan 08 '26 12:01 kingosticks

429 on macos too D:

rublev avatar Feb 13 '26 15:02 rublev

Yep, on starting Psst I immediately get a wall of 429s making it unusable 😢. What a shame (Ubuntu 24.04 x64).

rmoeritz-alayacare avatar Feb 19 '26 22:02 rmoeritz-alayacare

The (historical) problems with personal client IDs is they have more usage restrictions. Specifically, lower rate-limits and no access to some endpoints. But that's all moot if the traditional shared client ID has now been crippled in Spotify's latest hissy fit/panic.

It's also currently not possible to obtain a personal client ID, Spotify have quietly disabled new applications.

This is possible again. Could psst be enhanced with the new URL Oauth https://developer.spotify.com/documentation/web-api/concepts/authorization

evs-xsarus avatar Feb 20 '26 14:02 evs-xsarus

Now that client id registrations are open again, Psst could be converted to bring-your-own-client-id, meaning each user must register her/his own client id on the Spotify developer dashboard. This will get rid of the 429s, but comes at the cost of more restrictions, as described here:

  • https://github.com/jpochyla/psst/issues/719#issuecomment-3708260164

There is no easy solution for this, unfortunately. Spotify decided it doesn't need indie developers, so maybe indie developers will decide they don't need Spotify next ¯\_(ツ)_/¯.

ralph avatar Feb 20 '26 15:02 ralph

Maybe those limits are enough for us users. I've got the authentication working in these clients:

  • https://github.com/hrkfdn/ncspot
  • https://github.com/aome510/spotify-player
  • https://github.com/LargeModGames/spotatui

You might be able to borrow stuff from them.

evs-xsarus avatar Feb 20 '26 15:02 evs-xsarus

Also https://github.com/ralph/Spotifly if you prefer a GUI client 😇

ralph avatar Feb 20 '26 19:02 ralph