[GH-ISSUE #811] Integrated playback goes on when switching to another device #1418

Closed
opened 2026-03-14 14:51:27 +03:00 by kerem · 3 comments
Owner

Originally created by @KUHLwasStolen on GitHub (Aug 25, 2025).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/811

Describe the bug
When I play a song via the integrated client and then, while playing, switch to another device it starts playing on that device, but also keeps on playing on the integrated client.

To Reproduce

  1. Play a song on the integrated client
  2. Switch to another device (e.g. mobile app)
  3. Should hear the same song on both devices

Expected behaviour
Playback on the integrated client stops when switching devices

Log

2025-08-25T09:32:51.434475Z  INFO client_request{request=Player(TransferPlayback("42268e3d-3a70-492a-b18b-7ed0ea682877", true))}: spotify_player::client: Transferred playback to device with id=42268e3d-3a70-492a-b18b-7ed0ea682877
2025-08-25T09:32:51.434580Z  INFO client_request{request=Player(TransferPlayback("42268e3d-3a70-492a-b18b-7ed0ea682877", true))}: spotify_player::client: Successfully handled the client request, took: 330ms
2025-08-25T09:32:53.261550Z ERROR client_request{request=Player(ResumePause)}: spotify_player::client::handlers: Failed to handle client request: http error: status code 403 Forbidden
2025-08-25T09:32:53.261783Z  INFO librespot_connect::spirc: device became inactive    
2025-08-25T09:32:53.368065Z  WARN librespot_connect::state::context: couldn't load context info because: context is not available. type: Default    
2025-08-25T09:32:53.487654Z ERROR librespot_connect::spirc: could not dispatch connect state update: Client specified an invalid argument { Response status code: 411 Length Required }    
2025-08-25T09:32:56.128548Z ERROR client_request{request=Player(ResumePause)}: spotify_player::client::handlers: Failed to handle client request: http error: status code 403 Forbidden

Environment

Originally created by @KUHLwasStolen on GitHub (Aug 25, 2025). Original GitHub issue: https://github.com/aome510/spotify-player/issues/811 **Describe the bug** When I play a song via the integrated client and then, while playing, switch to another device it starts playing on that device, but also keeps on playing on the integrated client. **To Reproduce** 1. Play a song on the integrated client 2. Switch to another device (e.g. mobile app) 3. Should hear the same song on both devices **Expected behaviour** Playback on the integrated client stops when switching devices **Log** ``` 2025-08-25T09:32:51.434475Z INFO client_request{request=Player(TransferPlayback("42268e3d-3a70-492a-b18b-7ed0ea682877", true))}: spotify_player::client: Transferred playback to device with id=42268e3d-3a70-492a-b18b-7ed0ea682877 2025-08-25T09:32:51.434580Z INFO client_request{request=Player(TransferPlayback("42268e3d-3a70-492a-b18b-7ed0ea682877", true))}: spotify_player::client: Successfully handled the client request, took: 330ms 2025-08-25T09:32:53.261550Z ERROR client_request{request=Player(ResumePause)}: spotify_player::client::handlers: Failed to handle client request: http error: status code 403 Forbidden 2025-08-25T09:32:53.261783Z INFO librespot_connect::spirc: device became inactive 2025-08-25T09:32:53.368065Z WARN librespot_connect::state::context: couldn't load context info because: context is not available. type: Default 2025-08-25T09:32:53.487654Z ERROR librespot_connect::spirc: could not dispatch connect state update: Client specified an invalid argument { Response status code: 411 Length Required } 2025-08-25T09:32:56.128548Z ERROR client_request{request=Player(ResumePause)}: spotify_player::client::handlers: Failed to handle client request: http error: status code 403 Forbidden ``` **Environment** - OS: Arch - Application version: https://github.com/aome510/spotify-player/commit/bd38dd05a3c52107f76665dc88002e5a0815d095 - Application features: pulseaudio-backend, streaming, pixelate, media-control
kerem 2026-03-14 14:51:27 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@aome510 commented on GitHub (Aug 25, 2025):

Confirm that I can reproduce the issue. Not sure what happens though

<!-- gh-comment-id:3220566333 --> @aome510 commented on GitHub (Aug 25, 2025): Confirm that I can reproduce the issue. Not sure what happens though
Author
Owner

@KUHLwasStolen commented on GitHub (Aug 25, 2025):

Did some more digging in the log and I think only these four lines are relevant here:

2025-08-25T09:31:37.497934Z  INFO client_request{request=Player(TransferPlayback("78739838f163b0e511f200cc7381a998c31a84cc", false))}: spotify_player::client: Transferred playback to device with id=78739838f163b0e511f200cc7381a998c31a84cc
2025-08-25T09:31:37.498012Z  INFO client_request{request=Player(TransferPlayback("78739838f163b0e511f200cc7381a998c31a84cc", false))}: spotify_player::client: Successfully handled the client request, took: 793ms
2025-08-25T09:31:37.892438Z  INFO librespot_connect::spirc: device became inactive    
2025-08-25T09:31:38.214583Z ERROR librespot_connect::spirc: could not dispatch connect state update: Client specified an invalid argument { Response status code: 411 Length Required } 

First glance, looks like a librespot issue to me tbh.

<!-- gh-comment-id:3220582721 --> @KUHLwasStolen commented on GitHub (Aug 25, 2025): Did some more digging in the log and I think only these four lines are relevant here: ``` 2025-08-25T09:31:37.497934Z INFO client_request{request=Player(TransferPlayback("78739838f163b0e511f200cc7381a998c31a84cc", false))}: spotify_player::client: Transferred playback to device with id=78739838f163b0e511f200cc7381a998c31a84cc 2025-08-25T09:31:37.498012Z INFO client_request{request=Player(TransferPlayback("78739838f163b0e511f200cc7381a998c31a84cc", false))}: spotify_player::client: Successfully handled the client request, took: 793ms 2025-08-25T09:31:37.892438Z INFO librespot_connect::spirc: device became inactive 2025-08-25T09:31:38.214583Z ERROR librespot_connect::spirc: could not dispatch connect state update: Client specified an invalid argument { Response status code: 411 Length Required } ``` First glance, looks like a librespot issue to me tbh.
Author
Owner

@aome510 commented on GitHub (Aug 25, 2025):

Maybe related to https://github.com/librespot-org/librespot/issues/1551

<!-- gh-comment-id:3220871451 --> @aome510 commented on GitHub (Aug 25, 2025): Maybe related to https://github.com/librespot-org/librespot/issues/1551
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#1418
No description provided.