[GH-ISSUE #331] Possibility to reauthenticate after device goes idle for a while? #219

Closed
opened 2026-02-27 19:29:28 +03:00 by kerem · 6 comments
Owner

Originally created by @yyjhao on GitHub (Apr 19, 2019).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/331

I have been using raspotify on my Raspberry Pi at home and control it with the spotify web API again through my Raspberry pi. I have noticed that frequently, if I use spotify at work on a laptop, the web API will fail to switch the playback to librespot when I come back home as the librespot device will not appear in the device list.

There are 2 ways I can fix this:

  1. Use an official spotify client to connect to the device again - this sometimes causes the play queue to be lost as it's replaced by the one on the official app.
  2. Restart raspotify/librespot on my raspberry pi - this takes a while and is rather cumbersome.

However, I wonder if it's possible that this can be fixed by 're-register' or 're-authenticating' in librespot given that 2 works. If so that will be much faster than having to restart raspotify or go through the official spotify app.

Originally created by @yyjhao on GitHub (Apr 19, 2019). Original GitHub issue: https://github.com/librespot-org/librespot/issues/331 I have been using raspotify on my Raspberry Pi at home and control it with the spotify web API again through my Raspberry pi. I have noticed that frequently, if I use spotify at work on a laptop, the web API will fail to switch the playback to librespot when I come back home as the librespot device will not appear in the device list. There are 2 ways I can fix this: 1. Use an official spotify client to connect to the device again - this sometimes causes the play queue to be lost as it's replaced by the one on the official app. 2. Restart raspotify/librespot on my raspberry pi - this takes a while and is rather cumbersome. However, I wonder if it's possible that this can be fixed by 're-register' or 're-authenticating' in librespot given that 2 works. If so that will be much faster than having to restart raspotify or go through the official spotify app.
kerem closed this issue 2026-02-27 19:29:28 +03:00
Author
Owner

@michalfita commented on GitHub (May 31, 2019):

Oh, that's actually interesting. I didn't realize that until I read your comment, but same happens to me.

<!-- gh-comment-id:497753211 --> @michalfita commented on GitHub (May 31, 2019): Oh, that's actually interesting. I didn't realize that until I read your comment, but same happens to me.
Author
Owner

@yyjhao commented on GitHub (Sep 28, 2019):

I made https://github.com/librespot-org/librespot/pull/376 for this.

<!-- gh-comment-id:536226809 --> @yyjhao commented on GitHub (Sep 28, 2019): I made https://github.com/librespot-org/librespot/pull/376 for this.
Author
Owner

@Ja83La commented on GitHub (Apr 15, 2020):

Same problem here - device disapears from devices list after a while. As a consequence a can no longer control the device via the web-api. Until now, I found no workaround.

<!-- gh-comment-id:614053302 --> @Ja83La commented on GitHub (Apr 15, 2020): Same problem here - device disapears from devices list after a while. As a consequence a can no longer control the device via the web-api. Until now, I found no workaround.
Author
Owner

@janek commented on GitHub (Apr 30, 2020):

I'm experiencing the same problem and would appreciate any tips toward solving it. I'm trying to use Spotify+Raspi as a musical alarm clock, but if I'm idle for too long during the day, it won't work in the morning.

The information that I can restart raspotify/librespot to mitigate this is new to me - thank you for that @yyjhao (and for creating this issue).

Have you made an issue on the raspotify repo yet? Maybe that would be a better place to handle this? (basing this proposition off of a comment by @kingosticks in #376)

<!-- gh-comment-id:621695096 --> @janek commented on GitHub (Apr 30, 2020): I'm experiencing the same problem and would appreciate any tips toward solving it. I'm trying to use Spotify+Raspi as a musical alarm clock, but if I'm idle for too long during the day, it won't work in the morning. The information that I can restart raspotify/librespot to mitigate this is new to me - thank you for that @yyjhao (and for creating this issue). Have you made an issue on the `raspotify` repo yet? Maybe that would be a better place to handle this? (basing this proposition off of a comment by @kingosticks in #376)
Author
Owner

@schickling commented on GitHub (Jun 26, 2022):

@sashahilton00 given you've closed this issue, could you please leave a comment whether this was somehow addressed/fixed in librespot or whether it's still an issue?

<!-- gh-comment-id:1166579431 --> @schickling commented on GitHub (Jun 26, 2022): @sashahilton00 given you've closed this issue, could you please leave a comment whether this was somehow addressed/fixed in librespot or whether it's still an issue?
Author
Owner

@roderickvd commented on GitHub (Jun 27, 2022):

Situation is the same. Groundwork was laid down in new-api to make it better, but I’ve had little time as of late.

<!-- gh-comment-id:1167889386 --> @roderickvd commented on GitHub (Jun 27, 2022): Situation is the same. Groundwork was laid down in `new-api` to make it better, but I’ve had little time as of late.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#219
No description provided.