Intermittent 502 response "Error while loading resource" adding tracks to playlist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using the Add Items to Playlist endpoint to add batches of 100 tracks to a playlist.
https://developer.spotify.com/documentation/web-api/reference/add-tracks-to-playlist
The batches are sent on a loop with a .333 second delay between each.
Intermittently, the API will return a 502 "Error while loading resource" on a given page of this loop.
This seems to be a fairly recent development or perhaps it's just happening with more frequency over the last few days.
Here's an example of a playlist on my paid plan that experiences the issue.
And here's the URL that I POST to for adding tracks, which works seemingly most of the time except when it doesn't and we get this 502 "Error while loading resource" response.
https://api.spotify.com/v1/playlists/6RGyg7ehntbG2tp1L631cL/track
Currently I've reworked my code to simply retry up to two extra attempts when I get a 502 error back, and it seems to work most of the time, but I'd prefer to avoid this (or have it happen with less frequency).
Any insight greatly appreciated.
Thank you,
TL
- Labels:
-
api
-
Possible Bug
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page