Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

215
Views
Spotifty web api's giving error on ReactJS even after giving proper access tokens

I'm using spotify-web-api-node package and following this tutorial . First I get my access token from my backend express js server then I pass it to to my reactjs application spotifyApi.setAccessToken(access_token);

after setting the access token, I try to call the any methods that will let me use the web service helper functions it gives me the error in the screenshot.

for example : spotifyApi.searchTracks(search).then((res) => console.log(res)).catch((err) => console.log(err));

but if I try to access this method using postman or from the express Js server using the same token it gives me no error and gives a correct response.

I was following the clone spotify tutorial from youtube and they do it from their reactJs application and it seems to work fine for them, for me however I get the error on my react application.

Error in browser console

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!