You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I run the last line this one 👇 playlist_recs =sp.user_playlist_create(username,name='PCA + tf-idf + DT - Recommended Songs for Playlist - {}'.format(sourcePlaylist['name']))
I get the HTTP error in that saying this:-
--------------------------------------------------------------------HTTPError Traceback (most recent call last)d:\spotify-recommender-systems\packs\lib\site-packages\spotipy\client.py in _internal_call(self, method, url, payload, params)244--> 245 response.raise_for_status()246results = response.json()d:\spotify-recommender-systems\packs\lib\site-packages\requests\models.py in raise_for_status(self)952if http_error_msg:--> 953 raise HTTPError(http_error_msg, response=self)954HTTPError: 403 Client Error: Forbidden for url: https://api.spotify.com/v1/users/Shreeshaaithal/playlistsDuring handling of the above exception, another exception occurred:SpotifyException Traceback (most recent call last)~\AppData\Local\Temp/ipykernel_2708/1131807193.py in <module>----> 1 playlist_recs =sp.user_playlist_create(username,name='PCA + tf-idf + DT - Recommended Songs for Playlist - {}'.format(sourcePlaylist['name']))d:\spotify-recommender-systems\packs\lib\site-packages\spotipy\client.py in user_playlist_create(self, user, name, public, collaborative, description)782}783--> 784 return self._post("users/%s/playlists" % (user,), payload=data)785786def user_playlist_change_details(d:\spotify-recommender-systems\packs\lib\site-packages\spotipy\client.py in _post(self, url, args, payload, **kwargs)300if args:301kwargs.update(args)--> 302 return self._internal_call("POST", url, payload, kwargs)303304def _delete(self, url, args=None, payload=None, **kwargs):d:\spotify-recommender-systems\packs\lib\site-packages\spotipy\client.py in _internal_call(self, method, url, payload, params)270"%s:\n %s"% (response.url, msg),271reason=reason,--> 272 headers=response.headers,273)274except requests.exceptions.RetryError as retry_error:SpotifyException: http status: 403, code:-1 - https://api.spotify.com/v1/users/Shreeshaaithal/playlists:You cannot create a playlist for another user., reason: None
please help 🙏
all the API token is mine but still this is giving me an error please help me.
The text was updated successfully, but these errors were encountered:
when I run the last line this one 👇
playlist_recs =sp.user_playlist_create(username,name='PCA + tf-idf + DT - Recommended Songs for Playlist - {}'.format(sourcePlaylist['name']))
I get the HTTP error in that saying this:-
please help 🙏
all the API token is mine but still this is giving me an error please help me.
The text was updated successfully, but these errors were encountered: