Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR:spotipy.client:HTTP Error for PUT to https://api.spotify.com/v1/me/player/play?device_id=my_device_id_here returned 400 due to Invalid context uri
- Traceback (most recent call last):
- File "path_to\Python\Python38-32\lib\site-packages\spotipy\client.py", line 175, in _internal_call
- response.raise_for_status()
- File "path_to\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\models.py", line 941, in raise_for_status
- raise HTTPError(http_error_msg, response=self)
- requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.spotify.com/v1/me/player/play?device_id=my_device_id_here
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "C:\Users\esama\AppData\Local\Programs\Python\Python38-32\lib\runpy.py", line 193, in _run_module_as_main
- return _run_code(code, main_globals, None,
- File "C:\Users\esama\AppData\Local\Programs\Python\Python38-32\lib\runpy.py", line 86, in _run_code
- exec(code, run_globals)
- File "C:\Users\esama\Desktop\nfc\nfc.py", line 116, in <module>
- client.start_playback(device_id=spotify_device_id, context_uri=args.uri[0])
- File "C:\Users\esama\AppData\Local\Programs\Python\Python38-32\lib\site-packages\spotipy\client.py", line 1330, in start_playback
- return self._put(
- File "C:\Users\esama\AppData\Local\Programs\Python\Python38-32\lib\site-packages\spotipy\client.py", line 225, in _put
- return self._internal_call("PUT", url, payload, kwargs)
- File "C:\Users\esama\AppData\Local\Programs\Python\Python38-32\lib\site-packages\spotipy\client.py", line 186, in _internal_call
- raise SpotifyException(
- spotipy.exceptions.SpotifyException: http status: 400, code:-1 - https://api.spotify.com/v1/me/player/play?device_id=my_device_id_here:
- Invalid context uri
Add Comment
Please, Sign In to add comment