[GH-ISSUE #579] Spotify session randomly invalidated #336

Closed
opened 2026-03-02 23:46:39 +03:00 by kerem · 8 comments
Owner

Originally created by @sewnie on GitHub (Oct 16, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/579

Describe the bug
While i sit on my chair, enjoying my music, i suddenly realize that the music stopped, with no clear indication as to why, and i am forced to replay the same song, knowing it will never hit the same again, because it was interrupted.

To Reproduce
Play music.

Expected behaviour
I continue hearing the music

Log and backtrace

2024-10-16T12:08:49.080339Z  INFO spotify_player::streaming: Got a new player event: Changed { old_track_id: TrackId("6vMib26W91Ue1PbFilnJfu"), new_track_id: TrackId("4x6duj3S7xHFhEUfDSbWgQ") }
2024-10-16T12:08:50.215753Z  INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("4x6duj3S7xHFhEUfDSbWgQ"), position_ms: 0, duration_ms: 892853 }
2024-10-16T12:08:51.025125Z  INFO client_request{request=GetCurrentUserQueue}: spotify_player::client: Successfully handled the client request, took: 575ms
2024-10-16T12:19:57.181822Z  INFO spotify_player::client: Client's current session is invalid, creating a new session...
2024-10-16T12:19:57.926983Z  INFO spotify_player::auth: Successfully used the cached credentials to create a new session!
2024-10-16T12:19:57.927140Z  INFO spotify_player::client: Used a new session for Spotify client.

Environment

  • OS: Alpine Linux edge
  • Application version: "spotify_player 0.19.1 (git+https://github.com/aome510/spotifyplayer#8dcbc225cafd179b84b261b56ab1620dfcac1fc9)" = ["spotify_player"]
  • Application features: pulseaudio-backend,streaming,lyric-finder,media-control,sixel,notify

Additional context
It happened again as i was making this issue.

Originally created by @sewnie on GitHub (Oct 16, 2024). Original GitHub issue: https://github.com/aome510/spotify-player/issues/579 **Describe the bug** While i sit on my chair, enjoying my music, i suddenly realize that the music stopped, with no clear indication as to why, and i am forced to replay the same song, knowing it will never hit the same again, because it was interrupted. **To Reproduce** Play music. **Expected behaviour** I continue hearing the music **Log and backtrace** ``` 2024-10-16T12:08:49.080339Z INFO spotify_player::streaming: Got a new player event: Changed { old_track_id: TrackId("6vMib26W91Ue1PbFilnJfu"), new_track_id: TrackId("4x6duj3S7xHFhEUfDSbWgQ") } 2024-10-16T12:08:50.215753Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("4x6duj3S7xHFhEUfDSbWgQ"), position_ms: 0, duration_ms: 892853 } 2024-10-16T12:08:51.025125Z INFO client_request{request=GetCurrentUserQueue}: spotify_player::client: Successfully handled the client request, took: 575ms 2024-10-16T12:19:57.181822Z INFO spotify_player::client: Client's current session is invalid, creating a new session... 2024-10-16T12:19:57.926983Z INFO spotify_player::auth: Successfully used the cached credentials to create a new session! 2024-10-16T12:19:57.927140Z INFO spotify_player::client: Used a new session for Spotify client. ``` **Environment** - OS: Alpine Linux edge - Application version: `"spotify_player 0.19.1 (git+https://github.com/aome510/spotifyplayer#8dcbc225cafd179b84b261b56ab1620dfcac1fc9)" = ["spotify_player"]` - Application features: `pulseaudio-backend,streaming,lyric-finder,media-control,sixel,notify` **Additional context** It happened again as i was making this issue.
kerem 2026-03-02 23:46:39 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@aome510 commented on GitHub (Oct 16, 2024):

I also encounter a similar issue occasionally in my company. My first impression is because of unstable network but haven't really investigated it further.

<!-- gh-comment-id:2417186316 --> @aome510 commented on GitHub (Oct 16, 2024): I also encounter a similar issue occasionally in my company. My first impression is because of unstable network but haven't really investigated it further.
Author
Owner

@sewnie commented on GitHub (Oct 16, 2024):

I also figured it was due to WI-FI issues, so i've disabled it and switched to Ethernet, and it still occurs.

<!-- gh-comment-id:2417207546 --> @sewnie commented on GitHub (Oct 16, 2024): I also figured it was due to WI-FI issues, so i've disabled it and switched to Ethernet, and it still occurs.
Author
Owner

@aome510 commented on GitHub (Oct 16, 2024):

interesting, good to know

<!-- gh-comment-id:2417223323 --> @aome510 commented on GitHub (Oct 16, 2024): interesting, good to know
Author
Owner

@sewnie commented on GitHub (Oct 17, 2024):

I can't take it anymore. It stopped as soon as the best part of a song began.

<!-- gh-comment-id:2420356726 --> @sewnie commented on GitHub (Oct 17, 2024): I can't take it anymore. It stopped as soon as the best part of a song began.
Author
Owner

@TheGassyNinja commented on GitHub (Oct 18, 2024):

I have been having the same issue for a couple of weeks. Same log output error as Apprehensions (OP)

<!-- gh-comment-id:2421055245 --> @TheGassyNinja commented on GitHub (Oct 18, 2024): I have been having the same issue for a couple of weeks. Same log output error as Apprehensions (OP)
Author
Owner

@diegoulloao commented on GitHub (Oct 18, 2024):

Having the same issue right now, has been happening since the last week and now it happened after only 45s of listening.

<!-- gh-comment-id:2422617748 --> @diegoulloao commented on GitHub (Oct 18, 2024): Having the same issue right now, has been happening since the last week and now it happened after only 45s of listening.
Author
Owner

@aome510 commented on GitHub (Oct 18, 2024):

Possibly related: https://github.com/librespot-org/librespot/discussions/609. I will need to do some monitoring to see if it's the same issue. It seems to happen more often now compared to the past.

<!-- gh-comment-id:2422654595 --> @aome510 commented on GitHub (Oct 18, 2024): Possibly related: https://github.com/librespot-org/librespot/discussions/609. I will need to do some monitoring to see if it's the same issue. It seems to happen more often now compared to the past.
Author
Owner

@aome510 commented on GitHub (Oct 18, 2024):

I'm pretty sure it's https://github.com/librespot-org/librespot/issues/1340 after some monitoring and look like it is resolved in 0.5.0 release!

<!-- gh-comment-id:2422732902 --> @aome510 commented on GitHub (Oct 18, 2024): I'm pretty sure it's https://github.com/librespot-org/librespot/issues/1340 after some monitoring and look like it is resolved in `0.5.0` release!
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/spotify-player#336
No description provided.