- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My Python script that uses Spotipy stopped working yesterday after working fine for months.
The full error message is...
HTTP Error for POST to https://api.spotify.com/v1/playlists/<PLAYLISTID>/tracks with Params: {'position': 0} returned 403 due to Insufficient client scope.
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\site-packages\spotipy\client.py", line 245, in _internal_call
response.raise_for_status()
File "C:\Program Files\Python310\lib\site-packages\requests\models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.spotify.com/v1/playlists/<PLAYLISTID>/tracks?position=0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "UpdatePlaylist.py", line 195, in <module>
spotify.playlist_add_items(PlayListID, TrackID1List, 0)
File "C:\Program Files\Python310\lib\site-packages\spotipy\client.py", line 1031, in playlist_add_items
return self._post(
File "C:\Program Files\Python310\lib\site-packages\spotipy\client.py", line 302, in _post
return self._internal_call("POST", url, payload, kwargs)
File "C:\Program Files\Python310\lib\site-packages\spotipy\client.py", line 267, in _internal_call
raise SpotifyException(
spotipy.exceptions.SpotifyException: http status: 403, code:-1 - https://api.spotify.com/v1/playlists/<PLAYLISTID>/tracks?position=0:
Insufficient client scope., reason: None
The command that is failing is...
spotify.playlist_add_items(PlayListID, TrackID1List, 0)
Regards,
Anthony
Solved! Go to Solution.
Labels:
- Labels:
-
403 Insufficient client scope
-
Spotipy
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page