Playing with an offset is not working when element in URI list appears multiple times
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to start playing a list of URIs with the offset parameter. Some of the URIs are contained multiple times.
Issue found on 2020-06-25.
Scope(s):
"streaming", "user-read-email", "user-read-private", "user-modify-playback-state"
Steps to reproduce:
curl --location --request PUT 'https://api.spotify.com/v1/me/player/play' \ --header 'Authorization: Bearer <<MY_TOKEN>> \ --header 'Content-Type: application/json' \ --data-raw '{ "uris": [ "spotify:track:3uww8tj9hlPUbUsJXcOJuc", "spotify:track:3uww8tj9hlPUbUsJXcOJuc", "spotify:track:3uww8tj9hlPUbUsJXcOJuc" ], "offset": { "position": 0 } }'
Expected behaviour:
204 No Content -> song is playing
Actual behaviour:
{ "error" : { "status" : 403, "message" : "Player command failed: Restriction violated", "reason" : "UNKNOWN" } }
It seems to be working only when the last index of a reoccuring item is provided by the offset parameter (in this case "offset" : { "position" : 2 }). The values 0 and 1 are not working. All values work fine if I use 3 different URIs.
I already filed an issue on Github but the repository seems to be archived.
>>> https://github.com/spotify/web-playback-sdk/issues/123
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page