Help Wizard

Step 1

NEXT STEP

Who Me Too'd this topic

Intermittent 404s Getting Playlist Tracks via API

Starting about two days ago, I began to see intermittent 404s when getting playlist tracks via the Spotify API (https://api.spotify.com/v1/playlists/*/tracks).  I have seen this when iterating over large playlists via the offset and limit parameters, collecting 100 tracks at a time.  Re-sending some of the failing requests (identical requests) can yield 200s at a later time.

 

It's possible this is an improperly responding rate limit (that shouldn't be returning 404s) or some sort of load-balancing / request routing confusion.

 

Example URL:

https://api.spotify.com/v1/playlists/PLAYLIST_ID_HERE/tracks?offset=1600&limit=100&additional_types=track

 

Interesting Response Headers:

'Content-Length': '0',

'server': 'envoy',

'Via': 'HTTP/2 edgeproxy, 1.1 google',

'date': 'Mon, 21 Mar 2022 03:40:18 GMT',

Who Me Too'd this topic