[GH-ISSUE #802] Authentication Error #1411

Closed
opened 2026-03-14 14:45:23 +03:00 by kerem · 44 comments
Owner

Originally created by @houdini-21 on GitHub (Aug 12, 2025).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/802

Describe the bug
The player cannot obtain a new authentication token from Spotify, causing all API requests to fail with the message Token is not valid. The log shows multiple 403 errors when trying to access the endpoint hm://keymaster/token/authenticated.

To Reproduce

  1. Start spotify-player with default configuration.
  2. Log in and authorize the application.
  3. Attempt to play music or access saved playlists/albums.
  4. Observe that the player fails to load content and errors appear in the log.

Expected behaviour
The player should successfully authenticate with Spotify, obtain a valid token, and allow music playback or library access without errors.

Log and backtrace
Relevant log excerpt:

2025-08-12T18:05:16.271554Z  INFO spotify_player::streaming: Application's connect configurations: ConnectConfig { name: "spotify-player", device_type: Speaker, is_group: false, initial_volume: Some(45875), has_volume_ctrl: true }
2025-08-12T18:05:16.271642Z  INFO librespot_playback::mixer::softmixer: Mixing with softvol and volume control: Log(60.0)    
2025-08-12T18:05:16.271712Z  INFO spotify_player::streaming: Initializing a new integrated player with device_id=96c6fc86-8617-4ddb-bd4a-6addc65e2110
2025-08-12T18:05:16.271866Z  INFO spotify_player::streaming: Starting an integrated Spotify player using librespot's spirc protocol
2025-08-12T18:05:16.272017Z  INFO librespot_playback::convert: Converting with ditherer: tpdf    
2025-08-12T18:05:16.272069Z  INFO librespot_playback::audio_backend::pulseaudio: Using PulseAudioSink with format: S16    
2025-08-12T18:05:16.797214Z  WARN librespot_core::apresolve: Failed to resolve all access points, using fallbacks    
2025-08-12T18:05:16.797253Z  WARN librespot_core::apresolve: Resolve access points error: Service unavailable { client error (Connect) }    
2025-08-12T18:05:16.797270Z  INFO librespot_core::session: Connecting to AP "ap.spotify.com:443"    
2025-08-12T18:05:17.806433Z  INFO librespot_core::session: Authenticated as '22t2e4xlf4ti7ugol2wkt2aui' !    
2025-08-12T18:05:17.806715Z  INFO spotify_player::streaming: New streaming connection has been established!
2025-08-12T18:05:17.806723Z  INFO spotify_player::client: Used a new session for Spotify client.
2025-08-12T18:05:17.806732Z  INFO spotify_player::token: Getting a new authentication token...
2025-08-12T18:05:17.806816Z  INFO librespot_core::session: Country: "SV"    
2025-08-12T18:05:18.138182Z 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=96c6fc86-8617-4ddb-bd4a-6addc65e2110    
2025-08-12T18:05:18.138315Z 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=96c6fc86-8617-4ddb-bd4a-6addc65e2110", 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-12T18:05:18.138461Z  INFO spotify_player: Starting a client socket at 127.0.0.1:8080
2025-08-12T18:05:18.138594Z  INFO client_request{request=GetUserPlaylists}: spotify_player::token: Getting a new authentication token...
2025-08-12T18:05:18.138598Z ERROR client_request{request=GetUserSavedShows}: spotify_player::client::handlers: Failed to handle client request: Token is not valid
2025-08-12T18:05:18.138605Z ERROR client_request{request=GetUserFollowedArtists}: spotify_player::client::handlers: Failed to handle client request: Token is not valid
2025-08-12T18:05:18.138606Z ERROR client_request{request=GetCurrentUser}: spotify_player::client::handlers: Failed to handle client request: Token is not valid
2025-08-12T18:05:18.138632Z ERROR client_request{request=GetUserSavedAlbums}: spotify_player::client::handlers: Failed to handle client request: Token is not valid
2025-08-12T18:05:18.138648Z ERROR client_request{request=GetUserSavedTracks}: spotify_player::client::handlers: Failed to handle client request: Token is not valid
2025-08-12T18:05:18.226385Z 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=96c6fc86-8617-4ddb-bd4a-6addc65e2110    
2025-08-12T18:05:18.226481Z 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=96c6fc86-8617-4ddb-bd4a-6addc65e2110", 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-12T18:05:18.226500Z 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-12T18:05:19.140099Z ERROR spotify_player::client: Failed to retrieve current playback: Token is not valid
2025-08-12T18:05:19.140148Z ERROR spotify_player::client: Failed to retrieve current playback: Token is not valid

Screenshots
Image

Environment

  • OS: Arch Linux
  • **Application version:**0.20.7

Additional context

  • The error appears to be related to authentication via librespot, specifically when obtaining the token with certain scopes from the keymaster endpoint.
  • This may be due to Spotify policy changes, issues with the client_id used, or a bug in the library handling authentication.
Originally created by @houdini-21 on GitHub (Aug 12, 2025). Original GitHub issue: https://github.com/aome510/spotify-player/issues/802 **Describe the bug** The player cannot obtain a new authentication token from Spotify, causing all API requests to fail with the message `Token is not valid`. The log shows multiple `403` errors when trying to access the endpoint `hm://keymaster/token/authenticated`. **To Reproduce** 1. Start `spotify-player` with default configuration. 2. Log in and authorize the application. 3. Attempt to play music or access saved playlists/albums. 4. Observe that the player fails to load content and errors appear in the log. **Expected behaviour** The player should successfully authenticate with Spotify, obtain a valid token, and allow music playback or library access without errors. **Log and backtrace** Relevant log excerpt: ``` 2025-08-12T18:05:16.271554Z INFO spotify_player::streaming: Application's connect configurations: ConnectConfig { name: "spotify-player", device_type: Speaker, is_group: false, initial_volume: Some(45875), has_volume_ctrl: true } 2025-08-12T18:05:16.271642Z INFO librespot_playback::mixer::softmixer: Mixing with softvol and volume control: Log(60.0) 2025-08-12T18:05:16.271712Z INFO spotify_player::streaming: Initializing a new integrated player with device_id=96c6fc86-8617-4ddb-bd4a-6addc65e2110 2025-08-12T18:05:16.271866Z INFO spotify_player::streaming: Starting an integrated Spotify player using librespot's spirc protocol 2025-08-12T18:05:16.272017Z INFO librespot_playback::convert: Converting with ditherer: tpdf 2025-08-12T18:05:16.272069Z INFO librespot_playback::audio_backend::pulseaudio: Using PulseAudioSink with format: S16 2025-08-12T18:05:16.797214Z WARN librespot_core::apresolve: Failed to resolve all access points, using fallbacks 2025-08-12T18:05:16.797253Z WARN librespot_core::apresolve: Resolve access points error: Service unavailable { client error (Connect) } 2025-08-12T18:05:16.797270Z INFO librespot_core::session: Connecting to AP "ap.spotify.com:443" 2025-08-12T18:05:17.806433Z INFO librespot_core::session: Authenticated as '22t2e4xlf4ti7ugol2wkt2aui' ! 2025-08-12T18:05:17.806715Z INFO spotify_player::streaming: New streaming connection has been established! 2025-08-12T18:05:17.806723Z INFO spotify_player::client: Used a new session for Spotify client. 2025-08-12T18:05:17.806732Z INFO spotify_player::token: Getting a new authentication token... 2025-08-12T18:05:17.806816Z INFO librespot_core::session: Country: "SV" 2025-08-12T18:05:18.138182Z 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=96c6fc86-8617-4ddb-bd4a-6addc65e2110 2025-08-12T18:05:18.138315Z 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=96c6fc86-8617-4ddb-bd4a-6addc65e2110", 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-12T18:05:18.138461Z INFO spotify_player: Starting a client socket at 127.0.0.1:8080 2025-08-12T18:05:18.138594Z INFO client_request{request=GetUserPlaylists}: spotify_player::token: Getting a new authentication token... 2025-08-12T18:05:18.138598Z ERROR client_request{request=GetUserSavedShows}: spotify_player::client::handlers: Failed to handle client request: Token is not valid 2025-08-12T18:05:18.138605Z ERROR client_request{request=GetUserFollowedArtists}: spotify_player::client::handlers: Failed to handle client request: Token is not valid 2025-08-12T18:05:18.138606Z ERROR client_request{request=GetCurrentUser}: spotify_player::client::handlers: Failed to handle client request: Token is not valid 2025-08-12T18:05:18.138632Z ERROR client_request{request=GetUserSavedAlbums}: spotify_player::client::handlers: Failed to handle client request: Token is not valid 2025-08-12T18:05:18.138648Z ERROR client_request{request=GetUserSavedTracks}: spotify_player::client::handlers: Failed to handle client request: Token is not valid 2025-08-12T18:05:18.226385Z 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=96c6fc86-8617-4ddb-bd4a-6addc65e2110 2025-08-12T18:05:18.226481Z 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=96c6fc86-8617-4ddb-bd4a-6addc65e2110", 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-12T18:05:18.226500Z 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-12T18:05:19.140099Z ERROR spotify_player::client: Failed to retrieve current playback: Token is not valid 2025-08-12T18:05:19.140148Z ERROR spotify_player::client: Failed to retrieve current playback: Token is not valid ``` **Screenshots** <img width="1179" height="1344" alt="Image" src="https://github.com/user-attachments/assets/c014572b-d47c-470e-9243-630fa5dae5ad" /> **Environment** - **OS:** Arch Linux - **Application version:**0.20.7 **Additional context** - The error appears to be related to authentication via `librespot`, specifically when obtaining the token with certain scopes from the `keymaster` endpoint. - This may be due to Spotify policy changes, issues with the `client_id` used, or a bug in the library handling authentication.
kerem 2026-03-14 14:45:23 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@VuillaumeXB commented on GitHub (Aug 12, 2025):

Same issue here, on Arch Linux as well

<!-- gh-comment-id:3180458961 --> @VuillaumeXB commented on GitHub (Aug 12, 2025): Same issue here, on Arch Linux as well
Author
Owner

@H4ckN3rd commented on GitHub (Aug 12, 2025):

Same here on Fedora, pretty sure it’s a Spotify-side issue, not the OS or client, since Ncspot’s busted too. #801

<!-- gh-comment-id:3180468115 --> @H4ckN3rd commented on GitHub (Aug 12, 2025): Same here on Fedora, pretty sure it’s a Spotify-side issue, not the OS or client, since Ncspot’s busted too. #801
Author
Owner

@juliusdelta commented on GitHub (Aug 12, 2025):

Same issue here on Arch Linux.

<!-- gh-comment-id:3180500256 --> @juliusdelta commented on GitHub (Aug 12, 2025): Same issue here on Arch Linux.
Author
Owner

@juliusdelta commented on GitHub (Aug 12, 2025):

I've opened an issue in the librespot repo for this issue https://github.com/librespot-org/librespot/issues/1532

<!-- gh-comment-id:3180636395 --> @juliusdelta commented on GitHub (Aug 12, 2025): I've opened an issue in the librespot repo for this issue https://github.com/librespot-org/librespot/issues/1532
Author
Owner

@kvndl commented on GitHub (Aug 12, 2025):

Same issue here on Fedora 41 - slightly different token logs since I've already tried re-authenticating

FWIW I've also been using the host workaround on this machine: 0.0.0.0 apresolve.spotify.com

2025-08-12T19:04:27.887682Z  INFO client_request{request=GetContext(Playlist(PlaylistId("422JoDLTfXt4rM1J23wuL2")))}: spotify_player::token: Getting a new authentication token...
2025-08-12T19:04:27.911930Z 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=29f6a5aa-c71a-4b51-9132-d056fb36cd96    
2025-08-12T19:04:27.911956Z ERROR client_request{request=GetContext(Playlist(PlaylistId("422JoDLTfXt4rM1J23wuL2")))}: 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=29f6a5aa-c71a-4b51-9132-d056fb36cd96", 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-12T19:04:27.911967Z ERROR client_request{request=GetContext(Playlist(PlaylistId("422JoDLTfXt4rM1J23wuL2")))}: spotify_player::client::handlers: Failed to handle client request: get access token: failed to get the authentication token stored inside the client.
2025-08-12T19:04:34.895855Z  INFO spotify_player::client::handlers: Current context ID (None) is different from the expected ID (Some(Playlist(PlaylistId("33WqmvymK2Z10HOpBZlFHd")))), update the context state
<!-- gh-comment-id:3180681316 --> @kvndl commented on GitHub (Aug 12, 2025): Same issue here on Fedora 41 - slightly different token logs since I've already tried re-authenticating FWIW I've also been using the host workaround on this machine: `0.0.0.0 apresolve.spotify.com` ``` 2025-08-12T19:04:27.887682Z INFO client_request{request=GetContext(Playlist(PlaylistId("422JoDLTfXt4rM1J23wuL2")))}: spotify_player::token: Getting a new authentication token... 2025-08-12T19:04:27.911930Z 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=29f6a5aa-c71a-4b51-9132-d056fb36cd96 2025-08-12T19:04:27.911956Z ERROR client_request{request=GetContext(Playlist(PlaylistId("422JoDLTfXt4rM1J23wuL2")))}: 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=29f6a5aa-c71a-4b51-9132-d056fb36cd96", 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-12T19:04:27.911967Z ERROR client_request{request=GetContext(Playlist(PlaylistId("422JoDLTfXt4rM1J23wuL2")))}: spotify_player::client::handlers: Failed to handle client request: get access token: failed to get the authentication token stored inside the client. 2025-08-12T19:04:34.895855Z INFO spotify_player::client::handlers: Current context ID (None) is different from the expected ID (Some(Playlist(PlaylistId("33WqmvymK2Z10HOpBZlFHd")))), update the context state ```
Author
Owner

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

Well I guess spotify devs really like to break things. Maybe it's a way to force people to use their proprietary app 🤷‍♂️

<!-- gh-comment-id:3180689570 --> @aome510 commented on GitHub (Aug 12, 2025): Well I guess spotify devs really like to break things. Maybe it's a way to force people to use their proprietary app 🤷‍♂️
Author
Owner

@makzef commented on GitHub (Aug 12, 2025):

Perhaps the devs are messing around with authorization again. I tried to log in to open.spotify.com, and instead of the usual login and password, there was a login and confirmation code sent to my email by default (but there was an option with password). I don't remember that was a thing before.

<!-- gh-comment-id:3180992087 --> @makzef commented on GitHub (Aug 12, 2025): Perhaps the devs are messing around with authorization again. I tried to log in to open.spotify.com, and instead of the usual login and password, there was a login and confirmation code sent to my email by default (but there was an option with password). I don't remember that was a thing before.
Author
Owner

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

I forked spotify_player and moved the token acquisition to login5 per (https://github.com/librespot-org/librespot/issues/1532) as well as integrated the audio fix workaround from https://github.com/aome510/spotify-player/issues/796#issuecomment-3162984574:

https://github.com/bbzylstra/spotify-player

The commands to patch are pretty much identical to @KUHLwasStolen https://github.com/aome510/spotify-player/issues/796#issuecomment-3162984574:

git clone https://github.com/bbzylstra/spotify-player.git
cd spotify-player
cargo install --path spotify_player/ --no-default-features --features [whatever features you need]

# features I used on arch
cargo install --path spotify_player/ --no-default-features --features pulseaudio-backend,pixelate,streaming,media-control
<!-- gh-comment-id:3181391316 --> @bbzylstra commented on GitHub (Aug 12, 2025): I forked spotify_player and moved the token acquisition to login5 per (https://github.com/librespot-org/librespot/issues/1532) as well as integrated the audio fix workaround from https://github.com/aome510/spotify-player/issues/796#issuecomment-3162984574: https://github.com/bbzylstra/spotify-player The commands to patch are pretty much identical to @KUHLwasStolen https://github.com/aome510/spotify-player/issues/796#issuecomment-3162984574: ``` git clone https://github.com/bbzylstra/spotify-player.git cd spotify-player cargo install --path spotify_player/ --no-default-features --features [whatever features you need] # features I used on arch cargo install --path spotify_player/ --no-default-features --features pulseaudio-backend,pixelate,streaming,media-control ```
Author
Owner

@ashes00 commented on GitHub (Aug 12, 2025):

Issue present on Ubuntu 24.04 Desktop as well.

<!-- gh-comment-id:3181393357 --> @ashes00 commented on GitHub (Aug 12, 2025): Issue present on Ubuntu 24.04 Desktop as well.
Author
Owner

@houdini-21 commented on GitHub (Aug 13, 2025):

I forked spotify_player and moved the token acquisition to login5 per (librespot-org/librespot#1532) as well as integrated the audio fix workaround from #796 (comment):

https://github.com/bbzylstra/spotify-player

The commands to patch are pretty much identical to @KUHLwasStolen #796 (comment):

git clone https://github.com/bbzylstra/spotify-player.git
cd spotify-player
cargo install --path spotify_player/ --no-default-features --features [whatever features you need]

# features I used on arch
cargo install --path spotify_player/ --no-default-features --features pulseaudio-backend,pixelate,streaming,media-control

This work for me!!! 🥇

<!-- gh-comment-id:3181793680 --> @houdini-21 commented on GitHub (Aug 13, 2025): > I forked spotify_player and moved the token acquisition to login5 per ([librespot-org/librespot#1532](https://github.com/librespot-org/librespot/issues/1532)) as well as integrated the audio fix workaround from [#796 (comment)](https://github.com/aome510/spotify-player/issues/796#issuecomment-3162984574): > > https://github.com/bbzylstra/spotify-player > > The commands to patch are pretty much identical to [@KUHLwasStolen](https://github.com/KUHLwasStolen) [#796 (comment)](https://github.com/aome510/spotify-player/issues/796#issuecomment-3162984574): > > ``` > git clone https://github.com/bbzylstra/spotify-player.git > cd spotify-player > cargo install --path spotify_player/ --no-default-features --features [whatever features you need] > > # features I used on arch > cargo install --path spotify_player/ --no-default-features --features pulseaudio-backend,pixelate,streaming,media-control > ``` This work for me!!! 🥇
Author
Owner

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

I forked spotify_player and moved the token acquisition to login5 per (librespot-org/librespot#1532) as well as integrated the audio fix workaround from #796 (comment):

https://github.com/bbzylstra/spotify-player

The commands to patch are pretty much identical to @KUHLwasStolen #796 (comment):

git clone https://github.com/bbzylstra/spotify-player.git
cd spotify-player
cargo install --path spotify_player/ --no-default-features --features [whatever features you need]

# features I used on arch
cargo install --path spotify_player/ --no-default-features --features pulseaudio-backend,pixelate,streaming,media-control

This worked for me, consider opening a PR?

<!-- gh-comment-id:3182112985 --> @Cxderzz commented on GitHub (Aug 13, 2025): > I forked spotify_player and moved the token acquisition to login5 per ([librespot-org/librespot#1532](https://github.com/librespot-org/librespot/issues/1532)) as well as integrated the audio fix workaround from [#796 (comment)](https://github.com/aome510/spotify-player/issues/796#issuecomment-3162984574): > > https://github.com/bbzylstra/spotify-player > > The commands to patch are pretty much identical to [@KUHLwasStolen](https://github.com/KUHLwasStolen) [#796 (comment)](https://github.com/aome510/spotify-player/issues/796#issuecomment-3162984574): > > ``` > git clone https://github.com/bbzylstra/spotify-player.git > cd spotify-player > cargo install --path spotify_player/ --no-default-features --features [whatever features you need] > > # features I used on arch > cargo install --path spotify_player/ --no-default-features --features pulseaudio-backend,pixelate,streaming,media-control > ``` This worked for me, consider opening a PR?
Author
Owner

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

Issue present on MacOS as well, https://github.com/bbzylstra/spotify-player fork didn't resolve it

<!-- gh-comment-id:3182285384 --> @tbiswas97 commented on GitHub (Aug 13, 2025): Issue present on MacOS as well, https://github.com/bbzylstra/spotify-player fork didn't resolve it
Author
Owner

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

This worked for me, consider opening a PR?

I think we should wait until librespot has an official release that either addresses this or deprecates the the current acquisition method.
Also, AFAIK, we cannot publish to crates.io or similar if there is a git-dependency in Cargo.toml

<!-- gh-comment-id:3182394891 --> @KUHLwasStolen commented on GitHub (Aug 13, 2025): > This worked for me, consider opening a PR? I think we should wait until `librespot` has an official release that either addresses this or deprecates the the current acquisition method. Also, AFAIK, we cannot publish to crates.io or similar if there is a git-dependency in `Cargo.toml`
Author
Owner

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

This worked for me, consider opening a PR?

I think we should wait until librespot has an official release that either addresses this or deprecates the the current acquisition method. Also, AFAIK, we cannot publish to crates.io or similar if there is a git-dependency in Cargo.toml

Makes sense, thank you

<!-- gh-comment-id:3182944691 --> @Cxderzz commented on GitHub (Aug 13, 2025): > > This worked for me, consider opening a PR? > > I think we should wait until `librespot` has an official release that either addresses this or deprecates the the current acquisition method. Also, AFAIK, we cannot publish to crates.io or similar if there is a git-dependency in `Cargo.toml` Makes sense, thank you
Author
Owner

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

i thought it was just me suffering, glad to know that's not the case and pissed that it's an issue at all. i'd download my songs but that's ~1.5k songs and idk if i have the space

<!-- gh-comment-id:3183108820 --> @tungstengmd commented on GitHub (Aug 13, 2025): i thought it was just me suffering, glad to know that's not the case and pissed that it's an issue at all. i'd download my songs but that's ~1.5k songs and idk if i have the space
Author
Owner

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

I forked spotify_player and moved the token acquisition to login5 per (librespot-org/librespot#1532) as well as integrated the audio fix workaround from #796 (comment):

https://github.com/bbzylstra/spotify-player

The commands to patch are pretty much identical to @KUHLwasStolen #796 (comment):

git clone https://github.com/bbzylstra/spotify-player.git
cd spotify-player
cargo install --path spotify_player/ --no-default-features --features [whatever features you need]

# features I used on arch
cargo install --path spotify_player/ --no-default-features --features pulseaudio-backend,pixelate,streaming,media-control

This fix is working for me on arch, thanks!

<!-- gh-comment-id:3186389998 --> @Fireye04 commented on GitHub (Aug 14, 2025): > I forked spotify_player and moved the token acquisition to login5 per ([librespot-org/librespot#1532](https://github.com/librespot-org/librespot/issues/1532)) as well as integrated the audio fix workaround from [#796 (comment)](https://github.com/aome510/spotify-player/issues/796#issuecomment-3162984574): > > https://github.com/bbzylstra/spotify-player > > The commands to patch are pretty much identical to [@KUHLwasStolen](https://github.com/KUHLwasStolen) [#796 (comment)](https://github.com/aome510/spotify-player/issues/796#issuecomment-3162984574): > > ``` > git clone https://github.com/bbzylstra/spotify-player.git > cd spotify-player > cargo install --path spotify_player/ --no-default-features --features [whatever features you need] > > # features I used on arch > cargo install --path spotify_player/ --no-default-features --features pulseaudio-backend,pixelate,streaming,media-control > ``` This fix is working for me on arch, thanks!
Author
Owner

@n-connect commented on GitHub (Aug 14, 2025):

I forked spotify_player and moved the token acquisition to login5 per (librespot-org/librespot#1532) as well as integrated the audio fix workaround from #796 (comment):

https://github.com/bbzylstra/spotify-player

The commands to patch are pretty much identical to @KUHLwasStolen #796 (comment):

git clone https://github.com/bbzylstra/spotify-player.git
cd spotify-player
cargo install --path spotify_player/ --no-default-features --features [whatever features you need]

# features I used on arch
cargo install --path spotify_player/ --no-default-features --features pulseaudio-backend,pixelate,streaming,media-control

Thx, with slight changes it worked for me. The key one was changing from pulseaudio to rodio-backend. Others are nice to have

cargo install --path spotify_player/ --no-default-features --features rodio-backend,image,streaming,media-control,notify

<!-- gh-comment-id:3187754920 --> @n-connect commented on GitHub (Aug 14, 2025): > I forked spotify_player and moved the token acquisition to login5 per ([librespot-org/librespot#1532](https://github.com/librespot-org/librespot/issues/1532)) as well as integrated the audio fix workaround from [#796 (comment)](https://github.com/aome510/spotify-player/issues/796#issuecomment-3162984574): > > https://github.com/bbzylstra/spotify-player > > The commands to patch are pretty much identical to [@KUHLwasStolen](https://github.com/KUHLwasStolen) [#796 (comment)](https://github.com/aome510/spotify-player/issues/796#issuecomment-3162984574): > > ``` > git clone https://github.com/bbzylstra/spotify-player.git > cd spotify-player > cargo install --path spotify_player/ --no-default-features --features [whatever features you need] > > # features I used on arch > cargo install --path spotify_player/ --no-default-features --features pulseaudio-backend,pixelate,streaming,media-control > ``` Thx, with slight changes it worked for me. The key one was changing from pulseaudio to rodio-backend. Others are nice to have `cargo install --path spotify_player/ --no-default-features --features rodio-backend,image,streaming,media-control,notify`
Author
Owner

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

I forked spotify_player and moved the token acquisition to login5 per (librespot-org/librespot#1532) as well as integrated the audio fix workaround from #796 (comment):

https://github.com/bbzylstra/spotify-player

The commands to patch are pretty much identical to @KUHLwasStolen #796 (comment):

git clone https://github.com/bbzylstra/spotify-player.git
cd spotify-player
cargo install --path spotify_player/ --no-default-features --features [whatever features you need]

# features I used on arch
cargo install --path spotify_player/ --no-default-features --features pulseaudio-backend,pixelate,streaming,media-control

Thanks
Works for me on Ubuntu 24.04.3 LTS x86_64!
Please open a PR with this changes

<!-- gh-comment-id:3188043009 --> @Douglas019BR commented on GitHub (Aug 14, 2025): > I forked spotify_player and moved the token acquisition to login5 per ([librespot-org/librespot#1532](https://github.com/librespot-org/librespot/issues/1532)) as well as integrated the audio fix workaround from [#796 (comment)](https://github.com/aome510/spotify-player/issues/796#issuecomment-3162984574): > > https://github.com/bbzylstra/spotify-player > > The commands to patch are pretty much identical to [@KUHLwasStolen](https://github.com/KUHLwasStolen) [#796 (comment)](https://github.com/aome510/spotify-player/issues/796#issuecomment-3162984574): > > ``` > git clone https://github.com/bbzylstra/spotify-player.git > cd spotify-player > cargo install --path spotify_player/ --no-default-features --features [whatever features you need] > > # features I used on arch > cargo install --path spotify_player/ --no-default-features --features pulseaudio-backend,pixelate,streaming,media-control > ``` Thanks Works for me on Ubuntu 24.04.3 LTS x86_64! Please open a PR with this changes
Author
Owner

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

he cant rust cargo does not allow depending on git we need to wait for librespot to update or publish our own librespot fork

<!-- gh-comment-id:3189467919 --> @Alexander3a commented on GitHub (Aug 14, 2025): he cant rust cargo does not allow depending on git we need to wait for librespot to update or publish our own librespot fork
Author
Owner

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

oh my god that fork worked for me on arch. what a relief

<!-- gh-comment-id:3189850719 --> @emilystgeist commented on GitHub (Aug 14, 2025): oh my god that fork worked for me on arch. what a relief
Author
Owner

@szaffarano commented on GitHub (Aug 15, 2025):

Nix overlay, applies @bbzylstra patch using the librespot dev branch

<!-- gh-comment-id:3191659178 --> @szaffarano commented on GitHub (Aug 15, 2025): [Nix overlay](https://gist.github.com/szaffarano/18c148eaa1495dfc010f89344fdf2857), applies @bbzylstra patch using the librespot `dev` branch
Author
Owner

@adamzwakk commented on GitHub (Aug 15, 2025):

Nix overlay, applies @bbzylstra patch using the librespot dev branch

Thanks for this! Works perfect for my nix setup

<!-- gh-comment-id:3192777042 --> @adamzwakk commented on GitHub (Aug 15, 2025): > [Nix overlay](https://gist.github.com/szaffarano/18c148eaa1495dfc010f89344fdf2857), applies [@bbzylstra](https://github.com/bbzylstra) patch using the librespot `dev` branch Thanks for this! Works perfect for my nix setup
Author
Owner

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

I thought I'd fixed the issue until I saw this today -
`Error: initialize new Spotify session

Caused by:
0: new streaming connection
1: initialize spirc
2: Requested entity was not found { no native root CA certificates found (errors: []) }`

Here are the logs
2025-08-17T14:00:37.823117Z INFO spotify_player: Configurations: Configs { app_config: AppConfig { theme: "dracula", client_id: "e1ec19db5c9447ff91147655eb6b3600", client_id_command: None, client_port: 8080, login_redirect_uri: "http://127.0.0.1:8989/login", player_event_hook_command: None, playback_format: "{status} {track} • {artists} {liked}\n{album}\n{metadata}", playback_metadata_fields: ["repeat", "shuffle", "volume", "device"], notify_format: NotifyFormat { summary: "{track} • {artists}", body: "{album}" }, notify_timeout_in_secs: 0, tracks_playback_limit: 50, proxy: None, ap_port: None, app_refresh_duration_in_ms: 32, playback_refresh_duration_in_ms: 0, page_size_in_rows: 20, play_icon: "\u{f04c}", pause_icon: "\u{f04b}", liked_icon: "\u{f004}", border_type: Plain, progress_bar_type: Rectangle, layout: LayoutConfig { library: LibraryLayoutConfig { playlist_percent: 40, album_percent: 40 }, playback_window_position: Bottom, playback_window_height: 6 }, cover_img_length: 9, cover_img_width: 5, cover_img_scale: 1.0, enable_media_control: true, enable_streaming: Always, enable_notify: true, enable_cover_image_cache: true, default_device: "akira", device: DeviceConfig { name: "void", device_type: "computer", volume: 100, bitrate: 320, audio_cache: true, normalization: false, autoplay: true }, notify_streaming_only: false, seek_duration_secs: 5, sort_artist_albums_by_type: false }, keymap_config: KeymapConfig { keymaps: [Keymap { key_sequence: KeySequence { keys: [None(Char('n'))] }, command: NextTrack }, Keymap { key_sequence: KeySequence { keys: [None(Char('p'))] }, command: PreviousTrack }, Keymap { key_sequence: KeySequence { keys: [None(Char('.'))] }, command: PlayRandom }, Keymap { key_sequence: KeySequence { keys: [None(Char(' '))] }, command: ResumePause }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('r'))] }, command: Repeat }, Keymap { key_sequence: KeySequence { keys: [Alt(Char('r'))] }, command: ToggleFakeTrackRepeatMode }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('s'))] }, command: Shuffle }, Keymap { key_sequence: KeySequence { keys: [None(Char('+'))] }, command: VolumeChange { offset: 5 } }, Keymap { key_sequence: KeySequence { keys: [None(Char('-'))] }, command: VolumeChange { offset: -5 } }, Keymap { key_sequence: KeySequence { keys: [None(Char('_'))] }, command: Mute }, Keymap { key_sequence: KeySequence { keys: [None(Char('>'))] }, command: SeekForward }, Keymap { key_sequence: KeySequence { keys: [None(Char('<'))] }, command: SeekBackward }, Keymap { key_sequence: KeySequence { keys: [None(Enter)] }, command: ChooseSelected }, Keymap { key_sequence: KeySequence { keys: [None(Char('r'))] }, command: RefreshPlayback }, Keymap { key_sequence: KeySequence { keys: [None(Char('/'))] }, command: Search }, Keymap { key_sequence: KeySequence { keys: [None(Char('z'))] }, command: Queue }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('z'))] }, command: AddSelectedItemToQueue }, Keymap { key_sequence: KeySequence { keys: [None(Char('Z'))] }, command: AddSelectedItemToQueue }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('g'))] }, command: JumpToHighlightTrackInContext }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char(' '))] }, command: ShowActionsOnSelectedItem }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('a'))] }, command: ShowActionsOnSelectedItem }, Keymap { key_sequence: KeySequence { keys: [None(Char('a'))] }, command: ShowActionsOnCurrentTrack }, Keymap { key_sequence: KeySequence { keys: [None(Char('R'))] }, command: RestartIntegratedClient }, Keymap { key_sequence: KeySequence { keys: [None(Tab)] }, command: FocusNextWindow }, Keymap { key_sequence: KeySequence { keys: [None(BackTab)] }, command: FocusPreviousWindow }, Keymap { key_sequence: KeySequence { keys: [None(Char('T'))] }, command: SwitchTheme }, Keymap { key_sequence: KeySequence { keys: [None(Char('D'))] }, command: SwitchDevice }, Keymap { key_sequence: KeySequence { keys: [None(Char('u')), None(Char('p'))] }, command: BrowseUserPlaylists }, Keymap { key_sequence: KeySequence { keys: [None(Char('u')), None(Char('a'))] }, command: BrowseUserFollowedArtists }, Keymap { key_sequence: KeySequence { keys: [None(Char('u')), None(Char('A'))] }, command: BrowseUserSavedAlbums }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char(' '))] }, command: CurrentlyPlayingContextPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('t'))] }, command: TopTrackPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('r'))] }, command: RecentlyPlayedTrackPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('y'))] }, command: LikedTrackPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('L'))] }, command: LyricsPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('l'))] }, command: LyricsPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('l'))] }, command: LibraryPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('s'))] }, command: SearchPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('b'))] }, command: BrowsePage }, Keymap { key_sequence: KeySequence { keys: [None(Backspace)] }, command: PreviousPage }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('q'))] }, command: PreviousPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('O'))] }, command: OpenSpotifyLinkFromClipboard }, Keymap { key_sequence: KeySequence { keys: [None(Char('?'))] }, command: OpenCommandHelp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('h'))] }, command: OpenCommandHelp }, Keymap { key_sequence: KeySequence { keys: [None(Char('q'))] }, command: Quit }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('c'))] }, command: Quit }, Keymap { key_sequence: KeySequence { keys: [None(Esc)] }, command: ClosePopup }, Keymap { key_sequence: KeySequence { keys: [None(Char('j'))] }, command: SelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('n'))] }, command: SelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [None(Down)] }, command: SelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [None(Char('k'))] }, command: SelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('p'))] }, command: SelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [None(Up)] }, command: SelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [None(PageUp)] }, command: PageSelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('b'))] }, command: PageSelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [None(PageDown)] }, command: PageSelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('f'))] }, command: PageSelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('g'))] }, command: SelectFirstOrScrollToTop }, Keymap { key_sequence: KeySequence { keys: [None(Home)] }, command: SelectFirstOrScrollToTop }, Keymap { key_sequence: KeySequence { keys: [None(Char('G'))] }, command: SelectLastOrScrollToBottom }, Keymap { key_sequence: KeySequence { keys: [None(End)] }, command: SelectLastOrScrollToBottom }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('t'))] }, command: SortTrackByTitle }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('a'))] }, command: SortTrackByArtists }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('A'))] }, command: SortTrackByAlbum }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('d'))] }, command: SortTrackByDuration }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('D'))] }, command: SortTrackByAddedDate }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('r'))] }, command: ReverseTrackOrder }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('l')), None(Char('a'))] }, command: SortLibraryAlphabetically }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('l')), None(Char('r'))] }, command: SortLibraryByRecent }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('k'))] }, command: MovePlaylistItemUp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('j'))] }, command: MovePlaylistItemDown }, Keymap { key_sequence: KeySequence { keys: [None(Char('N'))] }, command: CreatePlaylist }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('c'))] }, command: JumpToCurrentTrackInContext }], actions: [] }, theme_config: ThemeConfig { themes: [Theme { name: "default", palette: Palette { background: None, foreground: None, black: Color { color: Black }, blue: Color { color: Blue }, cyan: Color { color: Cyan }, green: Color { color: Green }, magenta: Color { color: Magenta }, red: Color { color: Red }, white: Color { color: Gray }, yellow: Color { color: Yellow }, bright_black: Color { color: DarkGray }, bright_white: Color { color: White }, bright_red: Color { color: LightRed }, bright_magenta: Color { color: LightMagenta }, bright_green: Color { color: LightGreen }, bright_cyan: Color { color: LightCyan }, bright_blue: Color { color: LightBlue }, bright_yellow: Color { color: LightYellow } }, component_style: ComponentStyle { block_title: None, border: None, playback_status: None, playback_track: None, playback_artists: None, playback_album: None, playback_metadata: None, playback_progress_bar: None, playback_progress_bar_unfilled: None, current_playing: None, page_desc: None, playlist_desc: None, table_header: None, selection: None, secondary_row: None, like: None, lyrics_played: None, lyrics_playing: None } }] }, cache_folder: "/home/vye/.cache/spotify-player" } 2025-08-17T14:00:37.846382Z INFO librespot_oauth: OAuth server listening on 127.0.0.1:8989 2025-08-17T14:00:44.815843Z INFO spotify_player::streaming: Application's connect configurations: ConnectConfig { name: "void", device_type: Computer, is_group: false, initial_volume: 65535, disable_volume: false, volume_steps: 64 } 2025-08-17T14:00:44.815900Z INFO librespot_playback::mixer::softmixer: Mixing with softvol and volume control: Log(60.0) 2025-08-17T14:00:44.815943Z INFO spotify_player::streaming: Initializing a new integrated player with device_id=abcbd3bc-eb88-47d9-93a1-940aac37a3e8 2025-08-17T14:00:44.816018Z INFO spotify_player::streaming: Starting an integrated Spotify player using librespot's spirc protocol 2025-08-17T14:00:44.816044Z INFO librespot_playback::convert: Converting with ditherer: tpdf 2025-08-17T14:00:44.816083Z INFO librespot_playback::audio_backend::rodio: Using Rodio sink with format S16 and cpal host: ALSA 2025-08-17T14:00:44.816091Z INFO librespot_playback::audio_backend::rodio: Using audio device: default

