Announcements

Help Wizard

Step 1

NEXT STEP

Consistent 429 error after infinite loop bug

Consistent 429 error after infinite loop bug

I had an infinite loop show up in my app that called spotify a ton of times. I fixed it quickly, but not my app is broken and my call (to get 'https://api.spotify.com/v1/me/playlists') is always returning a 429. What happened? How can I resolve this?

 

Reply
1 Reply

When your app has been rate limited it will receive a 429 error response from Spotify. Your app can use this information as a cue to slow down the number of API requests that it makes to the Web API. The header of the 429 response will normally include a Retry-After header with a value in seconds. Consider waiting for the number of seconds specified in Retry-After before your app calls the Web API again. (Source)

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random

Type a product name