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

500 or 502 Error on GET /users/{user_id}/playlists Operation

500 or 502 Error on GET /users/{user_id}/playlists Operation

Plan

Free/Premium

Country

United States

My Question or Issue

I received a 500 or 502 error when performing a GET request for the /users/{user_id}/playlists operation. To reproduce this error, use the following curl command. Please ensure you replace TOKEN_HERE with your Bearer token:

curl -X GET "https://api.spotify.com/v1/users/%7B'isrc':%20'USUG12402984'%7D/playlists" \
-H "Authorization: Bearer TOKEN_HERE"
Reply
2 Replies

The example in your question shows a irsc instead of an user id. That is never going to work.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Hi Ximzend,

You're right, using an IRSC instead of a user ID was incorrect. A 400 status code should be the appropriate response for this type of error (or 404 as it is a wrong path parameter). A 500 error indicates an internal server error, and a 502 error indicates that one server on the internet received an invalid response from another server.

Suggested posts