-
Notifications
You must be signed in to change notification settings - Fork 959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
show_episodes adding superfluous / to URI #925
Comments
I've spun up my own branch and removed the /, however the error still persists. This has got me really puzzled.
|
Not quite sure why, but if you use SpotifyOAuth (no scopes) instead of SpotifyClientCredentials, it seems to work just fine. So my guess is that this is a problem on Spotifys side. Also, I made an interesting discovery: when I request a token in the Spotify Developer Console, it asks for the "user-read-playback-position" scope, but it seems to work just fine without scopes. The (obvious) difference is a missing playback position for each episode. Maybe Spotify has restricted access to this endpoint only because of this optional scope, but that's just a theory. |
And where did you get your token when using cURL? |
The token was generated on the spotify developer console. |
Describe the bug
When requesting a show list using show_episodes the URI that is used seems to be;
https://api.spotify.com/v1/shows/47Xw6QagBN5lTAp1Cyoyye/episodes/?limit=50&offset=0
However if the same request is done with a curl the URI used is;
https://api.spotify.com/v1/shows/47Xw6QagBN5lTAp1Cyoyye/episodes?offset=0&limit=20
NOTE: spotipy adds and addtional / after episodes, which breaks the URI and results in a 404
CURL Command
Python Code
Expected behavior
As per description above
Output From Python
Output From CURL
NOTE: The different URI's in each output above.
Environment:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: