Closed JackDyre closed 6 months ago
Yes. The library is basically waiting until the ratelimit is gone. Here's a possible solution if you want the script to raise an exception instead: https://github.com/spotipy-dev/spotipy/issues/913#issuecomment-1899143238
How long does the ratelimit usually last?
What is the ratelimit? If I knew the limit of how many requests I can make in 30 secs I could write some logic to make sure I stay under it.
Not exactly, but you can read more about it here: https://developer.spotify.com/documentation/web-api/concepts/rate-limits
I have been making a lot of requests this evening working on a project. As far as I know I did not change anything in my main file that I was running by accident, and I know for a fact that I did not change anything in my
SpotifyTracksFromPlaylist .py
file because it was not open.The code was working, and then randomly it started hanging whenever it got to the call of
get_tracks()
without any error message. Am I being rate limited? What is happening?main.py
SpotifyTracksFromPlaylist .py