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

401's on some, not all, search API calls

401's on some, not all, search API calls

I have an app that maintains a ranking of my most played songs over certain periods. I get this ranked list from last.fm, which does not have direct links to the spotify URIs, so I make calls to the /search endpoint for each song in order to get a URI. I send around ~100 of these requests each time I update the playlists, with handling in case I get rate-limited.

 

What's strange is that despite them all using the same authorization token, a few of those requests will return with a 401, even on app start when the access token was just generated. Is anyone else experiencing this? I'm going insane.

 

I am using Axios to make the calls. Seems to matter in a lot of the threads I've read through.

Reply
1 Reply

Suggested posts