mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #1117] the playlist function stopped working between yesterday and today #663
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#663
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 @jbdaudet on GitHub (May 23, 2024).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1117
sp.playlist() was working fine yesterday, and is stuck today: no error message, just no answer.
All the other function I tested are still working fine: sp.album() sp.artist(), etc.
Maybe an evolution of Spotify web API?
@dieser-niko commented on GitHub (May 23, 2024):
You have probably hit a rate limit. urllib will wait until the limit is gone, but for some reason this can take quite a long time.
If you want to get an error message instead, just do the following:
@jbdaudet commented on GitHub (May 23, 2024):
You are right: I get a 429 error with the retries=0 option. Not sure why though: I'm asking for one playlist only, and the api is answering to any other request, besides playlist. Thanks a lot for the help!
@dieser-niko commented on GitHub (May 23, 2024):
How often are you using this endpoint? Maybe caching might be helpful.
@dieser-niko commented on GitHub (May 23, 2024):
And btw, you can actually monitor the usage of the API endpoints in the Spotify dashboard.
@jbdaudet commented on GitHub (May 23, 2024):
thanks for your feedbacks - I'll optimize my script to request by batch and make it more efficient!
@dieser-niko commented on GitHub (Jan 3, 2025):
Hi @jbdaudet, just a quick heads up, we have released a new version (2.25.0) that prints a warning when a limit is reached. I'm not sure if you're still using
retries=0, but if not, this change will warn you when you reach a limit.