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

Spotify Web API taking forever to respond

Spotify Web API taking forever to respond

Hi everyone,

I just recently started using Spotify API for a personal project in Python, and I've run into an issue that I think might be related to rate limiting.

 

The API has suddenly stopped responding, and the requests are taking forever to complete without returning any data.

 

I suspect it’s due to hitting the rate limits, but I’m not 100% sure. I’ve been making multiple requests in succession, and now all requests seem to be hanging indefinitely. I haven’t seen an error message—just very long wait times.

 

Has anyone faced something similar, or could this be something else? Any advice or suggestions would be appreciated!

 

Thanks in advance!

Reply
4 Replies

I have the same issue where requests hang but it's definitely not due to rate limits. I had 2 dev apps, one to test locally and another to test in production. Running my code locally works great. Running the same code in production results in an endless hang on exchanging a code for OAuth2 tokens. Even swapping the local credentials into my production app, the hang remains. I have to assume they're blocking requests of my production IP from GCP? Even though this app has had 0 traffic (certainly no 429s!), since it's still in development.

 

It would be incredibly helpful if Spotify responded with an error detailing what's wrong instead of having it hang for a minute until a timeout on my side. This is holding up our launch.

As an update, I swapped my static IP with a different one -- still within GCP's IPv4 block. I'm still getting an infinite hang, so it's neither my specific app's credentials, nor my specific IP.

also have this issue tried multiply browser and other systems still not won't authenticate

After 2 weeks of work to re-architect my app/infra to work outside of GCP, I was able to fix it by switching cloud providers. Both of the IPs in GCP were blocked by Spotify, despite them being statically provisioned for my account and me never actually having used them with Spotify before.

 

That was a completely unnecessary pain...

Suggested posts