[GH-ISSUE #289] Volume Decrease reports spotify API error on some non-local devices #117

Open
opened 2026-02-28 14:47:08 +03:00 by kerem · 1 comment
Owner

Originally created by @Kai-Richardson on GitHub (Feb 10, 2020).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/289

Issue:

When attempting to change the volume of some devices that are not the spt-connected Spotify client, the Spotify API reports an error.

Reason:

It's not possible to change the volume of all remote devices via Spotify (phones, etc.) as it's greyed-out on the client itself. So, this error probably should be caught and not passed to the user. That, or volume functionality disabled for these non-changeable devices.

Looking at the Spotify API, it looks like the error passed on this event is 403 FORBIDDEN with the reason string VOLUME_CONTROL_DISALLOW. You might want to catch DEVICE_NOT_CONTROLLABLE at the same time.

Details:

spt version: 0.13.0
Ubuntu 18.04 running under Windows Subsystem for Linux 2

Originally created by @Kai-Richardson on GitHub (Feb 10, 2020). Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/289 ### Issue: When attempting to change the volume of some devices that are not the spt-connected Spotify client, the Spotify API reports an error. #### Reason: It's not possible to change the volume of all remote devices via Spotify (phones, etc.) as it's greyed-out on the client itself. So, this error probably should be caught and not passed to the user. That, or volume functionality disabled for these non-changeable devices. Looking at the Spotify API, it looks like the error passed on this event is `403 FORBIDDEN` with the reason string `VOLUME_CONTROL_DISALLOW`. You might want to catch `DEVICE_NOT_CONTROLLABLE` at the same time. #### Details: spt version: `0.13.0` Ubuntu `18.04` running under Windows Subsystem for Linux 2
Author
Owner

@Rigellute commented on GitHub (Feb 11, 2020):

Thanks for reporting this 👍

<!-- gh-comment-id:584650068 --> @Rigellute commented on GitHub (Feb 11, 2020): Thanks for reporting this 👍
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-tui#117
No description provided.