mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #408] start_playback(deviceID) returns "Player command failed: Restriction violated" #243
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#243
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jpringle1 on GitHub (Dec 26, 2019).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/408
When using spotipy to start_playback on my phone, music resumes as expected. However, when i input the ID of my Amazon echo, it returns the error "Player command failed: Restriction violated".
Any idea what's causing this?
@felix-hilden commented on GitHub (Dec 26, 2019):
Could you please provide some more information? Were you already playing on the Echo, but then paused, or were you playing on your phone and tried to resume on the Echo, or what was the exact situation?
Perhaps you could try transferring the playback.
@stephanebruckert commented on GitHub (Jan 12, 2020):
Definitely this error is coming from the web API. Look at this thread https://github.com/spotify/web-api/issues/1205
@d00mfish commented on GitHub (Jan 29, 2021):
So I have the same behaviour:
You think this is a web api issue?
If so, I will go there with my problem.
@d00mfish commented on GitHub (Jan 29, 2021):
Alright so I worked around this with transferring the playback before, if a device is currently playing or if no device is playing at all.
Seems to work for now but is not that pretty. Alse I need to pause the playback, otherwise the currently playing song will shortly play on the echo: