mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 01:15:55 +03:00
[GH-ISSUE #284] No playback found. #149
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#149
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xxaxaaa on GitHub (Nov 10, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/284
Describe the bug
Yesterday, after a reset the spotify-player can't play any song because of the
"No playback found. Please make sure there is a running Spotify client and try to connect to it using the 'SwitchDevice' command." error
I tried to connect again from my phone, but it doesn't work.
To Reproduce
Steps to reproduce the behavior.
Log and backtrace
spotify_player::client::handlers: Failed to handle client request: failed to handle the player request: no playback found
Environment
@aome510 commented on GitHub (Nov 11, 2023):
Do you mean device reset like resetting your phone?
Can you describe specifically what you do by "connect again from my phone"? Does any devices shown up if you press
D(SwitchDevicecommand)?@xxaxaaa commented on GitHub (Nov 11, 2023):
@aome510 commented on GitHub (Nov 11, 2023):
Thanks for the clarification.
You don't see any devices from
spotify_playerprobably because you haven't set up https://github.com/aome510/spotify-player#spotify-connect."connect" spotify-player from any external app should work unless you left the player not running for a while in which it may need a manual restart (by calling
RestartIntegratedClientcommand) or it may take a while to re-initialize the application's state when handling theconnectrequest.Can you also include the full log? Looking into a single line does not help investigate.
@xxaxaaa commented on GitHub (Nov 12, 2023):
I used the player every day before this issue, but i restarted it as u mentioned, still the same problem (+a strange: alsa lib pcm_dmix.c when i tried it with the R).
'm done with this too, but when it worked, i used with the default clientId (yes, i tried to use the default again)
Of course!
latest logs
2023-11-12T17:36:43.926279Z INFO spotify_player::streaming: Application's connect configurations: ConnectConfig { name: "spotify-player", device_type: Speaker, initial_volume: Some(45875), has_volume_ctrl: true, autoplay: false }
2023-11-12T17:36:43.926316Z INFO spotify_player::streaming: Initializing a new integrated player with device_id=myDevice
2023-11-12T17:36:43.926428Z INFO spotify_player::streaming: Starting an integrated Spotify player using librespot's spirc protocol
2023-11-12T17:36:44.048909Z INFO spotify_player: No playback found on startup, trying to connect to an available device...
2023-11-12T17:36:44.049119Z INFO spotify_player::cli::client: Starting a client socket at 127.0.0.1:8080
2023-11-12T17:36:44.050519Z INFO spotify_player::media_control: Initializing application's media control event watcher...
2023-11-12T17:36:44.162607Z INFO client_request{request=GetCurrentUser}: spotify_player::client: successfully handled the client request, took: 113ms
2023-11-12T17:36:44.173989Z INFO client_request{request=GetUserFollowedArtists}: spotify_player::client: successfully handled the client request, took: 124ms
2023-11-12T17:36:44.262941Z INFO client_request{request=GetUserPlaylists}: spotify_player::client: successfully handled the client request, took: 213ms
2023-11-12T17:36:44.363898Z INFO client_request{request=GetUserSavedAlbums}: spotify_player::client: successfully handled the client request, took: 314ms
2023-11-12T17:36:44.497762Z INFO client_request{request=GetUserSavedTracks}: spotify_player::client: successfully handled the client request, took: 448ms
2023-11-12T17:36:45.122595Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Available devices: []
2023-11-12T17:36:45.122634Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Trying to connect to device (id=myDevice)
2023-11-12T17:36:45.523840Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Connection succeeded (device_id=myDevice)!
2023-11-12T17:36:45.523882Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: successfully handled the client request, took: 1474ms
2023-11-12T17:36:46.862267Z INFO spotify_player::client::handlers: Current context ID (None) is different from the expected ID (Some(Playlist(PlaylistId("myPlaylist")))), update the context state
2023-11-12T17:36:46.862351Z INFO client_request{request=GetContext(Playlist(PlaylistId("myPlaylist")))}: spotify_player::client: Get playlist context: spotify:playlist:myPlaylist
2023-11-12T17:36:47.542221Z INFO client_request{request=GetContext(Playlist(PlaylistId("myPlaylist")))}: spotify_player::client: successfully handled the client request, took: 679ms
2023-11-12T17:36:47.893207Z ERROR client_request{request=Player(StartPlayback(Context(Playlist(PlaylistId("myPlaylist")), Some(Uri("spotify:track:trackID")))))}: spotify_player::client::handlers: Failed to handle client request: failed to handle the player request: no playback found
2023-11-12T17:36:49.029226Z ERROR client_request{request=Player(StartPlayback(Context(Playlist(PlaylistId("myPlaylist")), Some(Uri("spotify:track:trackID")))))}: spotify_player::client::handlers: Failed to handle client request: failed to handle the player request: no playback found
@aome510 commented on GitHub (Nov 12, 2023):
I give a try in https://github.com/aome510/spotify-player/pull/289. Not sure if it works. Can you check out the branch and run the application with
cargo runto confirm?@aome510 commented on GitHub (Nov 29, 2023):
@xxaxaaa any updates on this, otherwise I'll close this issue
@lgeurts commented on GitHub (Dec 23, 2025):
Same issue here. spotify-player 0.21.2-1. Can switch device and see it on my android phone. Audio plays on pc when selecting on phone. Other channels like YT play videos and sound flawlessly. Checked with alsa-mixer, pavucontrol and card is visble and works. As far as I can deduce the issue is the spotify_player software. Where is really goes wrong? No idea.
PS did a cargo run too. Added log.
2025-12-23T19:26:11.633009Z INFO spotify_player::auth: Using cached credentials
2025-12-23T19:26:11.633050Z INFO spotify_player::streaming: Application's connect configurations: ConnectConfig { name: "spotify-player", device_type: Speaker, is_group: false, initial_volume: 45875, disable_volume: false, volume_steps: 64 }
2025-12-23T19:26:11.633154Z INFO librespot_playback::mixer::softmixer: Mixing with softvol and volume control: Log(60.0)
2025-12-23T19:26:11.633203Z INFO spotify_player::streaming: Initializing a new integrated player with device_id=cbdcc9c9-99f3-4648-8398-c60054444f04
2025-12-23T19:26:11.633431Z INFO spotify_player::streaming: Starting an integrated Spotify player using librespot's spirc protocol
2025-12-23T19:26:11.633558Z INFO librespot_playback::convert: Converting with ditherer: tpdf
2025-12-23T19:26:11.633583Z INFO librespot_playback::audio_backend::pulseaudio: Using PulseAudioSink with format: S16
2025-12-23T19:26:12.119449Z INFO librespot_core::session: Connecting to AP "ap-gew4.spotify.com:4070"
2025-12-23T19:26:12.307742Z INFO librespot_core::session: Authenticated as 'REMOVED' !
2025-12-23T19:26:12.307994Z INFO librespot_core::session: Country: "DE"
2025-12-23T19:26:12.778643Z INFO spotify_player::streaming: New streaming connection has been established!
2025-12-23T19:26:12.778667Z INFO spotify_player::client: Used a new session for Spotify client.
2025-12-23T19:26:12.778685Z INFO spotify_player::token: Getting a new authentication token...
2025-12-23T19:26:12.778702Z INFO spotify_player::token: Got new token: Token { access_token: "BQDGmOwzRp49xOcD1EhzaLgMNn-BvMur_MG5z6IRzREpLNa6bMmaybq77aamQ9hr-r7itgloYekH1a6_4BdFdwdDAtROxcU1jxrWLLM9NzGf6raXMpUNLYojUMTGJqkqqRHj9UbiEbN0w4WoDg1Ih_tVIcIq_HPyRbgQd5FVaYsKMvycEuI5A0lZYfRPZg4jWRvqKNZCilOJbL99saQvQ6L6lly1nFeMaCSUU21j425R1Jr890kOCPYM5yJn8CGHwKJpL_6MkBxCLf2v8aFD773Jmp3xd70RTK_eZYRoVcPqqnwGuW_hBp1odQKjXafwKbmmOs3U_-5LxbHq3QI010pciEqhXCt0tenfLT2Eb2z69bVT619ADFRc5TT7Vte_fO8T_Jo0zbN_LxpV8XUHiwKzchlzdw", expires_in: TimeDelta { secs: 3600, nanos: 0 }, expires_at: Some(2025-12-23T20:26:12.778701157Z), refresh_token: None, scopes: {} }
2025-12-23T19:26:12.779368Z INFO spotify_player: Starting a client socket at 127.0.0.1:8080
2025-12-23T19:26:12.779576Z INFO spotify_player::media_control: Initializing application's media control event watcher...
2025-12-23T19:26:13.012239Z ERROR client_request{request=GetUserPlaylists}: spotify_player::client::handlers: Failed to handle client request: failed to send a Spotify API request https://api.spotify.com/v1/me/playlists: {
"error": {
"status": 429,
"message": "API rate limit exceeded"
}
}
2025-12-23T19:26:13.038422Z INFO librespot_core::spclient: Resolved "gew4-spclient.spotify.com:443" as spclient access point
2025-12-23T19:26:13.060352Z ERROR client_request{request=GetCurrentUser}: spotify_player::client::handlers: Failed to handle client request: http error: status code 429 Too Many Requests
2025-12-23T19:26:13.060446Z ERROR client_request{request=GetUserSavedShows}: spotify_player::client::handlers: Failed to handle client request: http error: status code 429 Too Many Requests
2025-12-23T19:26:13.060475Z ERROR client_request{request=GetUserFollowedArtists}: spotify_player::client::handlers: Failed to handle client request: http error: status code 429 Too Many Requests
2025-12-23T19:26:13.060501Z ERROR client_request{request=GetUserSavedAlbums}: spotify_player::client::handlers: Failed to handle client request: http error: status code 429 Too Many Requests
2025-12-23T19:26:13.060526Z ERROR client_request{request=GetUserSavedTracks}: spotify_player::client::handlers: Failed to handle client request: http error: status code 429 Too Many Requests
2025-12-23T19:26:13.531664Z INFO librespot_connect::spirc: active device is <> with session <14e6353fe4c5cfd3d7542158e8ce7c74>
2025-12-23T19:26:13.809193Z ERROR spotify_player::client: Failed to retrieve current playback: http error: status code 429 Too Many Requests
2025-12-23T19:26:13.809384Z ERROR spotify_player::client: Failed to retrieve current playback: http error: status code 429 Too Many Requests
2025-12-23T19:26:28.723821Z INFO client_request{request=GetDevices}: spotify_player::client: Successfully handled the client request, took: 370ms
2025-12-23T19:26:40.314568Z ERROR client_request{request=Player(TransferPlayback("cbdcc9c9-99f3-4648-8398-c60054444f04", false))}: spotify_player::client::handlers: Failed to handle client request: http error: status code 429 Too Many Requests
2025-12-23T19:26:45.143640Z INFO client_request{request=GetDevices}: spotify_player::client: Successfully handled the client request, took: 37ms
2025-12-23T19:27:05.678509Z WARN librespot_connect::state::context: couldn't load context info because: context is not available. type: Default
2025-12-23T19:27:05.857741Z INFO librespot_playback::player: Loading <Is It Any Wonder?> with Spotify URI spotify:track:5xT8JXJSyHYNfC11OFqzFL
2025-12-23T19:27:06.094218Z WARN librespot_playback::player: Invalid start position of 1375245 ms exceeds track's duration of 186173 ms, starting track from the beginning
2025-12-23T19:27:06.272871Z INFO librespot_playback::player: <Is It Any Wonder?> (186173 ms) loaded
2025-12-23T19:27:06.273227Z INFO spotify_player::streaming: Got a new player event: Changed { playable_id: Track(TrackId("5xT8JXJSyHYNfC11OFqzFL")) }
2025-12-23T19:27:06.303439Z INFO spotify_player::streaming: Got a new player event: Playing { playable_id: Track(TrackId("5xT8JXJSyHYNfC11OFqzFL")), position_ms: 0 }
2025-12-23T19:27:07.343926Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests
2025-12-23T19:27:07.344065Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests
2025-12-23T19:27:08.369901Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests
2025-12-23T19:27:08.370107Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests
2025-12-23T19:27:09.393389Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests