Announcements

Help Wizard

Step 1

NEXT STEP

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

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