Announcements

Help Wizard

Step 1

NEXT STEP

Seek endpoint reports missing parameter, even though its present.

Solved!

Seek endpoint reports missing parameter, even though its present.

Calling the https://api.spotify.com/v1/me/player/seek endpoint consistently returns 400 Bad Request, as the parameter `position_ms` is supposedly missing.

 

However, the parameter is in place in the request. This happens regardless of value set for the parameter (0, positive integer, etc).

 

Payload Body:

 

{"position_ms":142848}

 

Response:

 

{
  "error" : {
    "status" : 400,
    "message" : "Required parameter position_ms missing"

  }
} 
 

Screenshot 2023-02-11 at 13.45.04.png

Screenshot 2023-02-11 at 13.45.38.png

Screenshot 2023-02-11 at 13.46.17.png

 

Any way to resolve this? Help much appreciated, thank you.

Reply

Accepted Solutions
Marked as solution

2 Replies
Marked as solution

position_ms should be a parameter, for example https://api.spotify.com/v1/me/player/seek?position_ms=500

Huh, that is very strange, having it in the body worked up until two days ago. That's also the format for the /play endpoint, so a little confusing there.

 

Works now, thanks for your help!

Suggested posts