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 a 502 bad gateway when trying to read /me/tracks

Getting a 502 bad gateway when trying to read /me/tracks

Plan

Premium

Country

Belarus

 

Device

PC

Operating System

Windows 10

 

My Question or Issue

 

Description:
I have about 135,000 saved tracks in my library and I can't get a list of them.
Everything worked until there were not many saved tracks.
I can see the list of tracks in the desktop app. But the list is not displayed in the web player. After a long wait, it tells me that the playlist was not found.
Also, I cannot get the list using API Console (/me/tracks). I get the "502 Bad Gateway Error" in response.

Try to get /me/tracks for my user_id.

 

Endpoint(s):

GET /v1/me/tracks

 

Scope(s):

user-library-read

 

Steps to reproduce:
- Add 135,000 saved tracks
- Open the API Console
- Call the Get Current User's Saved Tracks endpoint /me/tracks

 

Expected behaviour:

Some data

 

Actual behaviour:

502 Bad Gateway Error

Reply
5 Replies

What an impressive music collection, @derwish!

 

Are you seeing the 502 error response from every request that you make to /me/tracks? Or does the request succeed some of the time for you?

This happens on every request. The list of my tracks is never available either through the api or in the web player.

I am having this same problem. I can get my user info from /me, but /me/tracks consistently gives 502 errors.

@spotifyjosh I tested the other /me endpoints and they all work except for /me/tracks and /me/albums, which both consistently return 502: Bad gateway.

The 502 error occurs even in the Spotify Developer console

Screen Shot 2022-03-06 at 11.05.55 AM.png

Suggested posts