403 "unkown" when sending PUT request to pause player

403 "unkown" when sending PUT request to pause player

simplenoteasy

When I am sending a PUT to: https://api.spotify.com/v1/me/player/play with a valid user token that has the `user-modify-playback-state` scope, it returns a code 403 with message:

 

{
"error" : {
"status" : 403,
"message" : "Player command failed: Restriction violated",
"reason" : "UNKNOWN"
}
}

Reply
1 Reply

simplenoteasy

Turns out I was sending a PLAY request to a client that was already playing, hence the error message

Suggested posts