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)

Suggested posts