Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

219
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda