Announcements

Help Wizard

Step 1

NEXT STEP

503 Service unavailable

Solved!

503 Service unavailable

For a few weeks or even months, I'm regularly getting 503 Service Unavailable in my requests. Seems to be mostly when accessing any of the
https://api.spotify.com/v1/me/player endpoints. I think it prominently started after the issues back in September of 2022 when the device endpoint was not working at all for a few days.

msedge_J69kHUUHGa.png
msedge_F9VVMDN1El.png
Reply

Accepted Solutions
Marked as solution

Seems like they got their **bleep** together and the issue is far less occurring for me. I had 5 503s within 4 hours on a 1 second request delay. 

View solution in original post

11 Replies

Wanted to add my voice here. I'm seeing the same.

I've been using the Spotify API in my application for a long time and everything worked fine, unfortunately for three days half of the requests to https://api.spotify.com/v1/me/player end with a response with status code 503 and information { error : { status: 503, message: 'Service unavailable' } }, I also noticed the 502 code a few times.

Unfortunately it's not even limited to this particular endpoint. I've seen it on me/following, too. Tried to get in touch with Spotify on Twitter, but they sent me to developer.spotify.com - which only has a Twitter handle as contact, which can't be messaged...

 

The support for developers is straight-up garbage. The only way of communication is this "forum". But even then, you barely get any helpful answers. 

I managed to work around the problem in this way, it works fine, maybe someone will find it useful if their application is written in JS/TS:

 
 

image

A user of my application has suggested something similar to me, and it seems to be working for him, too. At least you have a maximum retry number - he doesn't... but this kind of retry can cause an additional load on the failing infrastructure, potentially leading to a longer time for recovery as the service might struggle with the higher number of requests. You should add some back-off strategy, too: with each re-try you should increase the delay.

I implemented the same procedure but with at max 5 tries and 1-second delay. But this is not the fix for an obvious issue on Spotify's end.

I am having a similair issue but I am using the 

react-spotify-web-playback, which means I am not doing my own requests. Is there some way to catch the problem even if I am using the premade web-playback?
 
Marked as solution

Seems like they got their **bleep** together and the issue is far less occurring for me. I had 5 503s within 4 hours on a 1 second request delay. 

Same here. It seems to work as normal now (which means that it only fails rarely now) ๐Ÿ™‚

Suggested posts

Let's introduce ourselves!

Hey there you, ย  Yeah, you!ย 😁 ย  Welcome - we're glad you joined the Spotify Community! ย  While you here, let's have a fun game and getโ€ฆ

ModeratorStaff / Moderator/ 4 years ago  in Social & Random