mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #795] 404 error when getting track/album/playlist/artist data #494
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#494
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 @xnetcat on GitHub (Apr 7, 2022).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/795
Describe the bug
Hi, a lot of users started reporting to me that they are getting 404 errors.
The url to the song is valid, We've tried clearing the cache but it didn't help.
Sometimes it works sometimes it doesn't seems pretty random.
This started happening few days ago.
Your code
SpotifyClient from here: https://github.com/spotDL/spotify-downloader/blob/master/spotdl/search/spotify_client.py
and then
Expected behavior
We always get the data.
Output
Environment:
Additional context
https://github.com/plamere/spotipy/issues/794 might be the same issue
@jkulak commented on GitHub (Apr 15, 2022):
I am getting the same errors in (what appears) random moments, and it started just recently. Using same code, same fast network. I am checking with Spotify API console just after the error occurs with same token and get data for the requested artist, album, track.
My observation is that 1/20 of the requests returns
HTTP Errorand next run of the code returns proper data.Spotify's API status is not reporting any issues: https://status.spotify.dev/
@stephanebruckert commented on GitHub (Apr 15, 2022):
It looks like this is an issue on the Spotify side rather than the spotipy Python library.
These seem related (please upvote them):
If anyone is up to create a new issue in Spotify for Developers gathering all the data, then we can all upvote it. Title could be something like "Getting 404 instead of 429/5xx"
In the meantime, I suggest you deal with retrying 404s in your code where you know it shouldn't fail. I know, it's just very bad that it returns 404 instead of 5xx or 429.
@GODL0111 commented on GitHub (Aug 22, 2025):
hey guys i am building an apk, i need some data on musical dna. But there is 403 error code, which does not let me get the data due to Spotify updated playlist issues . Can anyone help me with it.