Announcements

Help Wizard

Step 1

NEXT STEP

500 Internal server error when removing songs from playlist.

500 Internal server error when removing songs from playlist.

Error: 500 Internal server error

Endpoint: https://api.spotify.com/v1/playlists/{playlist_id}/tracks 

 

When removing the 12th track from a playlist I always encountered this error in my application. I successfully recreated the error inside the Spotify Web Console:

https://developer.spotify.com/console/delete-playlist-tracks/

Request Body:

{ "positions": [ x ], "snapshot_id": "sid" }

with sid = snapshot_id of the playlist I got from:

GET https://api.spotify.com/v1/playlists/{playlist_id}   

I can replace 'x' in the Request Body with the position of a track in my playlist and successfully remove 11 tracks in a row but on the 12th try I get the error.

To clarify: I am only entering a single position to be removed on each request.

 

I think this is happening because I am not updating the snapshot_id of my playlist but I could not find any documentation about this. If I update the snapshot_id it starts working again but I would prefer not to do that in my application.

Is that possible?

Reply
0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random