spotipy-dev / spotipy

A light weight Python library for the Spotify Web API
http://spotipy.readthedocs.org
MIT License
5.02k stars 958 forks source link

404 error "non existing id" code worked literally minutes ago and now is broken #575

Closed Esamanoaz closed 4 years ago

Esamanoaz commented 4 years ago

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:

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!

Esamanoaz commented 4 years ago

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.

Esamanoaz commented 4 years ago

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.