Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Exception when no active device is found. #1

Open
austinkeeley opened this issue Sep 26, 2019 · 0 comments
Open

Exception when no active device is found. #1

austinkeeley opened this issue Sep 26, 2019 · 0 comments
Assignees

Comments

@austinkeeley
Copy link
Owner

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
@austinkeeley austinkeeley self-assigned this Sep 26, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant