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
Exception in thread Thread-2:
Traceback (most recent call last):
File "/home/pi/projects/entrance-song/venv/lib/python3.7/site-packages/spotipy/client.py", line 121, in _internal_call
r.raise_for_status()
File "/home/pi/projects/entrance-song/venv/lib/python3.7/site-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://api.spotify.com/v1/me/player/volume?volume_percent=50
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/home/pi/projects/entrance-song/bin/../entrancesong/music_player.py", line 61, in run
self.mp.set_volume(self.mp.default_volume)
File "/home/pi/projects/entrance-song/bin/../entrancesong/music_player.py", line 191, in set_volume
self.sp.volume(volume, device_id=device_id)
File "/home/pi/projects/entrance-song/venv/lib/python3.7/site-packages/spotipy/client.py", line 1023, in volume
self._put(self._append_device_id("me/player/volume?volume_percent=%s" % volume_percent, device_id))
File "/home/pi/projects/entrance-song/venv/lib/python3.7/site-packages/spotipy/client.py", line 190, in _put
return self._internal_call('PUT', url, payload, kwargs)
File "/home/pi/projects/entrance-song/venv/lib/python3.7/site-packages/spotipy/client.py", line 126, in _internal_call
headers=r.headers)
spotipy.client.SpotifyException: http status: 404, code:-1 - https://api.spotify.com/v1/me/player/volume?volume_percent=50:
Player command failed: No active device found
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: