Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Getting 502 response on DELETE for /playlist/<playlistid/tracks

Getting 502 response on DELETE for /playlist/<playlistid/tracks

Plan

Premium

Country

Sweden

Device

Fairphone 5, Lenovo Thinkpad T14s Gen 6

Operating System

Arch Linux

 

My Question or Issue

I have a long running app that clears and updates a playlist every day with a new album. It has been working pretty good for a couple of weeks but for the last two days, starting 18th of February 2025 i get 502 when the code is trying to delete the tracks from the playlist. I can manually delete from the playlist and programatically add songs to the playlist but upon deletion i get a 502 response code.
Any comments on this or are there others with the same problem?

 

Reply
17 Replies

Came here because of the same issue. Started today (20 Feb). Hoping this is not an indication of further downgrades to the API...

happening to me as well, throwing 502 error for playlists.updatePlaylistItems in @spotify/web-api-ts-sdk nodejs library.

same here, what's going on?

same here guys! any help ??

This started happening yesterday 2025-02-19. Obviously a small but very critical bug. The issue I see is that for some reason, the API no longer allows us to send an empty array of URIs, which we use to clear out playlists.

Request:

 

Request URL:
https://api.spotify.com/v1/playlists/1hbQPncZYRPC8z2mojU7Uf/tracks
Request Method:
PUT
Status Code:
502 Bad Gateway
Remote Address:
[Intentionally omitted]
Referrer Policy:
strict-origin-when-cross-origin

 

Payload:

 

{uris: []}

 

 Response:

 

{"error": {"status": 502, "message": "" } }

 


Thank you Spotify.

I am making the request with a non-empty array, however i keep receiving the same error 502 regardless.

It seems to be working again now

At least for me, It is not yet.

Nothing has been fixed for me. Trying to delete an array of URI's (which worked flawlessly before) continues to fail since the second week of February 2025 C.E.

Yeah it's the same for me. 502 on Delete.  This feature is a critical part of my app so a fix would be nice

I get this response on my HTTP delete requests:

Server error(DELETE https://api.spotify.com/v1/playlists/3SFpdBUPONFuKFs87gsRm1/tracks: 502 Bad Gateway. Text: "{"error": {"status": 502, "message": "Error while loading resource" } }"

 

That is exactly the error I get now, consistently.

I have the same Problem 

"{"error": {"status": 502, "message": "Error while loading resource" } }"

I got a 502 error when specifying snapshot_id. When snapshot_id is deleted, it is deleted normally, but is this a specification change or a bug? . .

I had tried using an empty snapshot_id (because I assumed "snapshot_id"
was required in the array), but in response to your post, I tried
altogether eliminating "snapshot_id" from the deletion array, and that
worked. Thanks a lot.

Yes I also thought that snapshot_id was required so i previously just sent an empty string which obviously worked before. But now i removed the snapshot_id from the request body and the Delete request works.

Removing snapshot_id also solve my issue 🙃

Suggested posts