Relative Content

Tag Archive for pythonspotifyrate-limitingspotipy

Spotify API repeated http 429 error using spotipy

I am working on a project using Spotipy that makes a lot of requests. ~18 hours ago, I presume that I hit the rate limit because I was sending a lot of requests and the code started to just stop and hang forever once it got to a line that made an API reference. After that I gave up and went to bed. ~12 hours ago I decided to rewrite the whole project since it was a mess, and so I could implement spacing out of the API requests. I also learned that I could set retries = 0 so it would throw an error rather than indefinitely hang the program. I was rewriting the project, I was only able to make 1 API request before I started getting http 429 errors every time. I left it alone for another couple of hours, until now when i tried troubleshooting some more, and the same thing happened where I was able to make one success and then it would throw errors.