Closed xxaxaaa closed 9 months ago
Yesterday, after a reset the spotify-player can't play any song
Do you mean device reset like resetting your phone?
I tried to connect again from my phone, but it doesn't work.
Can you describe specifically what you do by "connect again from my phone"? Does any devices shown up if you press D
(SwitchDevice
command)?
Do you mean device reset like resetting your phone? Yes, i just turned off and on the phone and the pc
Can you describe specifically what you do by "connect again from my phone"? Does any devices shown up if you press
D
(SwitchDevice
command)? Yeah, i thought it will work if i "connect" to spotify-player from the android app. In the spotify android app, i see the spotify-player device, but from the spotify-player i didn't saw any
Thanks for the clarification.
In the spotify android app, i see the spotify-player device, but from the spotify-player i didn't saw any
You don't see any devices from spotify_player
probably 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 RestartIntegratedClient
command) or it may take a while to re-initialize the application's state when handling the connect
request.
Can you also include the full log? Looking into a single line does not help investigate.
"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 RestartIntegratedClient command) or it may take a while to re-initialize the application's state when >handling the connect request.
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).
You don't see any devices from spotify_player probably because you haven't set up https://github.com/aome510/spotify- player#spotify-connect.
'm done with this too, but when it worked, i used with the default clientId (yes, i tried to use the default again)
Can you also include the full log? Looking into a single line does not help investigate.
Of course!
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
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 run
to confirm?
@xxaxaaa any updates on this, otherwise I'll close this issue
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