Skip to content
This repository was archived by the owner on Jun 29, 2020. It is now read-only.
This repository was archived by the owner on Jun 29, 2020. It is now read-only.

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

@JtheSaw

Description

@JtheSaw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions