Playing with an offset is not working when element in URI list appears multiple times

Reply
Highlighted

Playing with an offset is not working when element in URI list appears multiple times

Casual Listener

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

 

2 Replies
Highlighted

Re: Playing with an offset is not working when element in URI list appears multiple times

Visitor

I have the same exact issue. Have you found a fix? I have been at this bug for weeks and I just do not know what to do next.

 

I am trying to start playback with a context uri, not a list of track uris. I am not trying to offset playback, just start playing at the very beginning of the album.

Highlighted

Re: Playing with an offset is not working when element in URI list appears multiple times

Casual Listener

No, I did not find any solution on this yet. Please let me know if you've found a way.

SUGGESTED POSTS