[GH-ISSUE #804] Device list shows blank #479

Closed
opened 2026-03-02 23:47:56 +03:00 by kerem · 21 comments
Owner

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

Describe the bug
It was appearing untill yesterday, I don't know what the problem is. spotifyd and spotify player both are showing as devices on my phone and I can har audio thrugh my laptop if i select them through my phone

To Reproduce
My laptop fell, so maybe that lmao, but everything else is working so I don't think that is the problem

Expected behaviour
the devices to show

Log and backtrace
Log and backtrace of a run reproducing the bug to help debug the issue, which are usually located in $HOME/.cache/spotify-player/.

Please refer to this URL for more details.

Screenshots

Image

Environment

  • OS:
  • Application version: Using Linux : Distro: Arch
  • Application features: if applicable, provide cargo features used to build spotify_player

Additional context
Add any other context about the problem here.

Originally created by @arashdev7 on GitHub (Aug 13, 2025). Original GitHub issue: https://github.com/aome510/spotify-player/issues/804 **Describe the bug** It was appearing untill yesterday, I don't know what the problem is. spotifyd and spotify player both are showing as devices on my phone and I can har audio thrugh my laptop if i select them through my phone **To Reproduce** My laptop fell, so maybe that lmao, but everything else is working so I don't think that is the problem **Expected behaviour** the devices to show **Log and backtrace** Log and backtrace of a run reproducing the bug to help debug the issue, which are usually located in `$HOME/.cache/spotify-player/`. Please refer to [this URL](https://github.com/aome510/spotify-player?tab=readme-ov-file#logging) for more details. **Screenshots** <img width="2880" height="1773" alt="Image" src="https://github.com/user-attachments/assets/1d0ffdc5-54f8-4ed5-b47e-80ca48af2977" /> **Environment** - OS: - Application version: Using Linux : Distro: Arch - Application features: if applicable, provide [cargo features](https://doc.rust-lang.org/cargo/reference/features.html) used to build `spotify_player` **Additional context** Add any other context about the problem here.
kerem 2026-03-02 23:47:56 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@MaqxG commented on GitHub (Aug 13, 2025):

I have the same problem since today.
I also don't seem to be able to load any playlist or search for a song. Playlists keep hanging on Loading... And with search I can type the name of a song, but it doesn't show anything.
I have tried to reauthenticate and reinstall spotify_player, but that didn't help.

I'm running spotify_player v0.20.7 from crates.io on Ubuntu 24.04.3

<!-- gh-comment-id:3183833557 --> @MaqxG commented on GitHub (Aug 13, 2025): I have the same problem since today. I also don't seem to be able to load any playlist or search for a song. Playlists keep hanging on Loading... And with search I can type the name of a song, but it doesn't show anything. I have tried to reauthenticate and reinstall spotify_player, but that didn't help. I'm running spotify_player v0.20.7 from crates.io on Ubuntu 24.04.3
Author
Owner

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

Spotify recently made a few breaking changes to the APIs, making spotify_player not function correctly. See

Please include applicable logs, otherwise people won't be able to tell what is the cause of this issue, which might be related to the two issues linked above

<!-- gh-comment-id:3184054992 --> @aome510 commented on GitHub (Aug 13, 2025): Spotify recently made a few breaking changes to the APIs, making `spotify_player` not function correctly. See * https://github.com/aome510/spotify-player/issues/802 * https://github.com/aome510/spotify-player/issues/796 Please include applicable logs, otherwise people won't be able to tell what is the cause of this issue, which might be related to the two issues linked above
Author
Owner

@arashdev7 commented on GitHub (Aug 13, 2025):

spotify_player_clean_1.log

Sorrrry my bad ( >_< ), I am relatively new to linux, I have attached the log I created using the tee command, and I cleared using asci2txt, let me know if something else is required

<!-- gh-comment-id:3184525297 --> @arashdev7 commented on GitHub (Aug 13, 2025): [spotify_player_clean_1.log](https://github.com/user-attachments/files/21758251/spotify_player_clean_1.log) Sorrrry my bad ( >_< ), I am relatively new to linux, I have attached the log I created using the tee command, and I cleared using asci2txt, let me know if something else is required
Author
Owner

@jasht1 commented on GitHub (Aug 13, 2025):

I was having the issue described in #796 where the app appears to work but plays no audio, while troubleshooting this I reinstalled the app via cargo install spotify_player --features image,notify,fzf,media-control and now appear to have this issue, all the sub windows are blank apart from "Artists" and I'm unable to select a device.

From the logs it looks like a manifestation of #802 where spotify_player is unable to attain an authentication token from spotify.

2025-08-13T16:41:58.660829Z  INFO spotify_player::token: Getting a new authentication token...
2025-08-13T16:41:58.692777Z ERROR librespot_core::mercury: error 403 for uri hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=65b708073fc0480ea92a077233ca87bd&device_id=604d9f88-d680-4229-b131-992a1dfefb82    
2025-08-13T16:41:58.692867Z ERROR spotify_player::client::spotify: Failed to get a new token: failed to get the token: Service unavailable { error handling Mercury response: MercuryResponse { uri: "hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=65b708073fc0480ea92a077233ca87bd&device_id=604d9f88-d680-4229-b131-992a1dfefb82", status_code: 403, payload: [[123, 34, 99, 111, 100, 101, 34, 58, 52, 44, 34, 101, 114, 114, 111, 114, 68, 101, 115, 99, 114, 105, 112, 116, 105, 111, 110, 34, 58, 34, 73, 110, 118, 97, 108, 105, 100, 32, 114, 101, 113, 117, 101, 115, 116, 34, 125]] } }

I've attached the full log with my ID redacted to this post.

spotify-player_PUBLIC.log

<!-- gh-comment-id:3184730990 --> @jasht1 commented on GitHub (Aug 13, 2025): I was having the issue described in [#796](https://github.com/aome510/spotify-player/issues/796#issue-3297369692) where the app appears to work but plays no audio, while troubleshooting this I reinstalled the app via `cargo install spotify_player --features image,notify,fzf,media-control` and now appear to have this issue, all the sub windows are blank apart from "Artists" and I'm unable to select a device. From the logs it looks like a manifestation of #802 where spotify_player is unable to attain an authentication token from spotify. ```spotify-player-25-08-13-17-41.log 2025-08-13T16:41:58.660829Z INFO spotify_player::token: Getting a new authentication token... 2025-08-13T16:41:58.692777Z ERROR librespot_core::mercury: error 403 for uri hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=65b708073fc0480ea92a077233ca87bd&device_id=604d9f88-d680-4229-b131-992a1dfefb82 2025-08-13T16:41:58.692867Z ERROR spotify_player::client::spotify: Failed to get a new token: failed to get the token: Service unavailable { error handling Mercury response: MercuryResponse { uri: "hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=65b708073fc0480ea92a077233ca87bd&device_id=604d9f88-d680-4229-b131-992a1dfefb82", status_code: 403, payload: [[123, 34, 99, 111, 100, 101, 34, 58, 52, 44, 34, 101, 114, 114, 111, 114, 68, 101, 115, 99, 114, 105, 112, 116, 105, 111, 110, 34, 58, 34, 73, 110, 118, 97, 108, 105, 100, 32, 114, 101, 113, 117, 101, 115, 116, 34, 125]] } } ``` I've attached the full log with my ID redacted to this post. [spotify-player_PUBLIC.log](https://github.com/user-attachments/files/21758990/spotify-player_PUBLIC.log)
Author
Owner

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

spotify_player_clean_1.log

Sorrrry my bad ( >_< ), I am relatively new to linux, I have attached the log I created using the tee command, and I cleared using asci2txt, let me know if something else is required

Oh I mean the application's log not the terminal log. See https://github.com/aome510/spotify-player?tab=readme-ov-file#logging

From the logs it looks like spotify_player is unable to attain an authentication token from spotify.

yes, it's another new issue reported by people yesterday. See https://github.com/aome510/spotify-player/issues/802. They seem to have a workaround mentioned in the thread, but I haven't tested it myself

<!-- gh-comment-id:3184743481 --> @aome510 commented on GitHub (Aug 13, 2025): > [spotify_player_clean_1.log](https://github.com/user-attachments/files/21758251/spotify_player_clean_1.log) > > Sorrrry my bad ( >_< ), I am relatively new to linux, I have attached the log I created using the tee command, and I cleared using asci2txt, let me know if something else is required Oh I mean the application's log not the terminal log. See https://github.com/aome510/spotify-player?tab=readme-ov-file#logging > From the logs it looks like spotify_player is unable to attain an authentication token from spotify. yes, it's another new issue reported by people yesterday. See https://github.com/aome510/spotify-player/issues/802. They seem to have a workaround mentioned in the thread, but I haven't tested it myself
Author
Owner

@Montero1905 commented on GitHub (Aug 14, 2025):

I'm having the same issue here. macOS. I'm using the fork described in #802 unsuccessfully. The integrated client works fine but spotify_player doesn't seem to be using my client_id to have a full spotify connect.

Image
<!-- gh-comment-id:3188037461 --> @Montero1905 commented on GitHub (Aug 14, 2025): I'm having the same issue here. macOS. I'm using the fork described in #802 unsuccessfully. The integrated client works fine but spotify_player doesn't seem to be using my client_id to have a full spotify connect. <img width="1048" height="112" alt="Image" src="https://github.com/user-attachments/assets/b140aa21-6a24-41fd-99db-045c4be4b6aa" />
Author
Owner

@arashdev7 commented on GitHub (Aug 17, 2025):

25-08-17T12:10:07.224958Z WARN librespot_core::apresolve: Failed to resolve all access points, using fallbacks
2025-08-17T12:10:07.225014Z WARN librespot_core::apresolve: Resolve access points error: Service unavailable { client error (Connect) }
2025-08-17T12:10:07.225033Z INFO librespot_core::session: Connecting to AP "ap.spotify.com:443"
2025-08-17T12:10:07.709899Z INFO librespot_core::session: Authenticated as 'arashdev' !
2025-08-17T12:10:07.710440Z INFO librespot_core::session: Country: "IN"
2025-08-17T12:10:07.712215Z INFO spotify_player::streaming: New streaming connection has been established!
2025-08-17T12:10:07.712254Z INFO spotify_player::client: Used a new session for Spotify client.
2025-08-17T12:10:07.712335Z INFO spotify_player::token: Getting a new authentication token...
2025-08-17T12:10:07.856487Z ERROR librespot_core::mercury: error 403 for uri hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=65b708073fc0480ea92a077233ca87bd&device_id=451f456a-5fb1-44a0-b010-ebf8587eb1ea
2025-08-17T12:10:07.856616Z ERROR spotify_player::client::spotify: Failed to get a new token: failed to get the token: Service unavailable { error handling Mercury response: MercuryResponse { uri: "hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=65b708073fc0480ea92a077233ca87bd&device_id=451f456a-5fb1-44a0-b010-ebf8587eb1ea", status_code: 403, payload: 123, 34, 99, 111, 100, 101, 34, 58, 52, 44, 34, 101, 114, 114, 111, 114, 68, 101, 115, 99, 114, 105, 112, 116, 105, 111, 110, 34, 58, 34, 73, 110, 118, 97, 108, 105, 100, 32, 114, 101, 113, 117, 101, 115, 116, 34, 125 } }
2025-08-17T12:10:07.856906Z INFO spotify_player: Starting a client socket at 127.0.0.1:8080
2025-08-17T12:10:07.857167Z INFO spotify_player::media_control: Initializing application's media control event watcher...
2025-08-17T12:10:07.858084Z INFO client_request{request=GetUserPlaylists}: spotify_player::token: Getting a new authentication token...
2025-08-17T12:10:07.858164Z ERROR client_request{request=GetUserFollowedArtists}: spotify_player::client::handlers: Failed to handle client request: Token is not valid
2025-08-17T12:10:07.858166Z ERROR client_request{request=GetCurrentUser}: spotify_player::client::handlers: Failed to handle client request: Token is not valid
2025-08-17T12:10:07.858166Z ERROR client_request{request=GetUserSavedAlbums}: spotify_player::client::handlers: Failed to handle client request: Token is not valid
2025-08-17T12:10:07.858167Z ERROR client_request{request=GetUserSavedTracks}: spotify_player::client::handlers: Failed to handle client request: Token is not valid
2025-08-17T12:10:07.858166Z ERROR client_request{request=GetUserSavedShows}: spotify_player::client::handlers: Failed to handle client request: Token is not valid
2025-08-17T12:10:08.075819Z ERROR librespot_core::mercury: error 403 for uri hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=65b708073fc0480ea92a077233ca87bd&device_id=451f456a-5fb1-44a0-b010-ebf8587eb1ea
2025-08-17T12:10:08.075947Z ERROR client_request{request=GetUserPlaylists}: spotify_player::client::spotify: Failed to get a new token: failed to get the token: Service unavailable { error handling Mercury response: MercuryResponse { uri: "hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=65b708073fc0480ea92a077233ca87bd&device_id=451f456a-5fb1-44a0-b010-ebf8587eb1ea", status_code: 403, payload: 123, 34, 99, 111, 100, 101, 34, 58, 52, 44, 34, 101, 114, 114, 111, 114, 68, 101, 115, 99, 114, 105, 112, 116, 105, 111, 110, 34, 58, 34, 73, 110, 118, 97, 108, 105, 100, 32, 114, 101, 113, 117, 101, 115, 116, 34, 125 } }
2025-08-17T12:10:08.075967Z ERROR client_request{request=GetUserPlaylists}: spotify_player::client::handlers: Failed to handle client request: get access token: failed to get the authentication token stored inside the client.
2025-08-17T12:10:08.857322Z ERROR spotify_player::client: Failed to retrieve current playback: Token is not valid
2025-08-17T12:10:08.857356Z ERROR spotify_player::client: Failed to retrieve current playback: Token is not valid
2025-08-17T12:10:10.469731Z ERROR librespot_core::mercury: error 403 for uri hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=7659e3d0f1cf4eda8203d9a49b8bc1be&device_id=451f456a-5fb1-44a0-b010-ebf8587eb1ea
2025-08-17T12:10:10.469841Z ERROR client_request{request=GetDevices}: spotify_player::client::handlers: Failed to handle client request: get access token: Service unavailable { error handling Mercury response: MercuryResponse { uri: "hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=7659e3d0f1cf4eda8203d9a49b8bc1be&device_id=451f456a-5fb1-44a0-b010-ebf8587eb1ea", status_code: 403, payload: 123, 34, 99, 111, 100, 101, 34, 58, 52, 44, 34, 101, 114, 114, 111, 114, 68, 101, 115, 99, 114, 105, 112, 116, 105, 111, 110, 34, 58, 34, 73, 110, 118, 97, 108, 105, 100, 32, 114, 101, 113, 117, 101, 115, 116, 34, 125 } }

Sorry for the delay this was the relevant log I found

<!-- gh-comment-id:3194348356 --> @arashdev7 commented on GitHub (Aug 17, 2025): 25-08-17T12:10:07.224958Z WARN librespot_core::apresolve: Failed to resolve all access points, using fallbacks 2025-08-17T12:10:07.225014Z WARN librespot_core::apresolve: Resolve access points error: Service unavailable { client error (Connect) } 2025-08-17T12:10:07.225033Z INFO librespot_core::session: Connecting to AP "ap.spotify.com:443" 2025-08-17T12:10:07.709899Z INFO librespot_core::session: Authenticated as 'arashdev' ! 2025-08-17T12:10:07.710440Z INFO librespot_core::session: Country: "IN" 2025-08-17T12:10:07.712215Z INFO spotify_player::streaming: New streaming connection has been established! 2025-08-17T12:10:07.712254Z INFO spotify_player::client: Used a new session for Spotify client. 2025-08-17T12:10:07.712335Z INFO spotify_player::token: Getting a new authentication token... 2025-08-17T12:10:07.856487Z ERROR librespot_core::mercury: error 403 for uri hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=65b708073fc0480ea92a077233ca87bd&device_id=451f456a-5fb1-44a0-b010-ebf8587eb1ea 2025-08-17T12:10:07.856616Z ERROR spotify_player::client::spotify: Failed to get a new token: failed to get the token: Service unavailable { error handling Mercury response: MercuryResponse { uri: "hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=65b708073fc0480ea92a077233ca87bd&device_id=451f456a-5fb1-44a0-b010-ebf8587eb1ea", status_code: 403, payload: [[123, 34, 99, 111, 100, 101, 34, 58, 52, 44, 34, 101, 114, 114, 111, 114, 68, 101, 115, 99, 114, 105, 112, 116, 105, 111, 110, 34, 58, 34, 73, 110, 118, 97, 108, 105, 100, 32, 114, 101, 113, 117, 101, 115, 116, 34, 125]] } } 2025-08-17T12:10:07.856906Z INFO spotify_player: Starting a client socket at 127.0.0.1:8080 2025-08-17T12:10:07.857167Z INFO spotify_player::media_control: Initializing application's media control event watcher... 2025-08-17T12:10:07.858084Z INFO client_request{request=GetUserPlaylists}: spotify_player::token: Getting a new authentication token... 2025-08-17T12:10:07.858164Z ERROR client_request{request=GetUserFollowedArtists}: spotify_player::client::handlers: Failed to handle client request: Token is not valid 2025-08-17T12:10:07.858166Z ERROR client_request{request=GetCurrentUser}: spotify_player::client::handlers: Failed to handle client request: Token is not valid 2025-08-17T12:10:07.858166Z ERROR client_request{request=GetUserSavedAlbums}: spotify_player::client::handlers: Failed to handle client request: Token is not valid 2025-08-17T12:10:07.858167Z ERROR client_request{request=GetUserSavedTracks}: spotify_player::client::handlers: Failed to handle client request: Token is not valid 2025-08-17T12:10:07.858166Z ERROR client_request{request=GetUserSavedShows}: spotify_player::client::handlers: Failed to handle client request: Token is not valid 2025-08-17T12:10:08.075819Z ERROR librespot_core::mercury: error 403 for uri hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=65b708073fc0480ea92a077233ca87bd&device_id=451f456a-5fb1-44a0-b010-ebf8587eb1ea 2025-08-17T12:10:08.075947Z ERROR client_request{request=GetUserPlaylists}: spotify_player::client::spotify: Failed to get a new token: failed to get the token: Service unavailable { error handling Mercury response: MercuryResponse { uri: "hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=65b708073fc0480ea92a077233ca87bd&device_id=451f456a-5fb1-44a0-b010-ebf8587eb1ea", status_code: 403, payload: [[123, 34, 99, 111, 100, 101, 34, 58, 52, 44, 34, 101, 114, 114, 111, 114, 68, 101, 115, 99, 114, 105, 112, 116, 105, 111, 110, 34, 58, 34, 73, 110, 118, 97, 108, 105, 100, 32, 114, 101, 113, 117, 101, 115, 116, 34, 125]] } } 2025-08-17T12:10:08.075967Z ERROR client_request{request=GetUserPlaylists}: spotify_player::client::handlers: Failed to handle client request: get access token: failed to get the authentication token stored inside the client. 2025-08-17T12:10:08.857322Z ERROR spotify_player::client: Failed to retrieve current playback: Token is not valid 2025-08-17T12:10:08.857356Z ERROR spotify_player::client: Failed to retrieve current playback: Token is not valid 2025-08-17T12:10:10.469731Z ERROR librespot_core::mercury: error 403 for uri hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=7659e3d0f1cf4eda8203d9a49b8bc1be&device_id=451f456a-5fb1-44a0-b010-ebf8587eb1ea 2025-08-17T12:10:10.469841Z ERROR client_request{request=GetDevices}: spotify_player::client::handlers: Failed to handle client request: get access token: Service unavailable { error handling Mercury response: MercuryResponse { uri: "hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=7659e3d0f1cf4eda8203d9a49b8bc1be&device_id=451f456a-5fb1-44a0-b010-ebf8587eb1ea", status_code: 403, payload: [[123, 34, 99, 111, 100, 101, 34, 58, 52, 44, 34, 101, 114, 114, 111, 114, 68, 101, 115, 99, 114, 105, 112, 116, 105, 111, 110, 34, 58, 34, 73, 110, 118, 97, 108, 105, 100, 32, 114, 101, 113, 117, 101, 115, 116, 34, 125]] } } Sorry for the delay this was the relevant log I found
Author
Owner

@arashdev7 commented on GitHub (Aug 17, 2025):

Ok sir I followed comment #802 and I can see the playback but the device list still shows empty

<!-- gh-comment-id:3194355166 --> @arashdev7 commented on GitHub (Aug 17, 2025): Ok sir I followed comment #802 and I can see the playback but the device list still shows empty
Author
Owner

@arashdev7 commented on GitHub (Aug 17, 2025):

2025-08-17T12:30:44.956670Z INFO client_request{request=GetDevices}: spotify_player::client: Successfully handled the client request, took: 122ms
2025-08-17T12:31:00.283410Z INFO client_request{request=GetDevices}: spotify_player::client: Successfully handled the client request, took: 210ms
it shows it handled the request perfectly but I can't see any devices

<!-- gh-comment-id:3194357130 --> @arashdev7 commented on GitHub (Aug 17, 2025): 2025-08-17T12:30:44.956670Z INFO client_request{request=GetDevices}: spotify_player::client: Successfully handled the client request, took: 122ms 2025-08-17T12:31:00.283410Z INFO client_request{request=GetDevices}: spotify_player::client: Successfully handled the client request, took: 210ms it shows it handled the request perfectly but I can't see any devices
Author
Owner

@arashdev7 commented on GitHub (Aug 17, 2025):

Image this is the current stage
<!-- gh-comment-id:3194358665 --> @arashdev7 commented on GitHub (Aug 17, 2025): <img width="2880" height="1800" alt="Image" src="https://github.com/user-attachments/assets/f90e102e-bf27-4b71-b200-b60c45a202e1" /> this is the current stage
Author
Owner

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

Did you go through https://github.com/aome510/spotify-player?tab=readme-ov-file#spotify-connect? There should be a log line pointing to the above document if the API works and no device is returned

<!-- gh-comment-id:3194462375 --> @aome510 commented on GitHub (Aug 17, 2025): Did you go through https://github.com/aome510/spotify-player?tab=readme-ov-file#spotify-connect? There should be a log line pointing to the above document if the API works and no device is returned
Author
Owner

@arashdev7 commented on GitHub (Aug 18, 2025):

Yeah I went through it, the config I have is pretty similar to example config and I made the spotify app accordingly I think, I'll go through again and will get back

<!-- gh-comment-id:3196237250 --> @arashdev7 commented on GitHub (Aug 18, 2025): Yeah I went through it, the config I have is pretty similar to example config and I made the spotify app accordingly I think, I'll go through again and will get back
Author
Owner

@ThomasTheCoder198 commented on GitHub (Aug 20, 2025):

Have someone fixed this ?

<!-- gh-comment-id:3206290528 --> @ThomasTheCoder198 commented on GitHub (Aug 20, 2025): Have someone fixed this ?
Author
Owner

@dcorral commented on GitHub (Aug 21, 2025):

2025-08-21T20:22:53.000691Z  WARN spotify_player::client: No device found. Please make sure you already setup Spotify Connect support as described in https://github.com/aome510/spotify-player#spotify-connect.
2025-08-21T20:22:53.000817Z  INFO spotify_player::client: Trying to connect to device (id=2c347211-df00-45e4-8af1-a6480b3214bb)
2025-08-21T20:22:53.002154Z  WARN spotify_player::client: No device found. Please make sure you already setup Spotify Connect support as described in https://github.com/aome510/spotify-player#spotify-connect.
2025-08-21T20:22:53.002252Z  INFO spotify_player::client: Trying to connect to device (id=2c347211-df00-45e4-8af1-a6480b3214bb)
2025-08-21T20:22:53.088093Z  WARN librespot_connect::state::context: couldn't load context info because: context is not available. type: Default

<!-- gh-comment-id:3211975755 --> @dcorral commented on GitHub (Aug 21, 2025): ``` 2025-08-21T20:22:53.000691Z WARN spotify_player::client: No device found. Please make sure you already setup Spotify Connect support as described in https://github.com/aome510/spotify-player#spotify-connect. 2025-08-21T20:22:53.000817Z INFO spotify_player::client: Trying to connect to device (id=2c347211-df00-45e4-8af1-a6480b3214bb) 2025-08-21T20:22:53.002154Z WARN spotify_player::client: No device found. Please make sure you already setup Spotify Connect support as described in https://github.com/aome510/spotify-player#spotify-connect. 2025-08-21T20:22:53.002252Z INFO spotify_player::client: Trying to connect to device (id=2c347211-df00-45e4-8af1-a6480b3214bb) 2025-08-21T20:22:53.088093Z WARN librespot_connect::state::context: couldn't load context info because: context is not available. type: Default ```
Author
Owner

@dcorral commented on GitHub (Aug 21, 2025):

Looks like the access token scope/permissions are wrong.
https://developer.spotify.com/documentation/web-api/reference/get-a-users-available-devices
I used the access token logged in the app logs in the sample curl call provided above and it returns a valid response (200) but with an empty array:

{
  "devices" : [ ]
}

if I use the access token in the example in the documentation I get the full list of devices.
So that makes me think there is something off with the access token generation/fetch. This is also related to the recent issues on authentication #802

<!-- gh-comment-id:3212043892 --> @dcorral commented on GitHub (Aug 21, 2025): Looks like the access token scope/permissions are wrong. https://developer.spotify.com/documentation/web-api/reference/get-a-users-available-devices I used the access token logged in the app logs in the sample curl call provided above and it returns a valid response (200) but with an empty array: ``` { "devices" : [ ] } ``` if I use the access token in the example in the documentation I get the full list of devices. So that makes me think there is something off with the access token generation/fetch. This is also related to the recent issues on authentication #802
Author
Owner

@sewnie commented on GitHub (Aug 23, 2025):

Image

Unusable.

2025-08-23T14:50:37.417263Z ERROR librespot_core::mercury: error 403 for uri hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=[omitted...]&device_id=[omitted...]
2025-08-23T14:50:37.417328Z ERROR spotify_player::client::spotify: Failed to get a new token: failed to get the token: Service unavailable { error handling Mercury response: MercuryResponse { uri: "hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=[omitted...]&device_id=[omitted...]", status_code: 403, payload: [[[omitted...]]] } }
2025-08-23T14:50:37.417353Z  INFO spotify_player: Starting a client socket at 127.0.0.1:8080
2025-08-23T14:50:37.417455Z ERROR client_request{request=GetUserSavedShows}: spotify_player::client::handlers: Failed to handle client request: Token is not valid
2025-08-23T14:50:37.417472Z ERROR client_request{request=GetCurrentUser}: spotify_player::client::handlers: Failed to handle client request: Token is not valid
2025-08-23T14:50:37.417479Z ERROR client_request{request=GetUserSavedAlbums}: spotify_player::client::handlers: Failed to handle client request: Token is not valid
2025-08-23T14:50:37.417485Z ERROR client_request{request=GetUserSavedTracks}: spotify_player::client::handlers: Failed to handle client request: Token is not valid
2025-08-23T14:50:37.417487Z ERROR client_request{request=GetUserFollowedArtists}: spotify_player::client::handlers: Failed to handle client request: Token is not valid
2025-08-23T14:50:37.417498Z  INFO client_request{request=GetUserPlaylists}: spotify_player::token: Getting a new authentication token...
2025-08-23T14:50:37.417560Z  INFO spotify_player::media_control: Initializing application's media control event watcher...
2025-08-23T14:50:37.508564Z ERROR librespot_core::mercury: error 403 for uri hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=[omitted...]&device_id=[omitted...] 
2025-08-23T14:50:37.508598Z ERROR client_request{request=GetUserPlaylists}: spotify_player::client::spotify: Failed to get a new token: failed to get the token: Service unavailable { error handling Mercury response: MercuryResponse { uri: "hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=[omitted...]&device_id=[omitted...]", status_code: 403, payload: [[[omitted...]]] } }
2025-08-23T14:50:37.508608Z ERROR client_request{request=GetUserPlaylists}: spotify_player::client::handlers: Failed to handle client request: get access token: failed to get the authentication token stored inside the client.
2025-08-23T14:50:38.418450Z ERROR spotify_player::client: Failed to retrieve current playback: Token is not valid
2025-08-23T14:50:38.418468Z ERROR spotify_player::client: Failed to retrieve current playback: Token is not valid
<!-- gh-comment-id:3217082586 --> @sewnie commented on GitHub (Aug 23, 2025): <img width="890" height="676" alt="Image" src="https://github.com/user-attachments/assets/f8696caa-2e62-46dd-8a2e-039f6cb26f62" /> Unusable. ``` 2025-08-23T14:50:37.417263Z ERROR librespot_core::mercury: error 403 for uri hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=[omitted...]&device_id=[omitted...] 2025-08-23T14:50:37.417328Z ERROR spotify_player::client::spotify: Failed to get a new token: failed to get the token: Service unavailable { error handling Mercury response: MercuryResponse { uri: "hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=[omitted...]&device_id=[omitted...]", status_code: 403, payload: [[[omitted...]]] } } 2025-08-23T14:50:37.417353Z INFO spotify_player: Starting a client socket at 127.0.0.1:8080 2025-08-23T14:50:37.417455Z ERROR client_request{request=GetUserSavedShows}: spotify_player::client::handlers: Failed to handle client request: Token is not valid 2025-08-23T14:50:37.417472Z ERROR client_request{request=GetCurrentUser}: spotify_player::client::handlers: Failed to handle client request: Token is not valid 2025-08-23T14:50:37.417479Z ERROR client_request{request=GetUserSavedAlbums}: spotify_player::client::handlers: Failed to handle client request: Token is not valid 2025-08-23T14:50:37.417485Z ERROR client_request{request=GetUserSavedTracks}: spotify_player::client::handlers: Failed to handle client request: Token is not valid 2025-08-23T14:50:37.417487Z ERROR client_request{request=GetUserFollowedArtists}: spotify_player::client::handlers: Failed to handle client request: Token is not valid 2025-08-23T14:50:37.417498Z INFO client_request{request=GetUserPlaylists}: spotify_player::token: Getting a new authentication token... 2025-08-23T14:50:37.417560Z INFO spotify_player::media_control: Initializing application's media control event watcher... 2025-08-23T14:50:37.508564Z ERROR librespot_core::mercury: error 403 for uri hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=[omitted...]&device_id=[omitted...] 2025-08-23T14:50:37.508598Z ERROR client_request{request=GetUserPlaylists}: spotify_player::client::spotify: Failed to get a new token: failed to get the token: Service unavailable { error handling Mercury response: MercuryResponse { uri: "hm://keymaster/token/authenticated?scope=user-read-recently-played,user-top-read,user-read-playback-position,user-read-playback-state,user-modify-playback-state,user-read-currently-playing,streaming,playlist-read-private,playlist-modify-private,playlist-modify-public,playlist-read-collaborative,user-follow-read,user-follow-modify,user-library-read,user-library-modify&client_id=[omitted...]&device_id=[omitted...]", status_code: 403, payload: [[[omitted...]]] } } 2025-08-23T14:50:37.508608Z ERROR client_request{request=GetUserPlaylists}: spotify_player::client::handlers: Failed to handle client request: get access token: failed to get the authentication token stored inside the client. 2025-08-23T14:50:38.418450Z ERROR spotify_player::client: Failed to retrieve current playback: Token is not valid 2025-08-23T14:50:38.418468Z ERROR spotify_player::client: Failed to retrieve current playback: Token is not valid
Author
Owner

@bbzylstra commented on GitHub (Aug 23, 2025):

The new login5 token acquisition method unfortunately does not support custom client_ids (login5 uses the spotify keymaster id 65b708073fc0480ea92a077233ca87bd), so I think moving forward the device list will no longer work. https://github.com/librespot-org/librespot/issues/1532

If you want these features, you'd need to implement the spotify oauth flow with a custom client_id and client_secret.

<!-- gh-comment-id:3217261646 --> @bbzylstra commented on GitHub (Aug 23, 2025): The new login5 token acquisition method unfortunately does not support custom client_ids (login5 uses the spotify keymaster id 65b708073fc0480ea92a077233ca87bd), so I think moving forward the device list will no longer work. https://github.com/librespot-org/librespot/issues/1532 If you want these features, you'd need to implement the spotify oauth flow with a custom client_id and client_secret.
Author
Owner

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

Please refer to my comment in https://github.com/aome510/spotify-player/issues/802#issuecomment-3218342832. Will figure out how to bring back Spotify Connect

<!-- gh-comment-id:3218343167 --> @aome510 commented on GitHub (Aug 24, 2025): Please refer to my comment in https://github.com/aome510/spotify-player/issues/802#issuecomment-3218342832. Will figure out how to bring back Spotify Connect
Author
Owner

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

Should be fixed by #809. With the new change, users will be prompted once to get a new token (cached in $APP_CACHE_FOLDER/user_client_token.json) for the Spotify Connect integration. Please refer to latest Spotify Connect doc for more details.

Lmk if you guys have any issues

<!-- gh-comment-id:3218787087 --> @aome510 commented on GitHub (Aug 25, 2025): Should be fixed by #809. With the new change, users will be prompted **once** to get a **new** token (cached in `$APP_CACHE_FOLDER/user_client_token.json`) for the Spotify Connect integration. Please refer to [latest Spotify Connect doc](https://github.com/aome510/spotify-player?tab=readme-ov-file#spotify-connect) for more details. Lmk if you guys have any issues
Author
Owner

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

I can see the list of devices however only the default device set in the app.toml works

some logs in case it helps:

2025-08-25T15:21:29.413840Z ERROR librespot_connect::spirc: could not dispatch connect state update: Client specified an invalid argument { Response status code: 411 Length Required }    
2025-08-25T15:21:35.633006Z  INFO client_request{request=Player(ResumePause)}: spotify_player::client: Successfully handled the client request, took: 65ms
2025-08-25T15:21:36.694927Z  INFO client_request{request=Player(ResumePause)}: spotify_player::client: Successfully handled the client request, took: 62ms
2025-08-25T15:21:37.576052Z  INFO client_request{request=Player(ResumePause)}: spotify_player::client: Successfully handled the client request, took: 68ms
2025-08-25T15:21:51.297844Z  INFO client_request{request=GetDevices}: spotify_player::client: Successfully handled the client request, took: 82ms
2025-08-25T15:21:52.772871Z  WARN librespot_connect::state::context: couldn't load context info because: context is not available. type: Default    
2025-08-25T15:21:52.773382Z  INFO spotify_player::streaming: Got a new player event: Changed { playable_id: Track(TrackId("3UervbIzOpLhZtde0jZAro")) }
2025-08-25T15:21:52.773533Z  INFO spotify_player::streaming: Got a new player event: Paused { playable_id: Track(TrackId("3UervbIzOpLhZtde0jZAro")), position_ms: 125567 }
2025-08-25T15:21:53.035722Z  INFO client_request{request=Player(TransferPlayback("988c7b4a-271c-4233-8b8a-2f317e070234", false))}: spotify_player::client: Transferred playback to device with id=988c7b4a-271c-4233-8b8a-2f317e070234
2025-08-25T15:21:53.035838Z  INFO client_request{request=Player(TransferPlayback("988c7b4a-271c-4233-8b8a-2f317e070234", false))}: spotify_player::client: Successfully handled the client request, took: 328ms
2025-08-25T15:21:54.992920Z  INFO spotify_player::streaming: Got a new player event: Playing { playable_id: Track(TrackId("3UervbIzOpLhZtde0jZAro")), position_ms: 125567 }
2025-08-25T15:21:55.025363Z  INFO client_request{request=Player(ResumePause)}: spotify_player::client: Successfully handled the client request, took: 176ms
2025-08-25T15:21:58.580297Z  INFO client_request{request=GetDevices}: spotify_player::client: Successfully handled the client request, took: 65ms
2025-08-25T15:21:59.957913Z  INFO client_request{request=Player(TransferPlayback("2e46cdfb3faed14c7d5bbeed53a029c93ba11c00", true))}: spotify_player::client: Transferred playback to device with id=2e46cdfb3faed14c7d5bbeed53a029c93ba11c00
2025-08-25T15:21:59.958139Z  INFO client_request{request=Player(TransferPlayback("2e46cdfb3faed14c7d5bbeed53a029c93ba11c00", true))}: spotify_player::client: Successfully handled the client request, took: 452ms
2025-08-25T15:22:00.023149Z  INFO librespot_connect::spirc: device became inactive    
2025-08-25T15:22:00.123214Z  WARN librespot_connect::state::context: couldn't load context info because: context is not available. type: Default    
2025-08-25T15:22:00.231727Z ERROR librespot_connect::spirc: could not dispatch connect state update: Client specified an invalid argument { Response status code: 411 Length Required }    
2025-08-25T15:22:01.455374Z  INFO client_request{request=GetDevices}: spotify_player::client: Successfully handled the client request, took: 53ms
<!-- gh-comment-id:3220714472 --> @dcorral commented on GitHub (Aug 25, 2025): I can see the list of devices however only the default device set in the app.toml works some logs in case it helps: ``` 2025-08-25T15:21:29.413840Z ERROR librespot_connect::spirc: could not dispatch connect state update: Client specified an invalid argument { Response status code: 411 Length Required } 2025-08-25T15:21:35.633006Z INFO client_request{request=Player(ResumePause)}: spotify_player::client: Successfully handled the client request, took: 65ms 2025-08-25T15:21:36.694927Z INFO client_request{request=Player(ResumePause)}: spotify_player::client: Successfully handled the client request, took: 62ms 2025-08-25T15:21:37.576052Z INFO client_request{request=Player(ResumePause)}: spotify_player::client: Successfully handled the client request, took: 68ms 2025-08-25T15:21:51.297844Z INFO client_request{request=GetDevices}: spotify_player::client: Successfully handled the client request, took: 82ms 2025-08-25T15:21:52.772871Z WARN librespot_connect::state::context: couldn't load context info because: context is not available. type: Default 2025-08-25T15:21:52.773382Z INFO spotify_player::streaming: Got a new player event: Changed { playable_id: Track(TrackId("3UervbIzOpLhZtde0jZAro")) } 2025-08-25T15:21:52.773533Z INFO spotify_player::streaming: Got a new player event: Paused { playable_id: Track(TrackId("3UervbIzOpLhZtde0jZAro")), position_ms: 125567 } 2025-08-25T15:21:53.035722Z INFO client_request{request=Player(TransferPlayback("988c7b4a-271c-4233-8b8a-2f317e070234", false))}: spotify_player::client: Transferred playback to device with id=988c7b4a-271c-4233-8b8a-2f317e070234 2025-08-25T15:21:53.035838Z INFO client_request{request=Player(TransferPlayback("988c7b4a-271c-4233-8b8a-2f317e070234", false))}: spotify_player::client: Successfully handled the client request, took: 328ms 2025-08-25T15:21:54.992920Z INFO spotify_player::streaming: Got a new player event: Playing { playable_id: Track(TrackId("3UervbIzOpLhZtde0jZAro")), position_ms: 125567 } 2025-08-25T15:21:55.025363Z INFO client_request{request=Player(ResumePause)}: spotify_player::client: Successfully handled the client request, took: 176ms 2025-08-25T15:21:58.580297Z INFO client_request{request=GetDevices}: spotify_player::client: Successfully handled the client request, took: 65ms 2025-08-25T15:21:59.957913Z INFO client_request{request=Player(TransferPlayback("2e46cdfb3faed14c7d5bbeed53a029c93ba11c00", true))}: spotify_player::client: Transferred playback to device with id=2e46cdfb3faed14c7d5bbeed53a029c93ba11c00 2025-08-25T15:21:59.958139Z INFO client_request{request=Player(TransferPlayback("2e46cdfb3faed14c7d5bbeed53a029c93ba11c00", true))}: spotify_player::client: Successfully handled the client request, took: 452ms 2025-08-25T15:22:00.023149Z INFO librespot_connect::spirc: device became inactive 2025-08-25T15:22:00.123214Z WARN librespot_connect::state::context: couldn't load context info because: context is not available. type: Default 2025-08-25T15:22:00.231727Z ERROR librespot_connect::spirc: could not dispatch connect state update: Client specified an invalid argument { Response status code: 411 Length Required } 2025-08-25T15:22:01.455374Z INFO client_request{request=GetDevices}: spotify_player::client: Successfully handled the client request, took: 53ms ```
Author
Owner

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

see https://github.com/aome510/spotify-player/issues/811

I can do Spotify Connect just fine to another device, i.e. my phone or Spotify official app. The problem is that spotify_player's integrated player still plays the sound even the playback is transferred to a different device.

<!-- gh-comment-id:3220759436 --> @aome510 commented on GitHub (Aug 25, 2025): see https://github.com/aome510/spotify-player/issues/811 I can do Spotify Connect just fine to another device, i.e. my phone or Spotify official app. The problem is that `spotify_player`'s integrated player still plays the sound even the playback is transferred to a different device.
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#479
No description provided.