mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #1094] program just hangs indefinitely with no error message, am i being rate limited? #651
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#651
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JackDyre on GitHub (Apr 30, 2024).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1094
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 .pyfile 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
@dieser-niko commented on GitHub (Apr 30, 2024):
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
@JackDyre commented on GitHub (Apr 30, 2024):
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.
@dieser-niko commented on GitHub (Apr 30, 2024):
Not exactly, but you can read more about it here: https://developer.spotify.com/documentation/web-api/concepts/rate-limits