Comments (12)
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.
Same issue here, website seems to get suddenly blank.
After entering the access token:
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.
@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.
@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.
@gilbarbara
I feel the same way :(
{
"error": {
"status": 401,
"message": "No token provided"
}
}
from react-spotify-web-playback.
@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?
from react-spotify-web-playback.
@gilbarbara
Yes I'm using this token given from this page
from react-spotify-web-playback.
Fixed in v0.14
from react-spotify-web-playback.
retried using your demo page, my account is premium but got
from react-spotify-web-playback.
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.
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.
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)
- When the "uris" property receives a variable array does not work HOT 2
- Play in Chrome on Android (version 8 to ? <11) stops streaming after 10 seconds for all songs after initial song HOT 5
- Player not authenticated HOT 4
- Cannot read properties of undefined (reading 'Player') HOT 11
- TypeError: (0 , memoize_one_1.default) is not a function HOT 1
- Allow prop for custom error component
- Using this in Remix.run results in a weird error TypeError: (0 , memoize_one_1.default) is not a function HOT 2
- Possible to control the next and previous button ? HOT 2
- Deploying to vercel is throwing an error HOT 10
- Module not found: Error: Can't resolve 'nano-css/addon/jsx' HOT 2
- Cannot import SpotifyPlayer from 'react-spotify-web-playback' HOT 7
- Player instability when refreshing token? HOT 12
- Image "thumb" not available anymore at track object HOT 3
- canUseDOM error HOT 1
- Playback is stopped when changing spotify uri (in dev mode) HOT 5
- Typescript error between URIs and syncExternalDevice HOT 2
- Transparent background leads to invisible text HOT 8
- Cannot pass new offset to Spotify Player Component with same album URI HOT 3
- Play issue on changedURIs HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-spotify-web-playback.