spotify / web-api

This issue tracker is no longer used. Join us in the Spotify for Developers forum for support with the Spotify Web API ➡️ https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer
983 stars 79 forks source link

Insufficient client scope when trying to get "current_user_recently_played" #1518

Closed yahyaest closed 4 years ago

yahyaest commented 4 years ago

Issue found on February 19th 2015.

Endpoint:

PUT https://api.spotify.com/v1/me/player/recently-played

Scope(s):

user-read-currently-playing

Steps to reproduce:

1-Authenticate user and store access token 2-Make call to get "current_user_recently_played" (see attached file)

Expected behaviour:

should get "current_user_recently_played"

Actual behaviour:

File "C:\Users\Aymen\AppData\Local\Programs\Python\Python38\lib\site-packages\spotipy\client.py", line 170, in _internal_call raise SpotifyException( spotipy.client.SpotifyException: http status: 403, code:-1 - https://api.spotify.com/v1/me/player/recently-played?limit=50: Insufficient client scope

yahyaest commented 4 years ago

Code that produced the issue: get_recent_played.txt

felix-hilden commented 4 years ago

The call needs the user-read-recently-played scope. Can you try with that?

yahyaest commented 4 years ago

It works. Thanks.