GithubHelp home page GithubHelp logo

Comments (12)

gilbarbara avatar gilbarbara commented on July 17, 2024 1

Hey @wlhmmxrtz
Your token isn't valid (the 401 error), which might also trigger some other errors.

You can use an ErrorBoundary to prevent the white screen.

from react-spotify-web-playback.

wlhmmxrtz avatar wlhmmxrtz commented on July 17, 2024

Same issue here, website seems to get suddenly blank.

Before:
image

After entering the access token:
image
image

Please note thatI'm a beginner in react and not very experienced in coding so it would be great to know when and if the bug has been fixed.

from react-spotify-web-playback.

websnooze avatar websnooze commented on July 17, 2024

@gilbarbara I tried again just now, on your demo page and it gives me this error... :

{
  "error": {
    "status": 401,
    "message": "No token provided"
  }
}

but I gave token... x)

from react-spotify-web-playback.

gilbarbara avatar gilbarbara commented on July 17, 2024

@mathiaslac
Spotify changed their docs and stopped showing the token with the correct permissions on their page.
I've updated the demo to redirect to a page with the proper token. Please try again.

Also, I have a fix for the Devices components not to break if it can't get the devices that I'll publish soon.

from react-spotify-web-playback.

websnooze avatar websnooze commented on July 17, 2024

@gilbarbara
I feel the same way :(

{
  "error": {
    "status": 401,
    "message": "No token provided"
  }
}

image

from react-spotify-web-playback.

gilbarbara avatar gilbarbara commented on July 17, 2024

@mathiaslac
The image implies that you're getting 403 errors, not 401.
403 means your token isn't allowed to perform the operation.

Are you using your own token or copying it from a page that looks like this?
CleanShot 2023-04-20 at 20 33 57@2x

from react-spotify-web-playback.

websnooze avatar websnooze commented on July 17, 2024

@gilbarbara
Yes I'm using this token given from this page

from react-spotify-web-playback.

gilbarbara avatar gilbarbara commented on July 17, 2024

Fixed in v0.14

from react-spotify-web-playback.

websnooze avatar websnooze commented on July 17, 2024

retried using your demo page, my account is premium but got
image

from react-spotify-web-playback.

gilbarbara avatar gilbarbara commented on July 17, 2024

Hey @mathiaslac

The Spotify app used in the demo is not approved by Spotify yet, so you might get some errors.
Generate a user token on your own and try it. The token needs to start with BQ

from react-spotify-web-playback.

Johnnywrightiv avatar Johnnywrightiv commented on July 17, 2024

I'm having the same issue with the 403 on the demo page. My account is premium and I'm using the token from the given page with the green background pictured above. Is there a way to generate my own user token to test and does it have to do with the dev clientID? I'm still fairly new to authentication and tokens. sorry for necro bump

from react-spotify-web-playback.

gilbarbara avatar gilbarbara commented on July 17, 2024

Hey @Johnnywrightiv

Yeah, the direct token flow is broken for now.
You'll definitely need your own token to use the player in an app.
Check out the Spotify docs
You'll need to use a flow that provides a token to access user resources, such as an Authorization code.

from react-spotify-web-playback.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.