SDK connects, but with null state. Unclear 403 error when trying to sync.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Been working on a Spotify app in React and have an SDK component that acts as a player. It was working all day, now it connects but returns a null state when I call the 'player_state_changed' listener or getCurrentState() method. I tried playing music in my desktop app and then forcibly changing devices to the web SDK (again, it is successfully connecting) and it just seems to timeout in the desktop app. I then added a function to transfer playback state to the device ID associated with my web SDK using the web API when the player 'ready' listener is called, and got this error back:
{status: 403, message: "Player command failed: Restriction violated", reason: "UNKNOWN"}
Reason unknown? Anyone know what is happening here? There are no errors printed with any of the error listeners in the documentation.
Reading up on it it could be that the player was orphaned somehow, but I can't seem to fix that in any way with the disconnect() method.
- Labels:
-
sdk react 403
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page