Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

player id not found

Solved!

player id not found

Plan

Premium

Country

Denmark

Device

Raspberry pi 5

Operating System

raspberry pi OS

 

My Question or Issue

Hi Community,

 

I am building a spotify streamer for my kids using a raspberry pi 5. I use the web playback sdk to launch a player in a browser. The device id is passed to a python script that is utilizing spotipy for controlling playback on the device. It has all been working wonderfully, but then on 6th November it suddenly stopped working. At 15.00 CET I was playing music. At 18.00 CET it told me this:

spotipy.exceptions.SpotifyException: http status: 404, code:-1 - https://api.spotify.com/v1/me/player/play?device_id=xxxxxxx

 

In the above, I have replaced the device id.

 

When I start the normal spotify player on another computer I can see the player that I created. All playlists belonging to the user are listed as they should, so I know something is working.

 

Do any of you have an idea of what is going on?

Reply

Accepted Solutions
Marked as solution

If you call https://api.spotify.com/v1/me/player/devices you should be able to see the Device ID of the Web Playback SDK.  It may be that it has reconnected and been assigned a new ID.

View solution in original post

2 Replies
Marked as solution

If you call https://api.spotify.com/v1/me/player/devices you should be able to see the Device ID of the Web Playback SDK.  It may be that it has reconnected and been assigned a new ID.

Thank you. Making that call I do actually see the player but with a different ID. I added check to see if the first provided ID is different from the one in the list of players, and if so use the one from the list.

Suggested posts