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

Playlist API 502's

Playlist API 502's

Since Nov 25 2024 16:31:09 UTC-06:00 my app has been receiving 502's when attempting to create a playlist through the Playlist API, https://developer.spotify.com/documentation/web-api/reference/create-playlist. Is this a known issue, or are there resources available to help me resolve the issue on my end? Thank you.

Reply
3 Replies

I tested and had no problem creating a playlist using the endpoint. Could you provide some more information about your request. How does your path look, and what is in your request body.

Hello, thank you for the reply. The specific JSON response was '{"status":502,"message":"Error while loading resource"}'. We did come to realize that the user had run up to their limit of playlists, as like you mentioned, other users did not have the same error. We can probably mark this as resolved by fully understanding the situation. Is there a way to get a playlist count for a user through the API? Hoping there is some more elegant way to test for this kind of thing before getting a cryptic "error while loading resource" message.

You can use https://developer.spotify.com/documentation/web-api/reference/get-list-users-playlists to get a list of the playlists owned or followed by a Spotify user. The total count would give you an indication of how many playlists the user has in their library. But it will not tell you how many of those are followed, and how many are owned by the user.

 

On the other hand each user is generally limited to a maximum of 11000 playlists. So if you get a total count of a number close to that, you might assume the user has hit the limit. Also, not very usual for someone to have that many playlists unless there was some automation creating them.

Suggested posts