[GH-ISSUE #575] 404 error "non existing id" code worked literally minutes ago and now is broken #345

Closed
opened 2026-02-27 23:22:06 +03:00 by kerem · 2 comments
Owner

Originally created by @Esamanoaz on GitHub (Sep 13, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/575

Describe the bug
When I try to run the album_tracks I get the error:
404 non existing id

Your code
This paste has my authorization code and the code that is giving an error.

Expected behavior
The program should run album_tracks and pass the dictionary it returns into a function called construct_uris. construct_uris then creates a list of track uris. Finally, the program should start playback of those songs.

Output
HTTP Error for GET to https://api.spotify.com/v1/albums/2widuo17g5cec66ibzveru/tracks/ returned 404 due to non existing id

http status: 404, code:-1 - https://api.spotify.com/v1/albums/2widuo17g5cec66ibzveru/tracks/?limit=50&offset=0&market=US:
non existing id, reason: None

Environment:

  • OS: Raspbian
  • Python version: 3.7.3
  • spotipy version: 2.15.0

Additional context
I ran my code on a windows 10 laptop and the code worked fine. I transferred it to a raspberry pi and it no longer works. This is very frustrating because minutes ago it worked fine!

Originally created by @Esamanoaz on GitHub (Sep 13, 2020). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/575 **Describe the bug** When I try to run the `album_tracks` I get the error: _404 non existing id_ **Your code** [This paste has my authorization code and the code that is giving an error.](https://pastebin.com/vujZSPNy) **Expected behavior** The program should run `album_tracks` and pass the dictionary it returns into a function called `construct_uris`. `construct_uris` then creates a list of track uris. Finally, the program should start playback of those songs. **Output** `HTTP Error for GET to https://api.spotify.com/v1/albums/2widuo17g5cec66ibzveru/tracks/ returned 404 due to non existing id` `http status: 404, code:-1 - https://api.spotify.com/v1/albums/2widuo17g5cec66ibzveru/tracks/?limit=50&offset=0&market=US:` ` non existing id, reason: None` **Environment:** - OS: Raspbian - Python version: 3.7.3 - spotipy version: 2.15.0 **Additional context** I ran my code on a windows 10 laptop and the code worked fine. I transferred it to a raspberry pi and it no longer works. This is very frustrating because minutes ago it worked fine!
kerem 2026-02-27 23:22:06 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Esamanoaz commented on GitHub (Sep 20, 2020):

The problematic code was working today on my windows 10 laptop but as of now I receive the same error and it will not work. Strange.

<!-- gh-comment-id:695853023 --> @Esamanoaz commented on GitHub (Sep 20, 2020): The problematic code was working today on my windows 10 laptop but as of now I receive the same error and it will not work. Strange.
Author
Owner

@Esamanoaz commented on GitHub (Sep 21, 2020):

OH MY GOSH. :(

I have been giving Spotify a lowercase 'r' instead of an uppercase 'R' when I have been giving queries for album uris.

Don't change the case of the uris guys and gals, it messes everything up.

<!-- gh-comment-id:695863990 --> @Esamanoaz commented on GitHub (Sep 21, 2020): OH MY GOSH. :( I have been giving Spotify a lowercase 'r' instead of an uppercase 'R' when I have been giving queries for album uris. Don't change the case of the uris guys and gals, it messes everything up.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#345
No description provided.