Adam Soffer
Adam Soffer

Reputation: 1664

Why does the Spotify Web API throw a 500 error when getting playlists from a specific user?

This endpoint on Spotify's Web Api throws a 500 error for the username "spotify":

GET https://api.spotify.com/v1/users/{user_id}/playlists

Is this intentional on Spotify's end? Does Spotify not wants developers to access its playlists.

Note - All other usernames work fine

Upvotes: 0

Views: 1213

Answers (1)

jooon
jooon

Reputation: 2031

A 500 error should always be treated as being unintentional. If the server side wants to limit access a response code in the 400 range should be used instead, like 403 or possibly 401. It is likely that there are so many different public playlists for the Spotify account that one of them has triggered a bug. If for some reason the error code 500 is intentional, it is still a bug, but in the API, which should be fixed.

I work at Spotify, but don't have direct access to this system. I will let people know.

Upvotes: 3

Related Questions