Built with the following features -
--no-default-features --features rodio-backend,streaming,media-control,daemon,notify,sixel,fzf

I already tried fixing this by removing the cached credentials as mentioned in this issue - https://github.com/aome510/spotify-player/issues/688, but it didn't work

(I didn't know if this was relevant to this issue or is new, also this is my first time raising an issue so forgive me for any mistakes on my part)

<!-- gh-comment-id:3194408600 --> @aniruddhgutta commented on GitHub (Aug 17, 2025): I thought I'd fixed the issue until I saw this today - `Error: initialize new Spotify session Caused by: 0: new streaming connection 1: initialize spirc 2: Requested entity was not found { no native root CA certificates found (errors: []) }` Here are the logs `2025-08-17T14:00:37.823117Z INFO spotify_player: Configurations: Configs { app_config: AppConfig { theme: "dracula", client_id: "e1ec19db5c9447ff91147655eb6b3600", client_id_command: None, client_port: 8080, login_redirect_uri: "http://127.0.0.1:8989/login", player_event_hook_command: None, playback_format: "{status} {track} • {artists} {liked}\n{album}\n{metadata}", playback_metadata_fields: ["repeat", "shuffle", "volume", "device"], notify_format: NotifyFormat { summary: "{track} • {artists}", body: "{album}" }, notify_timeout_in_secs: 0, tracks_playback_limit: 50, proxy: None, ap_port: None, app_refresh_duration_in_ms: 32, playback_refresh_duration_in_ms: 0, page_size_in_rows: 20, play_icon: "\u{f04c}", pause_icon: "\u{f04b}", liked_icon: "\u{f004}", border_type: Plain, progress_bar_type: Rectangle, layout: LayoutConfig { library: LibraryLayoutConfig { playlist_percent: 40, album_percent: 40 }, playback_window_position: Bottom, playback_window_height: 6 }, cover_img_length: 9, cover_img_width: 5, cover_img_scale: 1.0, enable_media_control: true, enable_streaming: Always, enable_notify: true, enable_cover_image_cache: true, default_device: "akira", device: DeviceConfig { name: "void", device_type: "computer", volume: 100, bitrate: 320, audio_cache: true, normalization: false, autoplay: true }, notify_streaming_only: false, seek_duration_secs: 5, sort_artist_albums_by_type: false }, keymap_config: KeymapConfig { keymaps: [Keymap { key_sequence: KeySequence { keys: [None(Char('n'))] }, command: NextTrack }, Keymap { key_sequence: KeySequence { keys: [None(Char('p'))] }, command: PreviousTrack }, Keymap { key_sequence: KeySequence { keys: [None(Char('.'))] }, command: PlayRandom }, Keymap { key_sequence: KeySequence { keys: [None(Char(' '))] }, command: ResumePause }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('r'))] }, command: Repeat }, Keymap { key_sequence: KeySequence { keys: [Alt(Char('r'))] }, command: ToggleFakeTrackRepeatMode }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('s'))] }, command: Shuffle }, Keymap { key_sequence: KeySequence { keys: [None(Char('+'))] }, command: VolumeChange { offset: 5 } }, Keymap { key_sequence: KeySequence { keys: [None(Char('-'))] }, command: VolumeChange { offset: -5 } }, Keymap { key_sequence: KeySequence { keys: [None(Char('_'))] }, command: Mute }, Keymap { key_sequence: KeySequence { keys: [None(Char('>'))] }, command: SeekForward }, Keymap { key_sequence: KeySequence { keys: [None(Char('<'))] }, command: SeekBackward }, Keymap { key_sequence: KeySequence { keys: [None(Enter)] }, command: ChooseSelected }, Keymap { key_sequence: KeySequence { keys: [None(Char('r'))] }, command: RefreshPlayback }, Keymap { key_sequence: KeySequence { keys: [None(Char('/'))] }, command: Search }, Keymap { key_sequence: KeySequence { keys: [None(Char('z'))] }, command: Queue }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('z'))] }, command: AddSelectedItemToQueue }, Keymap { key_sequence: KeySequence { keys: [None(Char('Z'))] }, command: AddSelectedItemToQueue }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('g'))] }, command: JumpToHighlightTrackInContext }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char(' '))] }, command: ShowActionsOnSelectedItem }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('a'))] }, command: ShowActionsOnSelectedItem }, Keymap { key_sequence: KeySequence { keys: [None(Char('a'))] }, command: ShowActionsOnCurrentTrack }, Keymap { key_sequence: KeySequence { keys: [None(Char('R'))] }, command: RestartIntegratedClient }, Keymap { key_sequence: KeySequence { keys: [None(Tab)] }, command: FocusNextWindow }, Keymap { key_sequence: KeySequence { keys: [None(BackTab)] }, command: FocusPreviousWindow }, Keymap { key_sequence: KeySequence { keys: [None(Char('T'))] }, command: SwitchTheme }, Keymap { key_sequence: KeySequence { keys: [None(Char('D'))] }, command: SwitchDevice }, Keymap { key_sequence: KeySequence { keys: [None(Char('u')), None(Char('p'))] }, command: BrowseUserPlaylists }, Keymap { key_sequence: KeySequence { keys: [None(Char('u')), None(Char('a'))] }, command: BrowseUserFollowedArtists }, Keymap { key_sequence: KeySequence { keys: [None(Char('u')), None(Char('A'))] }, command: BrowseUserSavedAlbums }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char(' '))] }, command: CurrentlyPlayingContextPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('t'))] }, command: TopTrackPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('r'))] }, command: RecentlyPlayedTrackPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('y'))] }, command: LikedTrackPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('L'))] }, command: LyricsPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('l'))] }, command: LyricsPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('l'))] }, command: LibraryPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('s'))] }, command: SearchPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('b'))] }, command: BrowsePage }, Keymap { key_sequence: KeySequence { keys: [None(Backspace)] }, command: PreviousPage }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('q'))] }, command: PreviousPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('O'))] }, command: OpenSpotifyLinkFromClipboard }, Keymap { key_sequence: KeySequence { keys: [None(Char('?'))] }, command: OpenCommandHelp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('h'))] }, command: OpenCommandHelp }, Keymap { key_sequence: KeySequence { keys: [None(Char('q'))] }, command: Quit }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('c'))] }, command: Quit }, Keymap { key_sequence: KeySequence { keys: [None(Esc)] }, command: ClosePopup }, Keymap { key_sequence: KeySequence { keys: [None(Char('j'))] }, command: SelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('n'))] }, command: SelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [None(Down)] }, command: SelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [None(Char('k'))] }, command: SelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('p'))] }, command: SelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [None(Up)] }, command: SelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [None(PageUp)] }, command: PageSelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('b'))] }, command: PageSelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [None(PageDown)] }, command: PageSelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('f'))] }, command: PageSelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('g'))] }, command: SelectFirstOrScrollToTop }, Keymap { key_sequence: KeySequence { keys: [None(Home)] }, command: SelectFirstOrScrollToTop }, Keymap { key_sequence: KeySequence { keys: [None(Char('G'))] }, command: SelectLastOrScrollToBottom }, Keymap { key_sequence: KeySequence { keys: [None(End)] }, command: SelectLastOrScrollToBottom }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('t'))] }, command: SortTrackByTitle }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('a'))] }, command: SortTrackByArtists }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('A'))] }, command: SortTrackByAlbum }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('d'))] }, command: SortTrackByDuration }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('D'))] }, command: SortTrackByAddedDate }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('r'))] }, command: ReverseTrackOrder }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('l')), None(Char('a'))] }, command: SortLibraryAlphabetically }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('l')), None(Char('r'))] }, command: SortLibraryByRecent }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('k'))] }, command: MovePlaylistItemUp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('j'))] }, command: MovePlaylistItemDown }, Keymap { key_sequence: KeySequence { keys: [None(Char('N'))] }, command: CreatePlaylist }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('c'))] }, command: JumpToCurrentTrackInContext }], actions: [] }, theme_config: ThemeConfig { themes: [Theme { name: "default", palette: Palette { background: None, foreground: None, black: Color { color: Black }, blue: Color { color: Blue }, cyan: Color { color: Cyan }, green: Color { color: Green }, magenta: Color { color: Magenta }, red: Color { color: Red }, white: Color { color: Gray }, yellow: Color { color: Yellow }, bright_black: Color { color: DarkGray }, bright_white: Color { color: White }, bright_red: Color { color: LightRed }, bright_magenta: Color { color: LightMagenta }, bright_green: Color { color: LightGreen }, bright_cyan: Color { color: LightCyan }, bright_blue: Color { color: LightBlue }, bright_yellow: Color { color: LightYellow } }, component_style: ComponentStyle { block_title: None, border: None, playback_status: None, playback_track: None, playback_artists: None, playback_album: None, playback_metadata: None, playback_progress_bar: None, playback_progress_bar_unfilled: None, current_playing: None, page_desc: None, playlist_desc: None, table_header: None, selection: None, secondary_row: None, like: None, lyrics_played: None, lyrics_playing: None } }] }, cache_folder: "/home/vye/.cache/spotify-player" } 2025-08-17T14:00:37.846382Z INFO librespot_oauth: OAuth server listening on 127.0.0.1:8989 2025-08-17T14:00:44.815843Z INFO spotify_player::streaming: Application's connect configurations: ConnectConfig { name: "void", device_type: Computer, is_group: false, initial_volume: 65535, disable_volume: false, volume_steps: 64 } 2025-08-17T14:00:44.815900Z INFO librespot_playback::mixer::softmixer: Mixing with softvol and volume control: Log(60.0) 2025-08-17T14:00:44.815943Z INFO spotify_player::streaming: Initializing a new integrated player with device_id=abcbd3bc-eb88-47d9-93a1-940aac37a3e8 2025-08-17T14:00:44.816018Z INFO spotify_player::streaming: Starting an integrated Spotify player using librespot's spirc protocol 2025-08-17T14:00:44.816044Z INFO librespot_playback::convert: Converting with ditherer: tpdf 2025-08-17T14:00:44.816083Z INFO librespot_playback::audio_backend::rodio: Using Rodio sink with format S16 and cpal host: ALSA 2025-08-17T14:00:44.816091Z INFO librespot_playback::audio_backend::rodio: Using audio device: default` Built with the following features - `--no-default-features --features rodio-backend,streaming,media-control,daemon,notify,sixel,fzf` I already tried fixing this by removing the cached credentials as mentioned in this issue - https://github.com/aome510/spotify-player/issues/688, but it didn't work (I didn't know if this was relevant to this issue or is new, also this is my first time raising an issue so forgive me for any mistakes on my part)
Author
Owner

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

@bbzylstra Thanks for that!!! Issue on Xubuntu 24.04.
@n-connect Used your feature options. Really do like these features!!

<!-- gh-comment-id:3194540898 --> @gand0rf commented on GitHub (Aug 17, 2025): @bbzylstra Thanks for that!!! Issue on Xubuntu 24.04. @n-connect Used your feature options. Really do like these features!!
Author
Owner

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

@bbzylstra thanks for the patch. Works on Mac OS for me.

<!-- gh-comment-id:3205068159 --> @hosackm commented on GitHub (Aug 20, 2025): @bbzylstra thanks for the patch. Works on Mac OS for me.
Author
Owner

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

@aniruddhgutta I also saw a similar error, even after succesful auth:

Error: initialize new Spotify session

Caused by:
    0: new streaming connection
    1: initialize spirc
    2: Permission denied { Login failed with reason: Bad credentials }

I built spotify-player per https://github.com/aome510/spotify-player/issues/802#issuecomment-3181391316 (@bbzylstra), cleared my .cache and .config. Clearing (something in) the cache dir was necessary. After that, it worked.

<!-- gh-comment-id:3205550159 --> @wdoekes commented on GitHub (Aug 20, 2025): @aniruddhgutta I also saw a similar error, even after succesful auth: ``` Error: initialize new Spotify session Caused by: 0: new streaming connection 1: initialize spirc 2: Permission denied { Login failed with reason: Bad credentials } ``` I built spotify-player per https://github.com/aome510/spotify-player/issues/802#issuecomment-3181391316 (@bbzylstra), cleared my `.cache` and `.config`. Clearing (something in) the cache dir was necessary. *After that, it worked.*
Author
Owner

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

@wdoekes hmm weird, I already cleared my .cache and .config prior to rebuilding spotify-player and cleared it after building it too, still doesn't fix the issue though

<!-- gh-comment-id:3206413954 --> @aniruddhgutta commented on GitHub (Aug 20, 2025): @wdoekes hmm weird, I already cleared my `.cache` and `.config` prior to rebuilding spotify-player and cleared it after building it too, still doesn't fix the issue though
Author
Owner

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

I forked spotify_player and moved the token acquisition to login5 per (librespot-org/librespot#1532) as well as integrated the audio fix workaround from #796 (comment):

https://github.com/bbzylstra/spotify-player

The commands to patch are pretty much identical to @KUHLwasStolen #796 (comment):

git clone https://github.com/bbzylstra/spotify-player.git
cd spotify-player
cargo install --path spotify_player/ --no-default-features --features [whatever features you need]

# features I used on arch
cargo install --path spotify_player/ --no-default-features --features pulseaudio-backend,pixelate,streaming,media-control

thanks for this man. consider opening pr with this please!

<!-- gh-comment-id:3209838158 --> @Jafeth12 commented on GitHub (Aug 21, 2025): > I forked spotify_player and moved the token acquisition to login5 per ([librespot-org/librespot#1532](https://github.com/librespot-org/librespot/issues/1532)) as well as integrated the audio fix workaround from [#796 (comment)](https://github.com/aome510/spotify-player/issues/796#issuecomment-3162984574): > > https://github.com/bbzylstra/spotify-player > > The commands to patch are pretty much identical to [@KUHLwasStolen](https://github.com/KUHLwasStolen) [#796 (comment)](https://github.com/aome510/spotify-player/issues/796#issuecomment-3162984574): > > ``` > git clone https://github.com/bbzylstra/spotify-player.git > cd spotify-player > cargo install --path spotify_player/ --no-default-features --features [whatever features you need] > > # features I used on arch > cargo install --path spotify_player/ --no-default-features --features pulseaudio-backend,pixelate,streaming,media-control > ``` thanks for this man. consider opening pr with this please!
Author
Owner

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

@aniruddhgutta I think you must have some .config files somewhere. Your logs show that the client_id is different than what it should be. You have e1ec19db5c9447ff91147655eb6b3600 when it should be 65b708073fc0480ea92a077233ca87bd.

<!-- gh-comment-id:3211322054 --> @bbzylstra commented on GitHub (Aug 21, 2025): @aniruddhgutta I think you must have some .config files somewhere. Your logs show that the client_id is different than what it should be. You have e1ec19db5c9447ff91147655eb6b3600 when it should be 65b708073fc0480ea92a077233ca87bd.
Author
Owner

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

@aniruddhgutta I think you must have some .config files somewhere. Your logs show that the client_id is different than what it should be. You have e1ec19db5c9447ff91147655eb6b3600 when it should be 65b708073fc0480ea92a077233ca87bd.

Yes I was using my own client id but I also tried it without any config too and it still throws the same error, I would send the logs but I'm not on my pc rn

<!-- gh-comment-id:3211330339 --> @aniruddhgutta commented on GitHub (Aug 21, 2025): > @aniruddhgutta I think you must have some .config files somewhere. Your logs show that the client_id is different than what it should be. You have e1ec19db5c9447ff91147655eb6b3600 when it should be 65b708073fc0480ea92a077233ca87bd. Yes I was using my own client id but I also tried it without any config too and it still throws the same error, I would send the logs but I'm not on my pc rn
Author
Owner

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

@aniruddhgutta I'd check that you have ca-certificates installed via your package manager, or if you already have this package you can try running update-ca-certificates instead. I tried to replicate your error on my system without these packages but I couldn't. It seems to be an issue with tokio-tungstenite not being able to find your root CA certificates. I created a branch in my repo called ca-fix that uses the rustls-tls-webpki-roots instead of your native ones to hopefully fix the issue. You can get the code via:

git pull
git checkout ca-fix
cargo install --path spotify_player/ --no-default-features --features pulseaudio-backend,pixelate,streaming,media-control

No idea if this will fix your issue since I can't replicate it, but I think the error points to something going on with your system configuration.

<!-- gh-comment-id:3211535295 --> @bbzylstra commented on GitHub (Aug 21, 2025): @aniruddhgutta I'd check that you have `ca-certificates` installed via your package manager, or if you already have this package you can try running `update-ca-certificates` instead. I tried to replicate your error on my system without these packages but I couldn't. It seems to be an issue with [tokio-tungstenite](https://github.com/snapview/tokio-tungstenite/tree/master) not being able to find your root CA certificates. I created a branch in my repo called `ca-fix` that uses the `rustls-tls-webpki-roots` instead of your native ones to hopefully fix the issue. You can get the code via: ``` git pull git checkout ca-fix cargo install --path spotify_player/ --no-default-features --features pulseaudio-backend,pixelate,streaming,media-control ``` No idea if this will fix your issue since I can't replicate it, but I think the error points to something going on with your system configuration.
Author
Owner

@ghost commented on GitHub (Aug 22, 2025):

same issue on nixOS...

<!-- gh-comment-id:3212947187 --> @ghost commented on GitHub (Aug 22, 2025): same issue on nixOS...
Author
Owner

@Fireye04 commented on GitHub (Aug 22, 2025):

szaffarano's nix overlay (https://github.com/aome510/spotify-player/issues/802#issuecomment-3191659178) worked great for me on nixos (though devices still aren't shown).

<!-- gh-comment-id:3213057076 --> @Fireye04 commented on GitHub (Aug 22, 2025): szaffarano's nix overlay (https://github.com/aome510/spotify-player/issues/802#issuecomment-3191659178) worked great for me on nixos (though devices still aren't shown).
Author
Owner

@aniruddhgutta commented on GitHub (Aug 22, 2025):

@bbzylstra Wow thanks for the fix!! It finally works though I had to change librespot's version in Cargo.lock

-source = "git+https://github.com/librespot-org/librespot.git?branch=dev#ba3d501b08345aadf207d09b3a0713853228ba64"
+source = "git+https://github.com/librespot-org/librespot.git?branch=dev#78ce118d32912adfb2705481f69c83df6a88211f"

but yes now it finally works, tysm!!

<!-- gh-comment-id:3213074120 --> @aniruddhgutta commented on GitHub (Aug 22, 2025): @bbzylstra Wow thanks for the fix!! It finally works though I had to change librespot's version in Cargo.lock ``` -source = "git+https://github.com/librespot-org/librespot.git?branch=dev#ba3d501b08345aadf207d09b3a0713853228ba64" +source = "git+https://github.com/librespot-org/librespot.git?branch=dev#78ce118d32912adfb2705481f69c83df6a88211f" ``` but yes now it finally works, tysm!!
Author
Owner

@ecabigting commented on GitHub (Aug 22, 2025):

@aome510 will we get a new version as well when librespot release its fixes and new versions base from this thread #1544

<!-- gh-comment-id:3213459165 --> @ecabigting commented on GitHub (Aug 22, 2025): @aome510 will we get a new version as well when librespot release its fixes and new versions base from this thread [#1544](https://github.com/librespot-org/librespot/issues/1544#issuecomment-3211522500)
Author
Owner

@saforem2 commented on GitHub (Aug 22, 2025):

I forked spotify_player and moved the token acquisition to login5 per (librespot-org/librespot#1532) as well as integrated the audio fix workaround from #796 (comment):

bbzylstra/spotify-player

The commands to patch are pretty much identical to @KUHLwasStolen #796 (comment):

git clone https://github.com/bbzylstra/spotify-player.git
cd spotify-player
cargo install --path spotify_player/ --no-default-features --features [whatever features you need]

# features I used on arch
cargo install --path spotify_player/ --no-default-features --features pulseaudio-backend,pixelate,streaming,media-control

This worked for me as well on MacOS

🙌 thank you @bbzylstra

<!-- gh-comment-id:3214038007 --> @saforem2 commented on GitHub (Aug 22, 2025): > I forked spotify_player and moved the token acquisition to login5 per ([librespot-org/librespot#1532](https://github.com/librespot-org/librespot/issues/1532)) as well as integrated the audio fix workaround from [#796 (comment)](https://github.com/aome510/spotify-player/issues/796#issuecomment-3162984574): > > [bbzylstra/spotify-player](https://github.com/bbzylstra/spotify-player?rgh-link-date=2025-08-12T23%3A16%3A54.000Z) > > The commands to patch are pretty much identical to [@KUHLwasStolen](https://github.com/KUHLwasStolen) [#796 (comment)](https://github.com/aome510/spotify-player/issues/796#issuecomment-3162984574): > > ``` > git clone https://github.com/bbzylstra/spotify-player.git > cd spotify-player > cargo install --path spotify_player/ --no-default-features --features [whatever features you need] > > # features I used on arch > cargo install --path spotify_player/ --no-default-features --features pulseaudio-backend,pixelate,streaming,media-control > ``` This worked for me as well on MacOS 🙌 thank you @bbzylstra
Author
Owner

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

Looks like we have that libspot release! https://github.com/librespot-org/librespot/issues/1544#issuecomment-3218181864

<!-- gh-comment-id:3218193991 --> @Fireye04 commented on GitHub (Aug 24, 2025): Looks like we have that libspot release! https://github.com/librespot-org/librespot/issues/1544#issuecomment-3218181864
Author
Owner

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

Looks like we have that libspot release! librespot-org/librespot#1544 (comment)

Nice!! I will look into updating today to see if it fixes all the issues we are seeing

<!-- gh-comment-id:3218197601 --> @aome510 commented on GitHub (Aug 24, 2025): > Looks like we have that libspot release! [librespot-org/librespot#1544 (comment)](https://github.com/librespot-org/librespot/issues/1544#issuecomment-3218181864) Nice!! I will look into updating today to see if it fixes all the issues we are seeing
Author
Owner

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

I updated my patch to use the "0.7.0" release, it compiled fine and works. The main issue is that the new login5 token does not support custom client_ids so the devices won't show up. https://github.com/aome510/spotify-player/issues/804#issuecomment-3217261646

<!-- gh-comment-id:3218201433 --> @bbzylstra commented on GitHub (Aug 24, 2025): I updated my patch to use the "0.7.0" release, it compiled fine and works. The main issue is that the new login5 token does not support custom client_ids so the devices won't show up. https://github.com/aome510/spotify-player/issues/804#issuecomment-3217261646
Author
Owner

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

@bbzylstra ohhhh so thats why my devices weren't showing up, I was kinda confused for a bit

so is there like no way of using custom client ids from now?

<!-- gh-comment-id:3218215975 --> @aniruddhgutta commented on GitHub (Aug 24, 2025): @bbzylstra ohhhh so thats why my devices weren't showing up, I was kinda confused for a bit so is there like no way of using custom client ids from now?
Author
Owner

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

@aniruddhgutta unfortunately not. I've been working on a fix but it requires either a pretty substantial rewrite of librespot to use the oauth token flow, or have spotify-player juggle two separate tokens (login5 for librespot and oauth for rspotify device commands). The other problem with oauth is that you need to handle both the access token and the refresh token in the cache.

See: https://github.com/librespot-org/librespot/issues/1532#issuecomment-3187452377 and https://github.com/librespot-org/librespot/issues/1532#issuecomment-3187943782

Spotify oauth flow: https://developer.spotify.com/documentation/web-api/tutorials/refreshing-tokens

<!-- gh-comment-id:3218227379 --> @bbzylstra commented on GitHub (Aug 24, 2025): @aniruddhgutta unfortunately not. I've been working on a fix but it requires either a pretty substantial rewrite of librespot to use the oauth token flow, or have spotify-player juggle two separate tokens (login5 for librespot and oauth for rspotify device commands). The other problem with oauth is that you need to handle both the access token and the refresh token in the cache. See: https://github.com/librespot-org/librespot/issues/1532#issuecomment-3187452377 and https://github.com/librespot-org/librespot/issues/1532#issuecomment-3187943782 Spotify oauth flow: https://developer.spotify.com/documentation/web-api/tutorials/refreshing-tokens
Author
Owner

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

spotify_player now upgrades to use librespot 0.7.0 after #808, which I can confirm fixing both the audio and authentication issues for me. Thanks @bbzylstra for putting up the original upgrade PR.

The downside (as mentioned in the above comment) is that it no longer supports getting token with a custom client_id which the app uses to implement Spotify Connect functionality. I won't put up a new release until I figure out how to bring back Spotify Connect feature as well as reviewing a few ongoing PRs that I haven't had chance to look at.

In the meantime, please use the latest master instead if you encounter any authentication or audio issues. For example,

 cargo install --git https://github.com/aome510/spotify-player.git --features image
<!-- gh-comment-id:3218342832 --> @aome510 commented on GitHub (Aug 24, 2025): `spotify_player` now upgrades to use librespot `0.7.0` after #808, which I can confirm fixing both the audio and authentication issues for me. Thanks @bbzylstra for putting up the original upgrade PR. The downside (as mentioned in the above comment) is that it no longer supports getting token with a custom `client_id` which the app uses to implement [Spotify Connect](https://github.com/aome510/spotify-player?tab=readme-ov-file#spotify-connect) functionality. I won't put up a new release until I figure out how to bring back Spotify Connect feature as well as reviewing a few ongoing PRs that I haven't had chance to look at. In the meantime, please use the latest `master` instead if you encounter any authentication or audio issues. For example, ``` cargo install --git https://github.com/aome510/spotify-player.git --features image ```
Author
Owner

@tifandotme commented on GitHub (Aug 27, 2025):

when will this be released in homebrew?

<!-- gh-comment-id:3228394394 --> @tifandotme commented on GitHub (Aug 27, 2025): when will this be released in homebrew?
Author
Owner

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

I plan to release a new version this weekend. Will also need to wait for librespot to release a new version 0.7.1 with patches

<!-- gh-comment-id:3228410006 --> @aome510 commented on GitHub (Aug 27, 2025): I plan to release a new version this weekend. Will also need to wait for librespot to release a new version `0.7.1` with patches
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#1411
No description provided.