[GH-ISSUE #1527] Getting status code 500s since Ads API sunset #693

Closed
opened 2026-02-27 19:31:58 +03:00 by kerem · 79 comments
Owner

Originally created by @YutongGu on GitHub (Aug 6, 2025).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1527

Description

Starting yesterday (Aug 5th) librespot stopped allowing tracks to be played. Devices still could connect to the librespot instance but playing any tracks would cause the player to rotate through songs, never actually playing anything. Logs show the following error message:

[2025-08-06T16:43:01Z INFO librespot_core::spclient] Resolved "gew1-spclient.spotify.com:443" as spclient access point [2025-08-06T16:43:02Z INFO librespot_core::spclient] Resolved "gew4-spclient.spotify.com:443" as spclient access point [2025-08-06T16:43:03Z INFO librespot_core::spclient] Resolved "guc3-spclient.spotify.com:443" as spclient access point [2025-08-06T16:43:03Z ERROR librespot_playback::player] Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) }

This also seems to correspond with the sunsetting of the Spotify's V2 Ads API: https://developer.spotify.com/documentation/ads-api.

Version

Dev branch: be37402

How to reproduce

Steps to reproduce the behavior in librespot e.g.

  1. Launch librespot in release mode with no additional parameters except "--name"
  2. Connect with Spotify Connect on iPhone Spotify app (Have not tested on android)
  3. In the client, select a playlist and play from the playlist
  4. Then, scroll to bottom and select a song from the "Recommended Songs" section
  5. Selected song does not play

Log

[2025-08-06T17:16:21Z INFO  librespot] librespot 0.6.0-dev be37402 (Built on 2025-08-06, Build ID: tJ5Uubmn, Profile: release)
[2025-08-06T17:16:21Z TRACE librespot] Command line argument(s):
[2025-08-06T17:16:21Z TRACE librespot] 		v
[2025-08-06T17:16:21Z TRACE librespot] 		name "test"
[2025-08-06T17:16:21Z DEBUG librespot_core::session] new Session
[2025-08-06T17:16:21Z DEBUG librespot_discovery::server] Zeroconf server listening on 0.0.0.0:36803
[2025-08-06T17:16:21Z INFO  librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Log(60.0)
[2025-08-06T17:16:21Z DEBUG librespot_playback::player] new Player [0]
[2025-08-06T17:16:21Z INFO  librespot_playback::convert] Converting with ditherer: tpdf
[2025-08-06T17:16:21Z INFO  librespot_playback::audio_backend::rodio] Using Rodio sink with format S16 and cpal host: ALSA
[2025-08-06T17:16:21Z INFO  librespot_playback::audio_backend::rodio] Using audio device: default
[2025-08-06T17:16:21Z DEBUG librespot_playback::audio_backend::rodio] Rodio sink was created
[2025-08-06T17:16:27Z DEBUG librespot_discovery::server] POST "/" {}
[2025-08-06T17:16:27Z DEBUG librespot_core::session] Shutdown: Invalidating session
[2025-08-06T17:16:27Z DEBUG librespot::component] new MercuryManager
[2025-08-06T17:16:27Z DEBUG librespot::component] new ChannelManager
[2025-08-06T17:16:27Z DEBUG librespot_core::session] new Session
[2025-08-06T17:16:27Z DEBUG librespot_connect::spirc] new Spirc[0]
[2025-08-06T17:16:27Z DEBUG librespot_playback::player] command=SetSession
[2025-08-06T17:16:27Z DEBUG librespot_core::session] drop Session
[2025-08-06T17:16:27Z DEBUG librespot::component] drop ChannelManager
[2025-08-06T17:16:27Z DEBUG librespot::component] drop MercuryManager
[2025-08-06T17:16:27Z DEBUG librespot::component] new DealerManager
[2025-08-06T17:16:27Z DEBUG librespot::component] new SpClient
[2025-08-06T17:16:27Z DEBUG librespot_core::spclient] Client token unavailable or expired, requesting new token.
[2025-08-06T17:16:27Z DEBUG librespot_core::http_client] Requesting https://clienttoken.spotify.com/v1/clienttoken
[2025-08-06T17:16:27Z DEBUG librespot_core::spclient] Received a granted token
[2025-08-06T17:16:27Z TRACE librespot_core::spclient] Got client token: GrantedTokenResponse { token: "AADhjKnrrmw0g92Ln4jWcpUBz+kl1q0cZPOTVGGIMf0GN8PTYART58Ob4kE51TlcV67vvkApoNXONr6dvJfpzd6qLzQOv6BH3d44CsRHF90MyTWWO87VeHSzUw/x/zmyxYrzRah6SH6ZAQ4a165nD+Omf8YZnYP1XbDak2rGmR2S67Q8ABxPuJeQaROkNZt91Cuuz8wxHUVhAkMvR9JNzs0R8fp3dLY9eMlsch5bn1jMFqfsDP19rfgJZ4IceYmRrgExASx9xY24ttz5cqDy90hv9zDuN4seTPEOOoiduXy0F56FF7BW/rEd2YBpB1nLk1RHeOxWjcM=", expires_after_seconds: 1216800, refresh_after_seconds: 1209600, domains: [TokenDomain { domain: "spotify.com", special_fields: SpecialFields { unknown_fields: UnknownFields { fields: None }, cached_size: CachedSize { size: 0 } } }, TokenDomain { domain: "spotify.net", special_fields: SpecialFields { unknown_fields: UnknownFields { fields: None }, cached_size: CachedSize { size: 0 } } }], special_fields: SpecialFields { unknown_fields: UnknownFields { fields: None }, cached_size: CachedSize { size: 0 } } }
[2025-08-06T17:16:27Z DEBUG librespot::component] new ApResolver
[2025-08-06T17:16:27Z DEBUG librespot_core::http_client] Requesting https://apresolve.spotify.com/?type=accesspoint&type=dealer&type=spclient
[2025-08-06T17:16:27Z INFO  librespot_core::session] Connecting to AP "ap-guc3.spotify.com:4070"
[2025-08-06T17:16:28Z DEBUG librespot_core::connection] Connection to "ap-guc3.spotify.com:4070" failed: Connection refused (os error 111)
[2025-08-06T17:16:28Z DEBUG librespot_core::connection] Retry access point...
[2025-08-06T17:16:28Z DEBUG librespot_core::connection] Connection to AP established.
[2025-08-06T17:16:28Z DEBUG librespot_core::connection] Authenticating with AP using AUTHENTICATION_STORED_SPOTIFY_CREDENTIALS
[2025-08-06T17:16:28Z INFO  librespot_core::session] Authenticated as '1219828745' !
[2025-08-06T17:16:28Z DEBUG librespot::component] new Login5Manager
[2025-08-06T17:16:28Z DEBUG librespot_core::http_client] Requesting https://login5.spotify.com/v3/login
[2025-08-06T17:16:28Z TRACE librespot_core::session] Received Ping
[2025-08-06T17:16:28Z TRACE librespot_core::session] keep-alive state: PendingPong, timeout in 60.0
[2025-08-06T17:16:28Z DEBUG librespot_core::session] Session strong=5 weak=6
[2025-08-06T17:16:28Z INFO  librespot_core::session] Country: "US"
[2025-08-06T17:16:28Z TRACE librespot_core::session] Received product info: {...}
[2025-08-06T17:16:28Z DEBUG librespot::component] new MercuryManager
[2025-08-06T17:16:28Z TRACE librespot_core::mercury] mercury response <hm://pusher/v1/connections/YTk0YThmZTVjY2IxOWJhNjFjNGMwODczZDM5MWU5ODc5ODJmYmJkMytBUCt0Y3A6Ly8wYWIxNDhlOS5pcC5ndWMzLnNwb3RpZnkubmV0OjUwMjcrN0U2QjE2MTkzNThCODU2NzNCM0Y0MzIwNjc4QjhBQzFCMURGRkU4MUM2N0UxRDU5OEFDMEY5QzE2OEZGMzQxRA%3D%3D> is handled by dealer
[2025-08-06T17:16:28Z TRACE librespot_core::login5] Got auth token: Token { access_token: "BQB2o7tVgByewM5xiLfZODhlDdOodOX12vMgp1PZlDZldrilB2QqOHqoUKjmfm9ykj8i9vPZaYuvi73EWwerAA2pQ7588JAiuit5fiNHX-myb5IqaQiQBid4ZKyAvGW05ikb7Bs4dwg--1B4iLpPqbeWU8Ots-6nMntnfPi-gmxqwzYQ2OIcs2CCICTy6p8HTIWIDdzKNZlKi7IDokhcHN6iMtDQMSFMyzWvZW62M4gq5UxX_gG_cck3I-b5Fht9vFEZFgtXbJKd0S-OKp0kosIw1rgAcCiRHOkvAiz7RnAT_R562Lhw7mbSg7uLu0MuWBekzHrLK5It3mApNa5nud6YVlFUTNJeegpybUOF9-KY64GPEBbct4qepb2ZITLiY5J0OYIy3RaQxw", expires_in: 3600s, token_type: "Bearer", scopes: [], timestamp: Instant { tv_sec: 749357, tv_nsec: 102916569 } }
[2025-08-06T17:16:28Z DEBUG librespot_connect::spirc] SpircTask::set_volume(0)
[2025-08-06T17:16:28Z DEBUG librespot_playback::player] command=AddEventSender
[2025-08-06T17:16:28Z DEBUG librespot_core::dealer::manager] Launching dealer
[2025-08-06T17:16:28Z TRACE librespot_connect::spirc] Received connection ID update: "MzI2ZTNmZWEtMDE0OS00ZDY5LTg5MTMtYTMyYjJmYWQ2ZTY0K2RlYWxlcit0Y3A6Ly8wYWIxNDhkMy5pcC5ndWMzLnNwb3RpZnkubmV0OjU3MDArREJGMzFCNjBGMTFEOEYxNjYyRjEyMEU4MDY0RkJBMDkwRUZENjJBQzY4NDQ4MkIyRTJEOTYyMDA5ODNEMEJGNw=="
[2025-08-06T17:16:28Z INFO  librespot_core::spclient] Resolved "guc3-spclient.spotify.com:443" as spclient access point
[2025-08-06T17:16:28Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/connect-state/v1/devices/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3?product=0&country=US&salt=402916273
[2025-08-06T17:16:28Z TRACE librespot_core::dealer] Sent ping
[2025-08-06T17:16:29Z TRACE librespot_core::dealer] Received pong
[2025-08-06T17:16:29Z DEBUG librespot_connect::spirc] successfully put connect state for a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 with connection-id MzI2ZTNmZWEtMDE0OS00ZDY5LTg5MTMtYTMyYjJmYWQ2ZTY0K2RlYWxlcit0Y3A6Ly8wYWIxNDhkMy5pcC5ndWMzLnNwb3RpZnkubmV0OjU3MDArREJGMzFCNjBGMTFEOEYxNjYyRjEyMEU4MDY0RkJBMDkwRUZENjJBQzY4NDQ4MkIyRTJEOTYyMDA5ODNEMEJGNw==
[2025-08-06T17:16:29Z INFO  librespot_connect::spirc] active device is <> with session <2OYm1jZc6ckmcLXZGjWmQG>
[2025-08-06T17:16:29Z TRACE librespot_core::dealer] dealer request hm://connect-state/v1/player/command
[2025-08-06T17:16:29Z TRACE librespot_core::dealer::protocol] message was sent with gzip encoding 
[2025-08-06T17:16:29Z TRACE librespot_core::dealer::protocol] websocket request: Object {...}
[2025-08-06T17:16:29Z DEBUG librespot_connect::spirc] handling: 'endpoint: transfer' from 76d8b73a7d83cbe17bbf6da2f5c4d5fa9334660e
[2025-08-06T17:16:29Z WARN  librespot_connect::state::context] couldn't load context info because: context is not available. type: Default
[2025-08-06T17:16:29Z DEBUG librespot_connect::spirc] found initial track <spotify:track:7dWCYXkZMWnCKIcxmEC8Rc>
[2025-08-06T17:16:29Z TRACE librespot_connect::context_resolver] added spotify:user:1219828745:collection to resolver queue
[2025-08-06T17:16:29Z DEBUG librespot_connect::context_resolver] update for resolve_uri: <Some("spotify:user:1219828745:collection")>, context_uri: <spotify:user:1219828745:collection>, update: <Default> is already added
[2025-08-06T17:16:29Z TRACE librespot_connect::state::transfer] shuffle_seed: <Some("stable:619768a1")> (spotify), <None> (own)
[2025-08-06T17:16:29Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true
[2025-08-06T17:16:29Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true
[2025-08-06T17:16:29Z DEBUG librespot_playback::player] command=Load(SpotifyId("spotify:track:7dWCYXkZMWnCKIcxmEC8Rc"), false, 0)
[2025-08-06T17:16:29Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/connect-state/v1/devices/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3?product=0&country=US&salt=3087464660
[2025-08-06T17:16:29Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=2912894540
[2025-08-06T17:16:29Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:29Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=1171717386
[2025-08-06T17:16:29Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/context-resolve/v1/spotify:user:1219828745:collection
[2025-08-06T17:16:29Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/context-resolve/v1/spotify:user:1219828745:collection
[2025-08-06T17:16:29Z TRACE librespot_connect::spirc] ==> LoadingPause
[2025-08-06T17:16:29Z DEBUG librespot_core::dealer::manager] replying to ws request: Success
[2025-08-06T17:16:29Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:29Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=4278651821
[2025-08-06T17:16:29Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true
[2025-08-06T17:16:29Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/connect-state/v1/devices/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3?product=0&country=US&salt=1744511082
[2025-08-06T17:16:29Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:29Z INFO  librespot_core::spclient] Resolved "gae2-spclient.spotify.com:443" as spclient access point
[2025-08-06T17:16:29Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=2894824682
[2025-08-06T17:16:30Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/context-resolve/v1/spotify:user:1219828745:collection
[2025-08-06T17:16:30Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:30Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=1603512908
[2025-08-06T17:16:30Z DEBUG librespot_connect::spirc] handling next context Some("spotify:user:1219828745:collection")
[2025-08-06T17:16:30Z DEBUG librespot_connect::state::context] updated context Default to <Some("spotify:user:1219828745:collection")> (502 tracks)
[2025-08-06T17:16:30Z DEBUG librespot_connect::context_resolver] last item of type <Default>, finishing state setup
[2025-08-06T17:16:30Z DEBUG librespot_connect::state::transfer] active track is <spotify:track:7dWCYXkZMWnCKIcxmEC8Rc> with index Ok(146) in Default context, has 502 tracks
[2025-08-06T17:16:30Z DEBUG librespot_connect::state::transfer] setting up next and prev: index is at Some(146) while shuffle true
[2025-08-06T17:16:30Z DEBUG librespot_connect::state::tracks] set track to: spotify:track:7dWCYXkZMWnCKIcxmEC8Rc at 146 of 502 tracks
[2025-08-06T17:16:30Z DEBUG librespot_connect::state::tracks] finished filling up next_tracks (80)
[2025-08-06T17:16:30Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true
[2025-08-06T17:16:30Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/connect-state/v1/devices/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3?product=0&country=US&salt=4095084933
[2025-08-06T17:16:30Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:30Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=2899168007
[2025-08-06T17:16:30Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:30Z INFO  librespot_core::spclient] Resolved "gue1-spclient.spotify.com:443" as spclient access point
[2025-08-06T17:16:30Z DEBUG librespot_core::http_client] Requesting https://gue1-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=4039170469
[2025-08-06T17:16:30Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:30Z DEBUG librespot_core::http_client] Requesting https://gue1-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=2312688876
[2025-08-06T17:16:31Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:31Z DEBUG librespot_core::http_client] Requesting https://gue1-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=3781198736
[2025-08-06T17:16:31Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:31Z INFO  librespot_core::spclient] Resolved "gew4-spclient.spotify.com:443" as spclient access point
[2025-08-06T17:16:31Z DEBUG librespot_core::http_client] Requesting https://gew4-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=1575241319
[2025-08-06T17:16:31Z ERROR librespot_playback::player] Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) }
[2025-08-06T17:16:31Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:7dWCYXkZMWnCKIcxmEC8Rc")>: ()
[2025-08-06T17:16:31Z DEBUG librespot_connect::state::tracks] marking spotify:track:7dWCYXkZMWnCKIcxmEC8Rc as unavailable
[2025-08-06T17:16:31Z DEBUG librespot_connect::state::tracks] finished filling up next_tracks (80)
[2025-08-06T17:16:31Z DEBUG librespot_connect::state::tracks] finished filling up next_tracks (80)
[2025-08-06T17:16:31Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true
[2025-08-06T17:16:31Z DEBUG librespot_playback::player] command=Preload(SpotifyId("spotify:track:4hR3E8w9JI1eTvH0vuVvun"))
[2025-08-06T17:16:31Z DEBUG librespot_playback::player] Preloading track
[2025-08-06T17:16:31Z DEBUG librespot_playback::player] command=Load(SpotifyId("spotify:track:4hR3E8w9JI1eTvH0vuVvun"), false, 0)
[2025-08-06T17:16:31Z TRACE librespot_connect::spirc] ==> LoadingPause
[2025-08-06T17:16:31Z DEBUG librespot_core::http_client] Requesting https://gew4-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=758789378
[2025-08-06T17:16:31Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true
[2025-08-06T17:16:31Z DEBUG librespot_core::http_client] Requesting https://gew4-spclient.spotify.com:443/connect-state/v1/devices/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3?product=0&country=US&salt=742004312
[2025-08-06T17:16:31Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:31Z DEBUG librespot_core::http_client] Requesting https://gew4-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=3558800872
[2025-08-06T17:16:32Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:32Z DEBUG librespot_core::http_client] Requesting https://gew4-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=686760185
[2025-08-06T17:16:32Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:32Z DEBUG librespot_core::http_client] Requesting https://apresolve.spotify.com/?type=accesspoint&type=dealer&type=spclient
[2025-08-06T17:16:32Z INFO  librespot_core::spclient] Resolved "guc3-spclient.spotify.com:443" as spclient access point
[2025-08-06T17:16:32Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=1279317125
[2025-08-06T17:16:32Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:32Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=964409184
[2025-08-06T17:16:32Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:32Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=2135893380
[2025-08-06T17:16:32Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:32Z INFO  librespot_core::spclient] Resolved "gae2-spclient.spotify.com:443" as spclient access point
[2025-08-06T17:16:32Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=7894501
[2025-08-06T17:16:33Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:33Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=4080441059
[2025-08-06T17:16:33Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:33Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=1972310619
[2025-08-06T17:16:33Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:33Z INFO  librespot_core::spclient] Resolved "gew1-spclient.spotify.com:443" as spclient access point
[2025-08-06T17:16:33Z DEBUG librespot_core::http_client] Requesting https://gew1-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=2732354491
[2025-08-06T17:16:33Z ERROR librespot_playback::player] Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) }
[2025-08-06T17:16:33Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:4hR3E8w9JI1eTvH0vuVvun")>: ()
[2025-08-06T17:16:33Z DEBUG librespot_connect::state::tracks] marking spotify:track:4hR3E8w9JI1eTvH0vuVvun as unavailable
[2025-08-06T17:16:33Z DEBUG librespot_connect::state::tracks] finished filling up next_tracks (80)
[2025-08-06T17:16:33Z DEBUG librespot_connect::state::tracks] finished filling up next_tracks (80)
[2025-08-06T17:16:33Z DEBUG librespot_playback::player] command=Preload(SpotifyId("spotify:track:3P6zjYxB5sqnNGyd3QRBDz"))
[2025-08-06T17:16:33Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true
[2025-08-06T17:16:33Z DEBUG librespot_playback::player] Preloading track
[2025-08-06T17:16:33Z DEBUG librespot_playback::player] command=Load(SpotifyId("spotify:track:3P6zjYxB5sqnNGyd3QRBDz"), false, 0)
[2025-08-06T17:16:33Z TRACE librespot_connect::spirc] ==> LoadingPause
[2025-08-06T17:16:33Z DEBUG librespot_core::http_client] Requesting https://gew1-spclient.spotify.com:443/metadata/4/track/7da7756d55894e87b4531782a4da67a1?product=0&country=US&salt=607883474
[2025-08-06T17:16:34Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true
[2025-08-06T17:16:34Z DEBUG librespot_core::http_client] Requesting https://gew1-spclient.spotify.com:443/connect-state/v1/devices/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3?product=0&country=US&salt=2809328732
[2025-08-06T17:16:34Z TRACE librespot_metadata] Received metadata: Track {...}
[2025-08-06T17:16:34Z INFO  librespot_playback::player] Loading <Never Say Die> with Spotify URI <spotify:track:3R2jaCtqawdBv6mZ2Ym7Ty>
[2025-08-06T17:16:34Z WARN  librespot_playback::player] <Never Say Die> is not available in any supported format
[2025-08-06T17:16:34Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:3P6zjYxB5sqnNGyd3QRBDz")>: ()
[2025-08-06T17:16:34Z DEBUG librespot_connect::state::tracks] marking spotify:track:3P6zjYxB5sqnNGyd3QRBDz as unavailable
[2025-08-06T17:16:34Z DEBUG librespot_connect::state::tracks] finished filling up next_tracks (80)
[2025-08-06T17:16:34Z DEBUG librespot_connect::state::tracks] finished filling up next_tracks (80)
[2025-08-06T17:16:34Z DEBUG librespot_playback::player] command=Preload(SpotifyId("spotify:track:6tifCCTIVBLC2TmTquYG7G"))
[2025-08-06T17:16:34Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true
[2025-08-06T17:16:34Z DEBUG librespot_playback::player] Preloading track
[2025-08-06T17:16:34Z DEBUG librespot_playback::player] command=Load(SpotifyId("spotify:track:6tifCCTIVBLC2TmTquYG7G"), false, 0)
[2025-08-06T17:16:34Z TRACE librespot_connect::spirc] ==> LoadingPause
[2025-08-06T17:16:34Z DEBUG librespot_core::http_client] Requesting https://gew1-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=2294052662
[2025-08-06T17:16:34Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true
[2025-08-06T17:16:34Z DEBUG librespot_core::http_client] Requesting https://gew1-spclient.spotify.com:443/connect-state/v1/devices/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3?product=0&country=US&salt=717621256
[2025-08-06T17:16:34Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:34Z DEBUG librespot_core::http_client] Requesting https://gew1-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=1326129676
[2025-08-06T17:16:34Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:34Z DEBUG librespot_core::http_client] Requesting https://gew1-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=1182401983
[2025-08-06T17:16:35Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:35Z INFO  librespot_core::spclient] Resolved "gew4-spclient.spotify.com:443" as spclient access point
[2025-08-06T17:16:35Z DEBUG librespot_core::http_client] Requesting https://gew4-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=22001533
[2025-08-06T17:16:35Z TRACE librespot_core::dealer::protocol] message was sent with gzip encoding 
[2025-08-06T17:16:35Z DEBUG librespot_connect::spirc] cluster update: Ok(UNKNOWN_CLUSTER_UPDATE_REASON) from 76d8b73a7d83cbe17bbf6da2f5c4d5fa9334660e, active device: a94a8fe5ccb19ba61c4c0873d391e987982fbbd3
[2025-08-06T17:16:35Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:35Z DEBUG librespot_core::http_client] Requesting https://gew4-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=1777322199
[2025-08-06T17:16:35Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true
[2025-08-06T17:16:35Z DEBUG librespot_core::http_client] Requesting https://gew4-spclient.spotify.com:443/connect-state/v1/devices/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3?product=0&country=US&salt=1666413210
[2025-08-06T17:16:35Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:35Z DEBUG librespot_core::http_client] Requesting https://gew4-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=149578250
[2025-08-06T17:16:36Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:36Z DEBUG librespot_core::http_client] Requesting https://apresolve.spotify.com/?type=accesspoint&type=dealer&type=spclient
[2025-08-06T17:16:36Z INFO  librespot_core::spclient] Resolved "guc3-spclient.spotify.com:443" as spclient access point
[2025-08-06T17:16:36Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=2761546402
[2025-08-06T17:16:36Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:36Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=3692260121
[2025-08-06T17:16:36Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:36Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=3791732134
[2025-08-06T17:16:36Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) })
[2025-08-06T17:16:36Z INFO  librespot_core::spclient] Resolved "gae2-spclient.spotify.com:443" as spclient access point
[2025-08-06T17:16:36Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=3047355305
[2025-08-06T17:16:36Z TRACE librespot_core::dealer::protocol] message was sent with gzip encoding 
[2025-08-06T17:16:36Z ERROR librespot_playback::player] Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) }
[2025-08-06T17:16:36Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:6tifCCTIVBLC2TmTquYG7G")>: ()
[2025-08-06T17:16:36Z DEBUG librespot_connect::spirc] cluster update: Ok(DEVICE_STATE_CHANGED) from 76d8b73a7d83cbe17bbf6da2f5c4d5fa9334660e, active device: 
[2025-08-06T17:16:36Z INFO  librespot_connect::spirc] device became inactive
[2025-08-06T17:16:36Z WARN  librespot_connect::state::context] couldn't load context info because: context is not available. type: Default
[2025-08-06T17:16:36Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/connect-state/v1/devices/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3/inactive?notify=false&product=0&country=US&salt=2296889863
[2025-08-06T17:16:37Z DEBUG librespot_connect::state] reset_playback with active ctx <Default> fill_up ctx <Default>
[2025-08-06T17:16:37Z WARN  librespot_connect::spirc] failed filling up next_track during stopping: Invalid state { context is not available. type: Default }
[2025-08-06T17:16:37Z DEBUG librespot_playback::player] command=Stop
[2025-08-06T17:16:37Z DEBUG librespot_connect::state::tracks] marking spotify:track:6tifCCTIVBLC2TmTquYG7G as unavailable
[2025-08-06T17:16:37Z ERROR librespot_connect::spirc] could not dispatch player event: Invalid state { context is not available. type: Default }
[2025-08-06T17:16:37Z TRACE librespot_connect::spirc] ==> Stopped

Host (what you are running librespot on):

  • OS: Linux
  • Platform: Lenovo T14

Additional context

Originally created by @YutongGu on GitHub (Aug 6, 2025). Original GitHub issue: https://github.com/librespot-org/librespot/issues/1527 ### Description Starting yesterday (Aug 5th) librespot stopped allowing tracks to be played. Devices still could connect to the librespot instance but playing any tracks would cause the player to rotate through songs, never actually playing anything. Logs show the following error message: ` [2025-08-06T16:43:01Z INFO librespot_core::spclient] Resolved "gew1-spclient.spotify.com:443" as spclient access point [2025-08-06T16:43:02Z INFO librespot_core::spclient] Resolved "gew4-spclient.spotify.com:443" as spclient access point [2025-08-06T16:43:03Z INFO librespot_core::spclient] Resolved "guc3-spclient.spotify.com:443" as spclient access point [2025-08-06T16:43:03Z ERROR librespot_playback::player] Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) } ` This also seems to correspond with the sunsetting of the Spotify's V2 Ads API: https://developer.spotify.com/documentation/ads-api. ### Version Dev branch: be37402 ### How to reproduce Steps to reproduce the behavior in librespot e.g. 1. Launch librespot in release mode with no additional parameters except "--name" 2. Connect with Spotify Connect on iPhone Spotify app (Have not tested on android) 3. In the client, select a playlist and play from the playlist 4. Then, scroll to bottom and select a song from the "Recommended Songs" section 5. Selected song does not play ### Log ``` [2025-08-06T17:16:21Z INFO librespot] librespot 0.6.0-dev be37402 (Built on 2025-08-06, Build ID: tJ5Uubmn, Profile: release) [2025-08-06T17:16:21Z TRACE librespot] Command line argument(s): [2025-08-06T17:16:21Z TRACE librespot] v [2025-08-06T17:16:21Z TRACE librespot] name "test" [2025-08-06T17:16:21Z DEBUG librespot_core::session] new Session [2025-08-06T17:16:21Z DEBUG librespot_discovery::server] Zeroconf server listening on 0.0.0.0:36803 [2025-08-06T17:16:21Z INFO librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Log(60.0) [2025-08-06T17:16:21Z DEBUG librespot_playback::player] new Player [0] [2025-08-06T17:16:21Z INFO librespot_playback::convert] Converting with ditherer: tpdf [2025-08-06T17:16:21Z INFO librespot_playback::audio_backend::rodio] Using Rodio sink with format S16 and cpal host: ALSA [2025-08-06T17:16:21Z INFO librespot_playback::audio_backend::rodio] Using audio device: default [2025-08-06T17:16:21Z DEBUG librespot_playback::audio_backend::rodio] Rodio sink was created [2025-08-06T17:16:27Z DEBUG librespot_discovery::server] POST "/" {} [2025-08-06T17:16:27Z DEBUG librespot_core::session] Shutdown: Invalidating session [2025-08-06T17:16:27Z DEBUG librespot::component] new MercuryManager [2025-08-06T17:16:27Z DEBUG librespot::component] new ChannelManager [2025-08-06T17:16:27Z DEBUG librespot_core::session] new Session [2025-08-06T17:16:27Z DEBUG librespot_connect::spirc] new Spirc[0] [2025-08-06T17:16:27Z DEBUG librespot_playback::player] command=SetSession [2025-08-06T17:16:27Z DEBUG librespot_core::session] drop Session [2025-08-06T17:16:27Z DEBUG librespot::component] drop ChannelManager [2025-08-06T17:16:27Z DEBUG librespot::component] drop MercuryManager [2025-08-06T17:16:27Z DEBUG librespot::component] new DealerManager [2025-08-06T17:16:27Z DEBUG librespot::component] new SpClient [2025-08-06T17:16:27Z DEBUG librespot_core::spclient] Client token unavailable or expired, requesting new token. [2025-08-06T17:16:27Z DEBUG librespot_core::http_client] Requesting https://clienttoken.spotify.com/v1/clienttoken [2025-08-06T17:16:27Z DEBUG librespot_core::spclient] Received a granted token [2025-08-06T17:16:27Z TRACE librespot_core::spclient] Got client token: GrantedTokenResponse { token: "AADhjKnrrmw0g92Ln4jWcpUBz+kl1q0cZPOTVGGIMf0GN8PTYART58Ob4kE51TlcV67vvkApoNXONr6dvJfpzd6qLzQOv6BH3d44CsRHF90MyTWWO87VeHSzUw/x/zmyxYrzRah6SH6ZAQ4a165nD+Omf8YZnYP1XbDak2rGmR2S67Q8ABxPuJeQaROkNZt91Cuuz8wxHUVhAkMvR9JNzs0R8fp3dLY9eMlsch5bn1jMFqfsDP19rfgJZ4IceYmRrgExASx9xY24ttz5cqDy90hv9zDuN4seTPEOOoiduXy0F56FF7BW/rEd2YBpB1nLk1RHeOxWjcM=", expires_after_seconds: 1216800, refresh_after_seconds: 1209600, domains: [TokenDomain { domain: "spotify.com", special_fields: SpecialFields { unknown_fields: UnknownFields { fields: None }, cached_size: CachedSize { size: 0 } } }, TokenDomain { domain: "spotify.net", special_fields: SpecialFields { unknown_fields: UnknownFields { fields: None }, cached_size: CachedSize { size: 0 } } }], special_fields: SpecialFields { unknown_fields: UnknownFields { fields: None }, cached_size: CachedSize { size: 0 } } } [2025-08-06T17:16:27Z DEBUG librespot::component] new ApResolver [2025-08-06T17:16:27Z DEBUG librespot_core::http_client] Requesting https://apresolve.spotify.com/?type=accesspoint&type=dealer&type=spclient [2025-08-06T17:16:27Z INFO librespot_core::session] Connecting to AP "ap-guc3.spotify.com:4070" [2025-08-06T17:16:28Z DEBUG librespot_core::connection] Connection to "ap-guc3.spotify.com:4070" failed: Connection refused (os error 111) [2025-08-06T17:16:28Z DEBUG librespot_core::connection] Retry access point... [2025-08-06T17:16:28Z DEBUG librespot_core::connection] Connection to AP established. [2025-08-06T17:16:28Z DEBUG librespot_core::connection] Authenticating with AP using AUTHENTICATION_STORED_SPOTIFY_CREDENTIALS [2025-08-06T17:16:28Z INFO librespot_core::session] Authenticated as '1219828745' ! [2025-08-06T17:16:28Z DEBUG librespot::component] new Login5Manager [2025-08-06T17:16:28Z DEBUG librespot_core::http_client] Requesting https://login5.spotify.com/v3/login [2025-08-06T17:16:28Z TRACE librespot_core::session] Received Ping [2025-08-06T17:16:28Z TRACE librespot_core::session] keep-alive state: PendingPong, timeout in 60.0 [2025-08-06T17:16:28Z DEBUG librespot_core::session] Session strong=5 weak=6 [2025-08-06T17:16:28Z INFO librespot_core::session] Country: "US" [2025-08-06T17:16:28Z TRACE librespot_core::session] Received product info: {...} [2025-08-06T17:16:28Z DEBUG librespot::component] new MercuryManager [2025-08-06T17:16:28Z TRACE librespot_core::mercury] mercury response <hm://pusher/v1/connections/YTk0YThmZTVjY2IxOWJhNjFjNGMwODczZDM5MWU5ODc5ODJmYmJkMytBUCt0Y3A6Ly8wYWIxNDhlOS5pcC5ndWMzLnNwb3RpZnkubmV0OjUwMjcrN0U2QjE2MTkzNThCODU2NzNCM0Y0MzIwNjc4QjhBQzFCMURGRkU4MUM2N0UxRDU5OEFDMEY5QzE2OEZGMzQxRA%3D%3D> is handled by dealer [2025-08-06T17:16:28Z TRACE librespot_core::login5] Got auth token: Token { access_token: "BQB2o7tVgByewM5xiLfZODhlDdOodOX12vMgp1PZlDZldrilB2QqOHqoUKjmfm9ykj8i9vPZaYuvi73EWwerAA2pQ7588JAiuit5fiNHX-myb5IqaQiQBid4ZKyAvGW05ikb7Bs4dwg--1B4iLpPqbeWU8Ots-6nMntnfPi-gmxqwzYQ2OIcs2CCICTy6p8HTIWIDdzKNZlKi7IDokhcHN6iMtDQMSFMyzWvZW62M4gq5UxX_gG_cck3I-b5Fht9vFEZFgtXbJKd0S-OKp0kosIw1rgAcCiRHOkvAiz7RnAT_R562Lhw7mbSg7uLu0MuWBekzHrLK5It3mApNa5nud6YVlFUTNJeegpybUOF9-KY64GPEBbct4qepb2ZITLiY5J0OYIy3RaQxw", expires_in: 3600s, token_type: "Bearer", scopes: [], timestamp: Instant { tv_sec: 749357, tv_nsec: 102916569 } } [2025-08-06T17:16:28Z DEBUG librespot_connect::spirc] SpircTask::set_volume(0) [2025-08-06T17:16:28Z DEBUG librespot_playback::player] command=AddEventSender [2025-08-06T17:16:28Z DEBUG librespot_core::dealer::manager] Launching dealer [2025-08-06T17:16:28Z TRACE librespot_connect::spirc] Received connection ID update: "MzI2ZTNmZWEtMDE0OS00ZDY5LTg5MTMtYTMyYjJmYWQ2ZTY0K2RlYWxlcit0Y3A6Ly8wYWIxNDhkMy5pcC5ndWMzLnNwb3RpZnkubmV0OjU3MDArREJGMzFCNjBGMTFEOEYxNjYyRjEyMEU4MDY0RkJBMDkwRUZENjJBQzY4NDQ4MkIyRTJEOTYyMDA5ODNEMEJGNw==" [2025-08-06T17:16:28Z INFO librespot_core::spclient] Resolved "guc3-spclient.spotify.com:443" as spclient access point [2025-08-06T17:16:28Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/connect-state/v1/devices/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3?product=0&country=US&salt=402916273 [2025-08-06T17:16:28Z TRACE librespot_core::dealer] Sent ping [2025-08-06T17:16:29Z TRACE librespot_core::dealer] Received pong [2025-08-06T17:16:29Z DEBUG librespot_connect::spirc] successfully put connect state for a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 with connection-id MzI2ZTNmZWEtMDE0OS00ZDY5LTg5MTMtYTMyYjJmYWQ2ZTY0K2RlYWxlcit0Y3A6Ly8wYWIxNDhkMy5pcC5ndWMzLnNwb3RpZnkubmV0OjU3MDArREJGMzFCNjBGMTFEOEYxNjYyRjEyMEU4MDY0RkJBMDkwRUZENjJBQzY4NDQ4MkIyRTJEOTYyMDA5ODNEMEJGNw== [2025-08-06T17:16:29Z INFO librespot_connect::spirc] active device is <> with session <2OYm1jZc6ckmcLXZGjWmQG> [2025-08-06T17:16:29Z TRACE librespot_core::dealer] dealer request hm://connect-state/v1/player/command [2025-08-06T17:16:29Z TRACE librespot_core::dealer::protocol] message was sent with gzip encoding [2025-08-06T17:16:29Z TRACE librespot_core::dealer::protocol] websocket request: Object {...} [2025-08-06T17:16:29Z DEBUG librespot_connect::spirc] handling: 'endpoint: transfer' from 76d8b73a7d83cbe17bbf6da2f5c4d5fa9334660e [2025-08-06T17:16:29Z WARN librespot_connect::state::context] couldn't load context info because: context is not available. type: Default [2025-08-06T17:16:29Z DEBUG librespot_connect::spirc] found initial track <spotify:track:7dWCYXkZMWnCKIcxmEC8Rc> [2025-08-06T17:16:29Z TRACE librespot_connect::context_resolver] added spotify:user:1219828745:collection to resolver queue [2025-08-06T17:16:29Z DEBUG librespot_connect::context_resolver] update for resolve_uri: <Some("spotify:user:1219828745:collection")>, context_uri: <spotify:user:1219828745:collection>, update: <Default> is already added [2025-08-06T17:16:29Z TRACE librespot_connect::state::transfer] shuffle_seed: <Some("stable:619768a1")> (spotify), <None> (own) [2025-08-06T17:16:29Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true [2025-08-06T17:16:29Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true [2025-08-06T17:16:29Z DEBUG librespot_playback::player] command=Load(SpotifyId("spotify:track:7dWCYXkZMWnCKIcxmEC8Rc"), false, 0) [2025-08-06T17:16:29Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/connect-state/v1/devices/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3?product=0&country=US&salt=3087464660 [2025-08-06T17:16:29Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=2912894540 [2025-08-06T17:16:29Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:29Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=1171717386 [2025-08-06T17:16:29Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/context-resolve/v1/spotify:user:1219828745:collection [2025-08-06T17:16:29Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/context-resolve/v1/spotify:user:1219828745:collection [2025-08-06T17:16:29Z TRACE librespot_connect::spirc] ==> LoadingPause [2025-08-06T17:16:29Z DEBUG librespot_core::dealer::manager] replying to ws request: Success [2025-08-06T17:16:29Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:29Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=4278651821 [2025-08-06T17:16:29Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true [2025-08-06T17:16:29Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/connect-state/v1/devices/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3?product=0&country=US&salt=1744511082 [2025-08-06T17:16:29Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:29Z INFO librespot_core::spclient] Resolved "gae2-spclient.spotify.com:443" as spclient access point [2025-08-06T17:16:29Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=2894824682 [2025-08-06T17:16:30Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/context-resolve/v1/spotify:user:1219828745:collection [2025-08-06T17:16:30Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:30Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=1603512908 [2025-08-06T17:16:30Z DEBUG librespot_connect::spirc] handling next context Some("spotify:user:1219828745:collection") [2025-08-06T17:16:30Z DEBUG librespot_connect::state::context] updated context Default to <Some("spotify:user:1219828745:collection")> (502 tracks) [2025-08-06T17:16:30Z DEBUG librespot_connect::context_resolver] last item of type <Default>, finishing state setup [2025-08-06T17:16:30Z DEBUG librespot_connect::state::transfer] active track is <spotify:track:7dWCYXkZMWnCKIcxmEC8Rc> with index Ok(146) in Default context, has 502 tracks [2025-08-06T17:16:30Z DEBUG librespot_connect::state::transfer] setting up next and prev: index is at Some(146) while shuffle true [2025-08-06T17:16:30Z DEBUG librespot_connect::state::tracks] set track to: spotify:track:7dWCYXkZMWnCKIcxmEC8Rc at 146 of 502 tracks [2025-08-06T17:16:30Z DEBUG librespot_connect::state::tracks] finished filling up next_tracks (80) [2025-08-06T17:16:30Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true [2025-08-06T17:16:30Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/connect-state/v1/devices/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3?product=0&country=US&salt=4095084933 [2025-08-06T17:16:30Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:30Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=2899168007 [2025-08-06T17:16:30Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:30Z INFO librespot_core::spclient] Resolved "gue1-spclient.spotify.com:443" as spclient access point [2025-08-06T17:16:30Z DEBUG librespot_core::http_client] Requesting https://gue1-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=4039170469 [2025-08-06T17:16:30Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:30Z DEBUG librespot_core::http_client] Requesting https://gue1-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=2312688876 [2025-08-06T17:16:31Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:31Z DEBUG librespot_core::http_client] Requesting https://gue1-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=3781198736 [2025-08-06T17:16:31Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:31Z INFO librespot_core::spclient] Resolved "gew4-spclient.spotify.com:443" as spclient access point [2025-08-06T17:16:31Z DEBUG librespot_core::http_client] Requesting https://gew4-spclient.spotify.com:443/metadata/4/track/ed63725a623c43f9b321d8821c274fd2?product=0&country=US&salt=1575241319 [2025-08-06T17:16:31Z ERROR librespot_playback::player] Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) } [2025-08-06T17:16:31Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:7dWCYXkZMWnCKIcxmEC8Rc")>: () [2025-08-06T17:16:31Z DEBUG librespot_connect::state::tracks] marking spotify:track:7dWCYXkZMWnCKIcxmEC8Rc as unavailable [2025-08-06T17:16:31Z DEBUG librespot_connect::state::tracks] finished filling up next_tracks (80) [2025-08-06T17:16:31Z DEBUG librespot_connect::state::tracks] finished filling up next_tracks (80) [2025-08-06T17:16:31Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true [2025-08-06T17:16:31Z DEBUG librespot_playback::player] command=Preload(SpotifyId("spotify:track:4hR3E8w9JI1eTvH0vuVvun")) [2025-08-06T17:16:31Z DEBUG librespot_playback::player] Preloading track [2025-08-06T17:16:31Z DEBUG librespot_playback::player] command=Load(SpotifyId("spotify:track:4hR3E8w9JI1eTvH0vuVvun"), false, 0) [2025-08-06T17:16:31Z TRACE librespot_connect::spirc] ==> LoadingPause [2025-08-06T17:16:31Z DEBUG librespot_core::http_client] Requesting https://gew4-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=758789378 [2025-08-06T17:16:31Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true [2025-08-06T17:16:31Z DEBUG librespot_core::http_client] Requesting https://gew4-spclient.spotify.com:443/connect-state/v1/devices/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3?product=0&country=US&salt=742004312 [2025-08-06T17:16:31Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:31Z DEBUG librespot_core::http_client] Requesting https://gew4-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=3558800872 [2025-08-06T17:16:32Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:32Z DEBUG librespot_core::http_client] Requesting https://gew4-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=686760185 [2025-08-06T17:16:32Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:32Z DEBUG librespot_core::http_client] Requesting https://apresolve.spotify.com/?type=accesspoint&type=dealer&type=spclient [2025-08-06T17:16:32Z INFO librespot_core::spclient] Resolved "guc3-spclient.spotify.com:443" as spclient access point [2025-08-06T17:16:32Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=1279317125 [2025-08-06T17:16:32Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:32Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=964409184 [2025-08-06T17:16:32Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:32Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=2135893380 [2025-08-06T17:16:32Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:32Z INFO librespot_core::spclient] Resolved "gae2-spclient.spotify.com:443" as spclient access point [2025-08-06T17:16:32Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=7894501 [2025-08-06T17:16:33Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:33Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=4080441059 [2025-08-06T17:16:33Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:33Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=1972310619 [2025-08-06T17:16:33Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:33Z INFO librespot_core::spclient] Resolved "gew1-spclient.spotify.com:443" as spclient access point [2025-08-06T17:16:33Z DEBUG librespot_core::http_client] Requesting https://gew1-spclient.spotify.com:443/metadata/4/track/8ce3dc930191437d9875537e5f4a578f?product=0&country=US&salt=2732354491 [2025-08-06T17:16:33Z ERROR librespot_playback::player] Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) } [2025-08-06T17:16:33Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:4hR3E8w9JI1eTvH0vuVvun")>: () [2025-08-06T17:16:33Z DEBUG librespot_connect::state::tracks] marking spotify:track:4hR3E8w9JI1eTvH0vuVvun as unavailable [2025-08-06T17:16:33Z DEBUG librespot_connect::state::tracks] finished filling up next_tracks (80) [2025-08-06T17:16:33Z DEBUG librespot_connect::state::tracks] finished filling up next_tracks (80) [2025-08-06T17:16:33Z DEBUG librespot_playback::player] command=Preload(SpotifyId("spotify:track:3P6zjYxB5sqnNGyd3QRBDz")) [2025-08-06T17:16:33Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true [2025-08-06T17:16:33Z DEBUG librespot_playback::player] Preloading track [2025-08-06T17:16:33Z DEBUG librespot_playback::player] command=Load(SpotifyId("spotify:track:3P6zjYxB5sqnNGyd3QRBDz"), false, 0) [2025-08-06T17:16:33Z TRACE librespot_connect::spirc] ==> LoadingPause [2025-08-06T17:16:33Z DEBUG librespot_core::http_client] Requesting https://gew1-spclient.spotify.com:443/metadata/4/track/7da7756d55894e87b4531782a4da67a1?product=0&country=US&salt=607883474 [2025-08-06T17:16:34Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true [2025-08-06T17:16:34Z DEBUG librespot_core::http_client] Requesting https://gew1-spclient.spotify.com:443/connect-state/v1/devices/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3?product=0&country=US&salt=2809328732 [2025-08-06T17:16:34Z TRACE librespot_metadata] Received metadata: Track {...} [2025-08-06T17:16:34Z INFO librespot_playback::player] Loading <Never Say Die> with Spotify URI <spotify:track:3R2jaCtqawdBv6mZ2Ym7Ty> [2025-08-06T17:16:34Z WARN librespot_playback::player] <Never Say Die> is not available in any supported format [2025-08-06T17:16:34Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:3P6zjYxB5sqnNGyd3QRBDz")>: () [2025-08-06T17:16:34Z DEBUG librespot_connect::state::tracks] marking spotify:track:3P6zjYxB5sqnNGyd3QRBDz as unavailable [2025-08-06T17:16:34Z DEBUG librespot_connect::state::tracks] finished filling up next_tracks (80) [2025-08-06T17:16:34Z DEBUG librespot_connect::state::tracks] finished filling up next_tracks (80) [2025-08-06T17:16:34Z DEBUG librespot_playback::player] command=Preload(SpotifyId("spotify:track:6tifCCTIVBLC2TmTquYG7G")) [2025-08-06T17:16:34Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true [2025-08-06T17:16:34Z DEBUG librespot_playback::player] Preloading track [2025-08-06T17:16:34Z DEBUG librespot_playback::player] command=Load(SpotifyId("spotify:track:6tifCCTIVBLC2TmTquYG7G"), false, 0) [2025-08-06T17:16:34Z TRACE librespot_connect::spirc] ==> LoadingPause [2025-08-06T17:16:34Z DEBUG librespot_core::http_client] Requesting https://gew1-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=2294052662 [2025-08-06T17:16:34Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true [2025-08-06T17:16:34Z DEBUG librespot_core::http_client] Requesting https://gew1-spclient.spotify.com:443/connect-state/v1/devices/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3?product=0&country=US&salt=717621256 [2025-08-06T17:16:34Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:34Z DEBUG librespot_core::http_client] Requesting https://gew1-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=1326129676 [2025-08-06T17:16:34Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:34Z DEBUG librespot_core::http_client] Requesting https://gew1-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=1182401983 [2025-08-06T17:16:35Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:35Z INFO librespot_core::spclient] Resolved "gew4-spclient.spotify.com:443" as spclient access point [2025-08-06T17:16:35Z DEBUG librespot_core::http_client] Requesting https://gew4-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=22001533 [2025-08-06T17:16:35Z TRACE librespot_core::dealer::protocol] message was sent with gzip encoding [2025-08-06T17:16:35Z DEBUG librespot_connect::spirc] cluster update: Ok(UNKNOWN_CLUSTER_UPDATE_REASON) from 76d8b73a7d83cbe17bbf6da2f5c4d5fa9334660e, active device: a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 [2025-08-06T17:16:35Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:35Z DEBUG librespot_core::http_client] Requesting https://gew4-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=1777322199 [2025-08-06T17:16:35Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true [2025-08-06T17:16:35Z DEBUG librespot_core::http_client] Requesting https://gew4-spclient.spotify.com:443/connect-state/v1/devices/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3?product=0&country=US&salt=1666413210 [2025-08-06T17:16:35Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:35Z DEBUG librespot_core::http_client] Requesting https://gew4-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=149578250 [2025-08-06T17:16:36Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:36Z DEBUG librespot_core::http_client] Requesting https://apresolve.spotify.com/?type=accesspoint&type=dealer&type=spclient [2025-08-06T17:16:36Z INFO librespot_core::spclient] Resolved "guc3-spclient.spotify.com:443" as spclient access point [2025-08-06T17:16:36Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=2761546402 [2025-08-06T17:16:36Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:36Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=3692260121 [2025-08-06T17:16:36Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:36Z DEBUG librespot_core::http_client] Requesting https://guc3-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=3791732134 [2025-08-06T17:16:36Z DEBUG librespot_core::spclient] Error was: Err(Error { kind: Unavailable, error: StatusCode(500) }) [2025-08-06T17:16:36Z INFO librespot_core::spclient] Resolved "gae2-spclient.spotify.com:443" as spclient access point [2025-08-06T17:16:36Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/metadata/4/track/d4aa698ffa0e4dafb35e4c2ee7359704?product=0&country=US&salt=3047355305 [2025-08-06T17:16:36Z TRACE librespot_core::dealer::protocol] message was sent with gzip encoding [2025-08-06T17:16:36Z ERROR librespot_playback::player] Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) } [2025-08-06T17:16:36Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:6tifCCTIVBLC2TmTquYG7G")>: () [2025-08-06T17:16:36Z DEBUG librespot_connect::spirc] cluster update: Ok(DEVICE_STATE_CHANGED) from 76d8b73a7d83cbe17bbf6da2f5c4d5fa9334660e, active device: [2025-08-06T17:16:36Z INFO librespot_connect::spirc] device became inactive [2025-08-06T17:16:36Z WARN librespot_connect::state::context] couldn't load context info because: context is not available. type: Default [2025-08-06T17:16:36Z DEBUG librespot_core::http_client] Requesting https://gae2-spclient.spotify.com:443/connect-state/v1/devices/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3/inactive?notify=false&product=0&country=US&salt=2296889863 [2025-08-06T17:16:37Z DEBUG librespot_connect::state] reset_playback with active ctx <Default> fill_up ctx <Default> [2025-08-06T17:16:37Z WARN librespot_connect::spirc] failed filling up next_track during stopping: Invalid state { context is not available. type: Default } [2025-08-06T17:16:37Z DEBUG librespot_playback::player] command=Stop [2025-08-06T17:16:37Z DEBUG librespot_connect::state::tracks] marking spotify:track:6tifCCTIVBLC2TmTquYG7G as unavailable [2025-08-06T17:16:37Z ERROR librespot_connect::spirc] could not dispatch player event: Invalid state { context is not available. type: Default } [2025-08-06T17:16:37Z TRACE librespot_connect::spirc] ==> Stopped ``` ### Host (what you are running `librespot` on): - OS: Linux - Platform: Lenovo T14 ### Additional context
kerem 2026-02-27 19:31:58 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@roqueeee commented on GitHub (Aug 6, 2025):

Same, librespot returns ERROR librespot_playback::player] Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) } on any song I try to play. It still worked about 6 hours ago.

<!-- gh-comment-id:3161015010 --> @roqueeee commented on GitHub (Aug 6, 2025): Same, librespot returns `ERROR librespot_playback::player] Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) }` on any song I try to play. It still worked about 6 hours ago.
Author
Owner

@smoonlee commented on GitHub (Aug 6, 2025):

Have also had issues with raspotify, and thought it might have been OAuth issues based on the recent UK Age vertification waffle. but this confirms its not. 🫡

<!-- gh-comment-id:3161016742 --> @smoonlee commented on GitHub (Aug 6, 2025): Have also had issues with raspotify, and thought it might have been OAuth issues based on the recent UK Age vertification waffle. but this confirms its not. 🫡
Author
Owner

@kingosticks commented on GitHub (Aug 6, 2025):

Fairly sure we don't use the ads API directly but in the long-running history of Spotify deprecating things, they always (always) break something else along the way.

<!-- gh-comment-id:3161030865 --> @kingosticks commented on GitHub (Aug 6, 2025): Fairly sure we don't use the ads API directly but in the long-running history of Spotify deprecating things, they always (always) break something else along the way.
Author
Owner

@lleheny0 commented on GitHub (Aug 6, 2025):

Same here, 500 error and unable to load any songs. I thought at first that I had hit some kind of rate limit because it happened to coincide with me hitting the skip button a bunch of times. Was working fine a few hours ago.

<!-- gh-comment-id:3161078103 --> @lleheny0 commented on GitHub (Aug 6, 2025): Same here, 500 error and unable to load any songs. I thought at first that I had hit some kind of rate limit because it happened to coincide with me hitting the skip button a bunch of times. Was working fine a few hours ago.
Author
Owner

@Mitschmaster commented on GitHub (Aug 6, 2025):

seems i have the same issue.

<!-- gh-comment-id:3161082215 --> @Mitschmaster commented on GitHub (Aug 6, 2025): seems i have the same issue.
Author
Owner

@Aeiron2 commented on GitHub (Aug 6, 2025):

librespot.core.ApiClient.StatusCodeException: 500 since yesterday

<!-- gh-comment-id:3161087542 --> @Aeiron2 commented on GitHub (Aug 6, 2025): librespot.core.ApiClient.StatusCodeException: 500 since yesterday
Author
Owner

@dachucky commented on GitHub (Aug 6, 2025):

Also seeing this in the version bundled with Music Assistant (librespot 0.6.0-dev 7127672 (Built on 2025-02-24, Build ID: KpKsLXNx, Profile: release)), with two different errors:

More commonly

[2025-08-06T18:35:48Z INFO  librespot_core::spclient] Resolved "gew1-spclient.spotify.com:443" as spclient access point
[2025-08-06T18:35:49Z ERROR librespot_playback::player] Track should be available, but no alternatives found.
[2025-08-06T18:35:49Z WARN  librespot_playback::player] <spotify:track:AAAAAAAAaaaAAaaAAAAAAA> is not available
[2025-08-06T18:35:49Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:AAAAAAAAaaaAAaaAAAAAAA")>: ()

or more rarely

[2025-08-06T18:35:08Z INFO  librespot_core::spclient] Resolved "gew1-spclient.spotify.com:443" as spclient access point
[2025-08-06T18:35:09Z INFO  librespot_core::spclient] Resolved "guc3-spclient.spotify.com:443" as spclient access point
[2025-08-06T18:35:09Z INFO  librespot_core::spclient] Resolved "gue1-spclient.spotify.com:443" as spclient access point
[2025-08-06T18:35:10Z INFO  librespot_core::spclient] Resolved "gew4-spclient.spotify.com:443" as spclient access point
[2025-08-06T18:35:10Z ERROR librespot_playback::player] Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) }
[2025-08-06T18:35:10Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:AAAaaAAAaaaAAAaaaAAAaa")>: ()
<!-- gh-comment-id:3161211307 --> @dachucky commented on GitHub (Aug 6, 2025): Also seeing this in the version bundled with Music Assistant (`librespot 0.6.0-dev 7127672 (Built on 2025-02-24, Build ID: KpKsLXNx, Profile: release)`), with two different errors: More commonly ``` [2025-08-06T18:35:48Z INFO librespot_core::spclient] Resolved "gew1-spclient.spotify.com:443" as spclient access point [2025-08-06T18:35:49Z ERROR librespot_playback::player] Track should be available, but no alternatives found. [2025-08-06T18:35:49Z WARN librespot_playback::player] <spotify:track:AAAAAAAAaaaAAaaAAAAAAA> is not available [2025-08-06T18:35:49Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:AAAAAAAAaaaAAaaAAAAAAA")>: () ``` or more rarely ``` [2025-08-06T18:35:08Z INFO librespot_core::spclient] Resolved "gew1-spclient.spotify.com:443" as spclient access point [2025-08-06T18:35:09Z INFO librespot_core::spclient] Resolved "guc3-spclient.spotify.com:443" as spclient access point [2025-08-06T18:35:09Z INFO librespot_core::spclient] Resolved "gue1-spclient.spotify.com:443" as spclient access point [2025-08-06T18:35:10Z INFO librespot_core::spclient] Resolved "gew4-spclient.spotify.com:443" as spclient access point [2025-08-06T18:35:10Z ERROR librespot_playback::player] Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) } [2025-08-06T18:35:10Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:AAAaaAAAaaaAAAaaaAAAaa")>: () ```
Author
Owner

@YutongGu commented on GitHub (Aug 6, 2025):

I wonder if this issue from the go-librespot library is the same as what we're experiencing here. If so, it looks like they've already addressed it in a PR.

EDIT: I just tried out their latest release from 2 hours ago and it seems to work well.

<!-- gh-comment-id:3161319799 --> @YutongGu commented on GitHub (Aug 6, 2025): I wonder if [this issue](https://github.com/devgianlu/go-librespot/issues/189) from the go-librespot library is the same as what we're experiencing here. If so, it looks like they've already addressed it in a PR. EDIT: I just tried out their latest release from 2 hours ago and it seems to work well.
Author
Owner

@kingosticks commented on GitHub (Aug 6, 2025):

I called it!! Spotify engineering never disappoints.

Yep, good spot, we need to port that fix.

<!-- gh-comment-id:3161342476 --> @kingosticks commented on GitHub (Aug 6, 2025): I called it!! Spotify engineering never disappoints. Yep, good spot, we need to port that fix.
Author
Owner

@ayosec commented on GitHub (Aug 6, 2025):

I did a quick patch to apply the fix from https://github.com/devgianlu/go-librespot/issues/189#issuecomment-3160813582. The diff is against the tag v0.6.0:

$ git log --format=%h -1
383a6f6

$ git diff
diff --git a/core/src/spclient.rs b/core/src/spclient.rs
index a23b52f..f12c735 100644
--- a/core/src/spclient.rs
+++ b/core/src/spclient.rs
@@ -396,7 +396,12 @@ impl SpClient {

             // Reconnection logic: retrieve the endpoint every iteration, so we can try
             // another access point when we are experiencing network issues (see below).
-            let mut url = self.base_url().await?;
+            let mut url = if endpoint.starts_with("/metadata") {
+                String::from("https://spclient.wg.spotify.com")
+            } else {
+                self.base_url().await?
+            };
+
             url.push_str(endpoint);

             let separator = match url.find('?') {

Songs can be played again, though there is a ContextError (which I'm not sure it started today):

[2025-08-06T19:45:25Z ERROR librespot_connect::spirc] ContextError:
Error { kind: InvalidArgument, error: StatusCode(400) }
<!-- gh-comment-id:3161397815 --> @ayosec commented on GitHub (Aug 6, 2025): I did a quick patch to apply the fix from <https://github.com/devgianlu/go-librespot/issues/189#issuecomment-3160813582>. The diff is against the [tag `v0.6.0`](https://github.com/librespot-org/librespot/tree/v0.6.0): ```console $ git log --format=%h -1 383a6f6 $ git diff diff --git a/core/src/spclient.rs b/core/src/spclient.rs index a23b52f..f12c735 100644 --- a/core/src/spclient.rs +++ b/core/src/spclient.rs @@ -396,7 +396,12 @@ impl SpClient { // Reconnection logic: retrieve the endpoint every iteration, so we can try // another access point when we are experiencing network issues (see below). - let mut url = self.base_url().await?; + let mut url = if endpoint.starts_with("/metadata") { + String::from("https://spclient.wg.spotify.com") + } else { + self.base_url().await? + }; + url.push_str(endpoint); let separator = match url.find('?') { ``` Songs can be played again, though there is a `ContextError` (which I'm not sure it started today): [2025-08-06T19:45:25Z ERROR librespot_connect::spirc] ContextError: Error { kind: InvalidArgument, error: StatusCode(400) }
Author
Owner

@YutongGu commented on GitHub (Aug 6, 2025):

This worked for me too! I'm also getting the context errors though. Is that cause for any concern?

[2025-08-06T20:52:41Z INFO librespot_core::spclient] Resolved "guc3-spclient.spotify.com:443" as spclient access point
[2025-08-06T20:52:41Z INFO librespot_connect::spirc] active device is <> with session <3mIg4FOj2Cq9oT33mygYn9>
[2025-08-06T20:52:42Z WARN librespot_core::dealer] No subscriber for msg.uri: social-connect/v2/broadcast_status_update
[2025-08-06T20:52:42Z INFO librespot_connect::spirc] session update: <Ok(NEW_SESSION)> for self, current session_id f2aabefedd15477884b669f06f5d80bf, new session_id b0c30ca6f80d8a74b392b7a7327eb286
[2025-08-06T20:52:42Z ERROR librespot_connect::spirc] could not parse session_update: Invalid state { Unknown enum variant name: WIFI_BROADCAST_CHANGED at 1:11 }
[2025-08-06T20:52:42Z INFO librespot_playback::player] Loading with Spotify URI spotify:track:2jbBVcRxdJpNkgnmsat2gq
[2025-08-06T20:52:42Z WARN librespot_core::cdn_url] Cannot parse CDN URL expiry timestamp 'verify=1754599962-t7jZk1QTGFjO0hw0QI%2FMZAcRxaiNeic9ikHyQWIrOqw%3D' from 'https://audio-cf.spotifycdn.com/audio/f099e22cb61d328ae93ead693240e08c6f2eda72?verify=1754599962-t7jZk1QTGFjO0hw0QI%2FMZAcRxaiNeic9ikHyQWIrOqw%3D'
[2025-08-06T20:52:43Z INFO librespot_playback::player] (186407 ms) loaded

<!-- gh-comment-id:3161575627 --> @YutongGu commented on GitHub (Aug 6, 2025): This worked for me too! I'm also getting the context errors though. Is that cause for any concern? > [2025-08-06T20:52:41Z INFO librespot_core::spclient] Resolved "guc3-spclient.spotify.com:443" as spclient access point [2025-08-06T20:52:41Z INFO librespot_connect::spirc] active device is <> with session <3mIg4FOj2Cq9oT33mygYn9> [2025-08-06T20:52:42Z WARN librespot_core::dealer] No subscriber for msg.uri: social-connect/v2/broadcast_status_update [2025-08-06T20:52:42Z INFO librespot_connect::spirc] session update: <Ok(NEW_SESSION)> for self, current session_id f2aabefedd15477884b669f06f5d80bf, new session_id b0c30ca6f80d8a74b392b7a7327eb286 [2025-08-06T20:52:42Z ERROR librespot_connect::spirc] could not parse session_update: Invalid state { Unknown enum variant name: `WIFI_BROADCAST_CHANGED` at 1:11 } [2025-08-06T20:52:42Z INFO librespot_playback::player] Loading <Georgia Peaches> with Spotify URI <spotify:track:2jbBVcRxdJpNkgnmsat2gq> [2025-08-06T20:52:42Z WARN librespot_core::cdn_url] Cannot parse CDN URL expiry timestamp 'verify=1754599962-t7jZk1QTGFjO0hw0QI%2FMZAcRxaiNeic9ikHyQWIrOqw%3D' from 'https://audio-cf.spotifycdn.com/audio/f099e22cb61d328ae93ead693240e08c6f2eda72?verify=1754599962-t7jZk1QTGFjO0hw0QI%2FMZAcRxaiNeic9ikHyQWIrOqw%3D' [2025-08-06T20:52:43Z INFO librespot_playback::player] <Georgia Peaches> (186407 ms) loaded
Author
Owner

@b-nobis commented on GitHub (Aug 6, 2025):

Also tested it, but it only works partially. Some songs are played, some not.
ERROR librespot_playback::player] Unable to load encrypted file: Error { kind: Unavailable, error: hyper_util::client::legacy::Error(Connect, Custom { kind: Other, error: ConnectError("dns error", Custom { kind: Uncategorized, error: "failed to lookup address information: Name or service not known" }) }) }

<!-- gh-comment-id:3161618185 --> @b-nobis commented on GitHub (Aug 6, 2025): Also tested it, but it only works partially. Some songs are played, some not. `ERROR librespot_playback::player] Unable to load encrypted file: Error { kind: Unavailable, error: hyper_util::client::legacy::Error(Connect, Custom { kind: Other, error: ConnectError("dns error", Custom { kind: Uncategorized, error: "failed to lookup address information: Name or service not known" }) }) }`
Author
Owner

@kingosticks commented on GitHub (Aug 6, 2025):

Also tested it, but it only works partially. Some songs are played, some not.
ERROR librespot_playback::player] Unable to load encrypted file: Error { kind: Unavailable, error: hyper_util::client::legacy::Error(Connect, Custom { kind: Other, error: ConnectError("dns error", Custom { kind: Uncategorized, error: "failed to lookup address information: Name or service not known" }) }) }

There are currently two known issues, this and Spotify providing bad CDN URLs. The fix at #1524 addresses the latter, ideally you'd want to apply the workaround here on top of #1524.

<!-- gh-comment-id:3161644474 --> @kingosticks commented on GitHub (Aug 6, 2025): > Also tested it, but it only works partially. Some songs are played, some not. > `ERROR librespot_playback::player] Unable to load encrypted file: Error { kind: Unavailable, error: hyper_util::client::legacy::Error(Connect, Custom { kind: Other, error: ConnectError("dns error", Custom { kind: Uncategorized, error: "failed to lookup address information: Name or service not known" }) }) }` There are currently two known issues, this and Spotify providing bad CDN URLs. The fix at #1524 addresses the latter, ideally you'd want to apply the workaround here on top of #1524.
Author
Owner

@b-nobis commented on GitHub (Aug 6, 2025):

With both fixes applied, it works like a charm now. Thank you.

<!-- gh-comment-id:3161721167 --> @b-nobis commented on GitHub (Aug 6, 2025): With both fixes applied, it works like a charm now. Thank you.
Author
Owner

@Diegovsky commented on GitHub (Aug 6, 2025):

@ayosec can you open a PR?

<!-- gh-comment-id:3161865622 --> @Diegovsky commented on GitHub (Aug 6, 2025): @ayosec can you open a PR?
Author
Owner

@ayosec commented on GitHub (Aug 7, 2025):

can you open a PR?

I can send a patch if https://github.com/librespot-org/librespot/issues/1527#issuecomment-3161397815 is the correct solution, though I don't know if the maintainers prefer a better approach (like adding another field to RequestOptions, instead of hard-coding the strings for the URL).

<!-- gh-comment-id:3161989372 --> @ayosec commented on GitHub (Aug 7, 2025): > can you open a PR? I can send a patch if https://github.com/librespot-org/librespot/issues/1527#issuecomment-3161397815 is the correct solution, though I don't know if the maintainers prefer a better approach (like adding another field to `RequestOptions`, instead of hard-coding the strings for the URL).
Author
Owner

@audas commented on GitHub (Aug 7, 2025):

I am a total noob - so I maybe posting in here wrongly. Sorry.

I have rebuilt from latest dev but am getting "ERROR librespot_playback::player] Track should be available, but no alternatives found."

It then skips to next track and repeats this error. I have authenticated etc.

<!-- gh-comment-id:3162683498 --> @audas commented on GitHub (Aug 7, 2025): I am a total noob - so I maybe posting in here wrongly. Sorry. I have rebuilt from latest dev but am getting "ERROR librespot_playback::player] Track should be available, but no alternatives found." It then skips to next track and repeats this error. I have authenticated etc.
Author
Owner

@keks commented on GitHub (Aug 7, 2025):

@audas Since the fix is not merged yet, the changes are not on dev yet. You are seeing the error message described in this issue.

<!-- gh-comment-id:3162809966 --> @keks commented on GitHub (Aug 7, 2025): @audas Since the fix is not merged yet, the changes are not on dev yet. You are seeing the error message described in this issue.
Author
Owner

@roderickvd commented on GitHub (Aug 7, 2025):

can you open a PR?

I can send a patch if https://github.com/librespot-org/librespot/issues/1527#issuecomment-3161397815 is the correct solution, though I don't know if the maintainers prefer a better approach (like adding another field to RequestOptions, instead of hard-coding the strings for the URL).

Looks good to me.

Though I'm on holiday, I can try and find some time to do a release together with @photovoltex.

<!-- gh-comment-id:3162854268 --> @roderickvd commented on GitHub (Aug 7, 2025): > > can you open a PR? > > I can send a patch if https://github.com/librespot-org/librespot/issues/1527#issuecomment-3161397815 is the correct solution, though I don't know if the maintainers prefer a better approach (like adding another field to `RequestOptions`, instead of hard-coding the strings for the URL). Looks good to me. Though I'm on holiday, I can try and find some time to do a release together with @photovoltex.
Author
Owner

@reinob commented on GitHub (Aug 7, 2025):

With both fixes applied, it works like a charm now. Thank you.

could I ask you how to apply those two fixes? my git knowledge amounts to using git pull, but I don't know how to merge a specific commit, if that makes sense at all ¯\(ツ)

<!-- gh-comment-id:3163198575 --> @reinob commented on GitHub (Aug 7, 2025): > With both fixes applied, it works like a charm now. Thank you. could I ask you how to apply those two fixes? my git knowledge amounts to using git pull, but I don't know how to merge a specific commit, if that makes sense at all ¯\\_(ツ)_/¯
Author
Owner

@kingosticks commented on GitHub (Aug 7, 2025):

If you just want to get it working, grab someone's legit fork with the two fixes already applied. This one from @tdgroot looks fine:

git clone -b 20250807_fixes https://github.com/tdgroot/librespot.git 20250807_fixes
cd 20250807_fixes
cargo build blah-blah-whatever-options-you-use
<!-- gh-comment-id:3163338792 --> @kingosticks commented on GitHub (Aug 7, 2025): If you just want to get it working, grab someone's legit fork with the two fixes already applied. This one from @tdgroot looks fine: ``` git clone -b 20250807_fixes https://github.com/tdgroot/librespot.git 20250807_fixes cd 20250807_fixes cargo build blah-blah-whatever-options-you-use ```
Author
Owner

@pienczyk commented on GitHub (Aug 7, 2025):

If you just want to get it working, grab someone's legit fork with the two fixes already applied. This one from @tdgroot looks fine:

git clone -b 20250807_fixes https://github.com/tdgroot/librespot.git 20250807_fixes
cd 20250807_fixes
cargo build blah-blah-whatever-options-you-use

I used the mentioned fork and branch and I can confirm that it is a working solution.

P.S. If someone wants an image (ALSA BACKEND ONLY) - https://hub.docker.com/repository/docker/pienczyk/dockerized-librespot/general

<!-- gh-comment-id:3164054096 --> @pienczyk commented on GitHub (Aug 7, 2025): > If you just want to get it working, grab someone's legit fork with the two fixes already applied. This one from [@tdgroot](https://github.com/tdgroot) looks fine: > > ``` > git clone -b 20250807_fixes https://github.com/tdgroot/librespot.git 20250807_fixes > cd 20250807_fixes > cargo build blah-blah-whatever-options-you-use > ``` I used the mentioned fork and branch and I can confirm that it is a working solution. P.S. If someone wants an image (ALSA BACKEND ONLY) - https://hub.docker.com/repository/docker/pienczyk/dockerized-librespot/general
Author
Owner

@inox9 commented on GitHub (Aug 7, 2025):

If you just want to get it working, grab someone's legit fork with the two fixes already applied. This one from @tdgroot looks fine:

git clone -b 20250807_fixes https://github.com/tdgroot/librespot.git 20250807_fixes
cd 20250807_fixes
cargo build blah-blah-whatever-options-you-use

It worked fine for 1-2 hours.
But now here it goes again:

Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) }
<!-- gh-comment-id:3164299235 --> @inox9 commented on GitHub (Aug 7, 2025): > If you just want to get it working, grab someone's legit fork with the two fixes already applied. This one from [@tdgroot](https://github.com/tdgroot) looks fine: > > ``` > git clone -b 20250807_fixes https://github.com/tdgroot/librespot.git 20250807_fixes > cd 20250807_fixes > cargo build blah-blah-whatever-options-you-use > ``` It worked fine for 1-2 hours. But now here it goes again: ``` Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) } ```
Author
Owner

@vulkoingim commented on GitHub (Aug 7, 2025):

FWIW: after applying https://github.com/librespot-org/librespot/issues/1527#issuecomment-3161397815 and https://github.com/librespot-org/librespot/pull/1524 it worked for a bit, and now it's back at it:

logs
Aug 07 14:49:11 hifiberry librespot[3780422]: [2025-08-07T13:49:11Z INFO  librespot_core::spclient] Resolved "gew1-spclient.spotify.com:443" as spclient access point
Aug 07 14:49:11 hifiberry librespot[3780422]: [2025-08-07T13:49:11Z INFO  librespot_connect::spirc] active device is <d49ba1683c82d45da3ac11179ff8ab4fec5c8b66> with session <1kpoU9xqsu6kNlPWYjALnn>
Aug 07 14:49:11 hifiberry librespot[3780422]: [2025-08-07T13:49:11Z WARN  librespot_connect::state::context] couldn't load context info because: context is not available. type: Default
Aug 07 14:49:11 hifiberry librespot[3780422]: [2025-08-07T13:49:11Z INFO  librespot_connect::spirc] session update: <Ok(NEW_SESSION)> for self, current session_id 3c46d1a0c2344a729519fbe6f7887ddb, new session_id b77689488b84ada1099304e50fdf0d7c
Aug 07 14:49:12 hifiberry librespot[3780422]: [2025-08-07T13:49:12Z ERROR librespot_playback::player] Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) }
Aug 07 14:49:12 hifiberry librespot[3780422]: [2025-08-07T13:49:12Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:0WtPZoKwG9dBYQPVvTDa1K")>: ()
Aug 07 14:49:12 hifiberry librespot[3780422]: [2025-08-07T13:49:12Z ERROR librespot_connect::spirc] could not dispatch player event: Invalid state { context is not available. type: Default }
Aug 07 14:49:12 hifiberry librespot[3780422]: [2025-08-07T13:49:12Z INFO  librespot_core::spclient] Resolved "guc3-spclient.spotify.com:443" as spclient access point
Aug 07 14:49:41 hifiberry librespot[3780422]: [2025-08-07T13:49:41Z INFO  librespot_core::spclient] Resolved "gue1-spclient.spotify.com:443" as spclient access point
Aug 07 14:49:41 hifiberry librespot[3780422]: [2025-08-07T13:49:41Z ERROR librespot_playback::player] Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) }
Aug 07 14:49:41 hifiberry librespot[3780422]: [2025-08-07T13:49:41Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:2wI1nLb5HFZMQgXZ7lrn2S")>: ()
Aug 07 14:49:41 hifiberry librespot[3780422]: [2025-08-07T13:49:41Z ERROR librespot_playback::player] Track should be available, but no alternatives found.
Aug 07 14:49:41 hifiberry librespot[3780422]: [2025-08-07T13:49:41Z WARN  librespot_playback::player] <spotify:track:4LFOFXPYe8RnvL7thj4ByB> is not available
<!-- gh-comment-id:3164300510 --> @vulkoingim commented on GitHub (Aug 7, 2025): FWIW: after applying https://github.com/librespot-org/librespot/issues/1527#issuecomment-3161397815 and https://github.com/librespot-org/librespot/pull/1524 it worked for a bit, and now it's back at it: <details> <summary>logs</summary> ```journald Aug 07 14:49:11 hifiberry librespot[3780422]: [2025-08-07T13:49:11Z INFO librespot_core::spclient] Resolved "gew1-spclient.spotify.com:443" as spclient access point Aug 07 14:49:11 hifiberry librespot[3780422]: [2025-08-07T13:49:11Z INFO librespot_connect::spirc] active device is <d49ba1683c82d45da3ac11179ff8ab4fec5c8b66> with session <1kpoU9xqsu6kNlPWYjALnn> Aug 07 14:49:11 hifiberry librespot[3780422]: [2025-08-07T13:49:11Z WARN librespot_connect::state::context] couldn't load context info because: context is not available. type: Default Aug 07 14:49:11 hifiberry librespot[3780422]: [2025-08-07T13:49:11Z INFO librespot_connect::spirc] session update: <Ok(NEW_SESSION)> for self, current session_id 3c46d1a0c2344a729519fbe6f7887ddb, new session_id b77689488b84ada1099304e50fdf0d7c Aug 07 14:49:12 hifiberry librespot[3780422]: [2025-08-07T13:49:12Z ERROR librespot_playback::player] Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) } Aug 07 14:49:12 hifiberry librespot[3780422]: [2025-08-07T13:49:12Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:0WtPZoKwG9dBYQPVvTDa1K")>: () Aug 07 14:49:12 hifiberry librespot[3780422]: [2025-08-07T13:49:12Z ERROR librespot_connect::spirc] could not dispatch player event: Invalid state { context is not available. type: Default } Aug 07 14:49:12 hifiberry librespot[3780422]: [2025-08-07T13:49:12Z INFO librespot_core::spclient] Resolved "guc3-spclient.spotify.com:443" as spclient access point Aug 07 14:49:41 hifiberry librespot[3780422]: [2025-08-07T13:49:41Z INFO librespot_core::spclient] Resolved "gue1-spclient.spotify.com:443" as spclient access point Aug 07 14:49:41 hifiberry librespot[3780422]: [2025-08-07T13:49:41Z ERROR librespot_playback::player] Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) } Aug 07 14:49:41 hifiberry librespot[3780422]: [2025-08-07T13:49:41Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:2wI1nLb5HFZMQgXZ7lrn2S")>: () Aug 07 14:49:41 hifiberry librespot[3780422]: [2025-08-07T13:49:41Z ERROR librespot_playback::player] Track should be available, but no alternatives found. Aug 07 14:49:41 hifiberry librespot[3780422]: [2025-08-07T13:49:41Z WARN librespot_playback::player] <spotify:track:4LFOFXPYe8RnvL7thj4ByB> is not available ``` </details>
Author
Owner

@keks commented on GitHub (Aug 7, 2025):

Looks like go-librespot is also affected https://github.com/devgianlu/go-librespot/issues/189#issuecomment-3164282628

<!-- gh-comment-id:3164323455 --> @keks commented on GitHub (Aug 7, 2025): Looks like go-librespot is also affected https://github.com/devgianlu/go-librespot/issues/189#issuecomment-3164282628
Author
Owner

@roderickvd commented on GitHub (Aug 7, 2025):

Well, that saves me from pulling out my laptop now on the camping 😁 I'll be around for review and release when y'all have figured it out.

This could also be a temporary error while Spotify is trying to fix whatever they broke. Wouldn't be the first time either.

<!-- gh-comment-id:3164459577 --> @roderickvd commented on GitHub (Aug 7, 2025): Well, that saves me from pulling out my laptop now on the camping 😁 I'll be around for review and release when y'all have figured it out. This could also be a temporary error while Spotify is trying to fix whatever they broke. Wouldn't be the first time either.
Author
Owner

@Bobronium commented on GitHub (Aug 7, 2025):

For Raspotify users on Raspberry Pi and other arm64 platforms

You can fix the issue by running this (see the release):

tag=0.46.1-with-system-mpris-and-updated-api && \
package=raspotify_$tag.librespot.v0.6.0-with-system-mpris-and-updated-api-c2ae66f_arm64.deb && \
curl -fSLO "https://github.com/Bobronium/raspotify/releases/download/$tag/$package" && \
sudo dpkg -i $package && \
rm -f $package && \
sudo systemctl restart raspotify

This release uses patch from the https://github.com/librespot-org/librespot/issues/1527#issuecomment-3161397815.

As a bonus, after installation you will be able to control librespot playback via cli
$ sudo apt install playerctl
$ playerctl play-pause
$ playerctl status
Playing
$ playerctl metadata
librespot mpris.artUrl              https://i.scdn.co/image/ab67616d0000b273897cd4eeff3174110aa6230b
librespot mpris:length              243011000
librespot mpris:trackid             '/org/librespot/track/6mJ5uZ33r2y1TRrax79k5p'
librespot xesam:album               The Social Network
librespot xesam:albumArtist         Trent Reznor and Atticus Ross
librespot xesam:artist              Trent Reznor and Atticus Ross
librespot xesam:contentCreated      2010-09-28
librespot xesam:discNumber          1
librespot xesam:title               3:14 Every Night
librespot xesam:trackNumber         7

Creds for this to https://github.com/librespot-org/librespot/pull/1341

<!-- gh-comment-id:3164571270 --> @Bobronium commented on GitHub (Aug 7, 2025): ### For Raspotify users on Raspberry Pi and other arm64 platforms You can fix the issue by running this (see the [release](https://github.com/Bobronium/raspotify/releases/tag/0.46.1-with-system-mpris-and-updated-api)): ```bash tag=0.46.1-with-system-mpris-and-updated-api && \ package=raspotify_$tag.librespot.v0.6.0-with-system-mpris-and-updated-api-c2ae66f_arm64.deb && \ curl -fSLO "https://github.com/Bobronium/raspotify/releases/download/$tag/$package" && \ sudo dpkg -i $package && \ rm -f $package && \ sudo systemctl restart raspotify ``` This release uses patch from the https://github.com/librespot-org/librespot/issues/1527#issuecomment-3161397815. <details><summary>As a bonus, after installation you will be able to control librespot playback via cli</summary> ```bash $ sudo apt install playerctl ``` ```bash $ playerctl play-pause ``` ```bash $ playerctl status Playing ``` ```bash $ playerctl metadata librespot mpris.artUrl https://i.scdn.co/image/ab67616d0000b273897cd4eeff3174110aa6230b librespot mpris:length 243011000 librespot mpris:trackid '/org/librespot/track/6mJ5uZ33r2y1TRrax79k5p' librespot xesam:album The Social Network librespot xesam:albumArtist Trent Reznor and Atticus Ross librespot xesam:artist Trent Reznor and Atticus Ross librespot xesam:contentCreated 2010-09-28 librespot xesam:discNumber 1 librespot xesam:title 3:14 Every Night librespot xesam:trackNumber 7 ``` Creds for this to https://github.com/librespot-org/librespot/pull/1341 </details>
Author
Owner

@blackketter commented on GitHub (Aug 7, 2025):

For Raspotify users on Raspberry Pi and other arm64 platforms

You can fix the issue by running this (see the release):

tag=0.46.1-with-system-mpris-and-updated-api &&
package=raspotify_$tag.librespot.v0.6.0-with-system-mpris-and-updated-api-c2ae66f_arm64.deb &&
curl -fSLO "https://github.com/Bobronium/raspotify/releases/download/$tag/$package" &&
sudo dpkg -i $package &&
rm -f $package &&
sudo systemctl restart raspotify
This release uses patch from the #1527 (comment).

As a bonus, after installation you will be able to control librespot playback via cli

Worked like a charm, thanks @Bobronium !

<!-- gh-comment-id:3164620536 --> @blackketter commented on GitHub (Aug 7, 2025): > ### For Raspotify users on Raspberry Pi and other arm64 platforms > > You can fix the issue by running this (see the [release](https://github.com/Bobronium/raspotify/releases/tag/0.46.1-with-system-mpris-and-updated-api)): > > tag=0.46.1-with-system-mpris-and-updated-api && \ > package=raspotify_$tag.librespot.v0.6.0-with-system-mpris-and-updated-api-c2ae66f_arm64.deb && \ > curl -fSLO "https://github.com/Bobronium/raspotify/releases/download/$tag/$package" && \ > sudo dpkg -i $package && \ > rm -f $package && \ > sudo systemctl restart raspotify > This release uses patch from the [#1527 (comment)](https://github.com/librespot-org/librespot/issues/1527#issuecomment-3161397815). > > As a bonus, after installation you will be able to control librespot playback via cli Worked like a charm, thanks @Bobronium !
Author
Owner

@emc02 commented on GitHub (Aug 7, 2025):

is there a chance to get a new release with the fix or should I try the solution above?

<!-- gh-comment-id:3164849718 --> @emc02 commented on GitHub (Aug 7, 2025): is there a chance to get a new release with the fix or should I try the solution above?
Author
Owner

@ndesgranges commented on GitHub (Aug 7, 2025):

https://github.com/devgianlu/go-librespot/issues/189 mentions it's working again with the fix.

Spotify devs doing funny things

<!-- gh-comment-id:3164919051 --> @ndesgranges commented on GitHub (Aug 7, 2025): https://github.com/devgianlu/go-librespot/issues/189 mentions it's working again with the fix. Spotify devs doing funny things
Author
Owner

@ayosec commented on GitHub (Aug 7, 2025):

In https://downdetector.com/status/spotify/ many people are reporting problems with Spotify, so it looks like the problem is not specific to librespot (that chart is usually close to zero, when the problem is specific to librespot).

We should wait a couple of days before submitting a PR. It is possible that we don't need any change at all, if this is a temporary issue in Spotify side.

<!-- gh-comment-id:3164980093 --> @ayosec commented on GitHub (Aug 7, 2025): In <https://downdetector.com/status/spotify/> many people are reporting problems with Spotify, so it looks like the problem is not specific to librespot (that chart is usually close to zero, when the problem is specific to librespot). We should wait a couple of days before submitting a PR. It is possible that we don't need any change at all, if this is a temporary issue in Spotify side.
Author
Owner

@bsergei commented on GitHub (Aug 8, 2025):

I am on Moode Audio player. Added to /etc/hosts:
0.0.0.0 apresolve.spotify.com

Then I rebooted, and librespot started working properly.

This workaround was also mentioned here (please credit author of this workaround if it helps to you):
https://moodeaudio.org/forum/showthread.php?tid=7915&pid=65696#pid65696

<!-- gh-comment-id:3167094158 --> @bsergei commented on GitHub (Aug 8, 2025): I am on Moode Audio player. Added to /etc/hosts: `0.0.0.0 apresolve.spotify.com` Then I rebooted, and librespot started working properly. This workaround was also mentioned here (please credit author of this workaround if it helps to you): https://moodeaudio.org/forum/showthread.php?tid=7915&pid=65696#pid65696
Author
Owner

@emc02 commented on GitHub (Aug 8, 2025):

I am on Moode Audio player. Added to /etc/hosts: 0.0.0.0 apresolve.spotify.com

That worked for me too!

<!-- gh-comment-id:3167124542 --> @emc02 commented on GitHub (Aug 8, 2025): > I am on Moode Audio player. Added to /etc/hosts: `0.0.0.0 apresolve.spotify.com` > That worked for me too!
Author
Owner

@lgidon commented on GitHub (Aug 8, 2025):

As per @bsergei's suggestion, I looked at the workaround one post earlier:
"A temporary fix that seems to be working for me is blocking "apresolve.spotify.com" using hosts file or my DNS server and rebooting Moode Audio player."

I'm not running Moode Audio, but I tried blocking apresolve.spotify.com in PiHole and now it seems to be working.

The logs are showing some warnings though:

[2025-08-08T09:03:48Z WARN  librespot_core::apresolve] Failed to resolve all access points, using fallbacks

[2025-08-08T09:03:48Z WARN  librespot_core::apresolve] Resolve access points error: Service unavailable { client error (Connect) }

[2025-08-08T09:03:49Z WARN  librespot_core::apresolve] Failed to resolve all access points, using fallbacks

[2025-08-08T09:03:49Z WARN  librespot_core::apresolve] Resolve access points error: Service unavailable { client error (Connect) }

[2025-08-08T09:03:49Z WARN  librespot_core::apresolve] Failed to resolve all access points, using fallbacks

[2025-08-08T09:03:49Z WARN  librespot_core::apresolve] Resolve access points error: Service unavailable { client error (Connect) }

[2025-08-08T09:03:50Z WARN  librespot_core::cdn_url] Cannot parse CDN URL expiry timestamp 'verify=17540230-c2BMc9jWyylPFRZpryCAVc1qxIgAiz24JjBKLM9EU%3D' from 'https://audio-cf.spotifycdn.com/audio/ed3....'
<!-- gh-comment-id:3167127532 --> @lgidon commented on GitHub (Aug 8, 2025): As per @bsergei's suggestion, I looked at the workaround one post earlier: "A temporary fix that seems to be working for me is blocking "apresolve.spotify.com" using hosts file or my DNS server and rebooting Moode Audio player." I'm not running Moode Audio, but I tried blocking apresolve.spotify.com in PiHole and now it seems to be working. The logs are showing some warnings though: ``` [2025-08-08T09:03:48Z WARN librespot_core::apresolve] Failed to resolve all access points, using fallbacks [2025-08-08T09:03:48Z WARN librespot_core::apresolve] Resolve access points error: Service unavailable { client error (Connect) } [2025-08-08T09:03:49Z WARN librespot_core::apresolve] Failed to resolve all access points, using fallbacks [2025-08-08T09:03:49Z WARN librespot_core::apresolve] Resolve access points error: Service unavailable { client error (Connect) } [2025-08-08T09:03:49Z WARN librespot_core::apresolve] Failed to resolve all access points, using fallbacks [2025-08-08T09:03:49Z WARN librespot_core::apresolve] Resolve access points error: Service unavailable { client error (Connect) } [2025-08-08T09:03:50Z WARN librespot_core::cdn_url] Cannot parse CDN URL expiry timestamp 'verify=17540230-c2BMc9jWyylPFRZpryCAVc1qxIgAiz24JjBKLM9EU%3D' from 'https://audio-cf.spotifycdn.com/audio/ed3....' ```
Author
Owner

@siege801 commented on GitHub (Aug 8, 2025):

Adding my findings - running via Raspotify on 2 RPi 4's.

Initially observing this error through journalctl for each attempted track.

Aug 08 20:46:46 RPI01.local.lan librespot[4933]: [2025-08-08T10:46:46Z ERROR librespot_playback::player] Track should be available, but no alternatives found.
Aug 08 20:46:46 RPI01.local.lan librespot[4933]: [2025-08-08T10:46:46Z WARN  librespot_playback::player] <spotify:track:6ieH1XZdhwW54q94eqJg18> is not available

I added 0.0.0.0 apresolve.spotify.com to /etc/hosts and rebooted, and then instead observed the following through journalctl

Aug 08 20:59:38 RPI01.local.lan librespot[768]: [2025-08-08T10:59:38Z WARN  librespot_core::apresolve] Failed to resolve all access points, using fallbacks
Aug 08 20:59:38 RPI01.local.lan librespot[768]: [2025-08-08T10:59:38Z WARN  librespot_core::apresolve] Resolve access points error: Service unavailable { client error (Connect) }
Aug 08 20:59:49 RPI01.local.lan librespot[768]: [2025-08-08T10:59:49Z WARN  librespot_playback::audio_backend::alsa] Error writing from AlsaSink buffer to PCM, trying to recover, ALSA function 'snd_pcm_writei' failed with error
 'Broken pipe (32)'           
Aug 08 20:59:49 RPI01.local.lan librespot[768]: ALSA lib pcm.c:8568:(snd_pcm_recover) underrun occurred

So I removed the line from /etc/hosts and tried @Bobronium 's solution posted above (here for reference):

For Raspotify users on Raspberry Pi and other arm64 platforms

You can fix the issue by running this (see the release):

tag=0.46.1-with-system-mpris-and-updated-api &&
package=raspotify_$tag.librespot.v0.6.0-with-system-mpris-and-updated-api-c2ae66f_arm64.deb &&
curl -fSLO "https://github.com/Bobronium/raspotify/releases/download/$tag/$package" &&
sudo dpkg -i $package &&
rm -f $package &&
sudo systemctl restart raspotify
This release uses patch from the #1527 (comment).

As a bonus, after installation you will be able to control librespot playback via cli

This worked for me and both Pi's are working again.

Many thanks to all involved and for these great projects.

<!-- gh-comment-id:3167524954 --> @siege801 commented on GitHub (Aug 8, 2025): Adding my findings - running via Raspotify on 2 RPi 4's. Initially observing this error through `journalctl` for each attempted track. ``` Aug 08 20:46:46 RPI01.local.lan librespot[4933]: [2025-08-08T10:46:46Z ERROR librespot_playback::player] Track should be available, but no alternatives found. Aug 08 20:46:46 RPI01.local.lan librespot[4933]: [2025-08-08T10:46:46Z WARN librespot_playback::player] <spotify:track:6ieH1XZdhwW54q94eqJg18> is not available ``` I added `0.0.0.0 apresolve.spotify.com` to `/etc/hosts` and rebooted, and then instead observed the following through `journalctl` ``` Aug 08 20:59:38 RPI01.local.lan librespot[768]: [2025-08-08T10:59:38Z WARN librespot_core::apresolve] Failed to resolve all access points, using fallbacks Aug 08 20:59:38 RPI01.local.lan librespot[768]: [2025-08-08T10:59:38Z WARN librespot_core::apresolve] Resolve access points error: Service unavailable { client error (Connect) } Aug 08 20:59:49 RPI01.local.lan librespot[768]: [2025-08-08T10:59:49Z WARN librespot_playback::audio_backend::alsa] Error writing from AlsaSink buffer to PCM, trying to recover, ALSA function 'snd_pcm_writei' failed with error 'Broken pipe (32)' Aug 08 20:59:49 RPI01.local.lan librespot[768]: ALSA lib pcm.c:8568:(snd_pcm_recover) underrun occurred ``` So I removed the line from `/etc/hosts` and tried @Bobronium 's solution posted above (here for reference): > ### For Raspotify users on Raspberry Pi and other arm64 platforms > You can fix the issue by running this (see the [release](https://github.com/Bobronium/raspotify/releases/tag/0.46.1-with-system-mpris-and-updated-api)): > > tag=0.46.1-with-system-mpris-and-updated-api && \ > package=raspotify_$tag.librespot.v0.6.0-with-system-mpris-and-updated-api-c2ae66f_arm64.deb && \ > curl -fSLO "https://github.com/Bobronium/raspotify/releases/download/$tag/$package" && \ > sudo dpkg -i $package && \ > rm -f $package && \ > sudo systemctl restart raspotify > This release uses patch from the [#1527 (comment)](https://github.com/librespot-org/librespot/issues/1527#issuecomment-3161397815). > > As a bonus, after installation you will be able to control librespot playback via cli This worked for me and both Pi's are working again. Many thanks to all involved and for these great projects.
Author
Owner

@SailingSailing commented on GitHub (Aug 8, 2025):

Adding 0.0.0.0 apresolve.spotify.com to /etc/hosts works for me :)

<!-- gh-comment-id:3168055538 --> @SailingSailing commented on GitHub (Aug 8, 2025): Adding `0.0.0.0 apresolve.spotify.com` to /etc/hosts works for me :)
Author
Owner

@shaylavi commented on GitHub (Aug 8, 2025):

I rarely find comments on GitHub that applies to me lol thank god this one does! blocking apresolve.spotify.com helped me as well! yaay.. surprisingly, the restart was also a required step!

<!-- gh-comment-id:3168118221 --> @shaylavi commented on GitHub (Aug 8, 2025): I rarely find comments on GitHub that applies to me lol thank god this one does! blocking apresolve.spotify.com helped me as well! yaay.. surprisingly, the restart was also a required step!
Author
Owner

@parky118 commented on GitHub (Aug 8, 2025):

Yes! It works for me too! Thank you!

<!-- gh-comment-id:3168201929 --> @parky118 commented on GitHub (Aug 8, 2025): Yes! It works for me too! Thank you!
Author
Owner

@ascomycota commented on GitHub (Aug 8, 2025):

Wow. What a simple solution :) It also works here.

Maybe this specific domain should be checked and skipped for communicating inside the raspotify source in the next release? So we all can remove this dirty hack hosts entry again :)

<!-- gh-comment-id:3168301323 --> @ascomycota commented on GitHub (Aug 8, 2025): Wow. What a simple solution :) It also works here. Maybe this specific domain should be checked and skipped for communicating inside the raspotify source in the next release? So we all can remove this dirty hack hosts entry again :)
Author
Owner

@michaelcadilhac commented on GitHub (Aug 8, 2025):

Been running https://github.com/tdgroot/librespot.git 20250807_fixes for a day now, flawless. No warnings.

Edit: 48 hours now. No problems.

<!-- gh-comment-id:3168444013 --> @michaelcadilhac commented on GitHub (Aug 8, 2025): Been running https://github.com/tdgroot/librespot.git 20250807_fixes for a day now, flawless. No warnings. Edit: 48 hours now. No problems.
Author
Owner

@salmanmohammadi commented on GitHub (Aug 8, 2025):

🐍 Raspberry Pi Spotify Connect: Debugging Guide (August 2025)

Is this straight out of an LLM? I think the previous comments were sufficiently helpful for diagnosing and solving the issue.

<!-- gh-comment-id:3169259705 --> @salmanmohammadi commented on GitHub (Aug 8, 2025): > 🐍 Raspberry Pi Spotify Connect: Debugging Guide (August 2025) Is this straight out of an LLM? I think the previous comments were sufficiently helpful for diagnosing and solving the issue.
Author
Owner

@roderickvd commented on GitHub (Aug 9, 2025):

👮 I’ve hidden the long and redundant comment generated by @tyler-morales and his LLM. Please do not spam the repo which such posts. Thanks.

<!-- gh-comment-id:3170467235 --> @roderickvd commented on GitHub (Aug 9, 2025): 👮 I’ve hidden the long and redundant comment generated by @tyler-morales and his LLM. Please do not spam the repo which such posts. Thanks.
Author
Owner

@frodeseverin commented on GitHub (Aug 9, 2025):

Without looking at the code at all one ting comes to mind.

In the situation of receiving a HTTP 500 or similar error from a server like in this situation, it would be prudent to add logic for the librespot client to use one of the known good fallback servers, perhaps even in a round-robin fashion, if needed, and then fail only when the list of known fallback servers is exhausted.

This will obviously mask the presence of the error, so there is also need for some ping-back mechanism to alert the developers of the problem. Needles to say such automated ping-back mechanisms should be on an opt-in and anonymous basis. Perhaps by way of a compile-time parameter or runtime switch.

This approach would make for a more robust client, while enabling the developers to do proactive debugging.

<!-- gh-comment-id:3170492675 --> @frodeseverin commented on GitHub (Aug 9, 2025): Without looking at the code at all one ting comes to mind. In the situation of receiving a HTTP 500 or similar error from a server like in this situation, it would be prudent to add logic for the librespot client to use one of the known good fallback servers, perhaps even in a round-robin fashion, if needed, and then fail only when the list of known fallback servers is exhausted. This will obviously mask the presence of the error, so there is also need for some ping-back mechanism to alert the developers of the problem. Needles to say such automated ping-back mechanisms should be on an opt-in and anonymous basis. Perhaps by way of a compile-time parameter or runtime switch. This approach would make for a more robust client, while enabling the developers to do proactive debugging.
Author
Owner

@sbt29 commented on GitHub (Aug 9, 2025):

the 0.0.0.0 apresolve.spotify.com didnt work for me. It creates a new problem where the connection to the speaker / audio device drops as soon as I play a track. I have to then reboot the server to get it back up again. deleting 0.0.0.0 apresolve.spotify.com from etc/hosts reverts it back to the original problem, where the connection to the speaker stays and track's playing but without any sound.

<!-- gh-comment-id:3170502042 --> @sbt29 commented on GitHub (Aug 9, 2025): the 0.0.0.0 apresolve.spotify.com didnt work for me. It creates a new problem where the connection to the speaker / audio device drops as soon as I play a track. I have to then reboot the server to get it back up again. deleting 0.0.0.0 apresolve.spotify.com from etc/hosts reverts it back to the original problem, where the connection to the speaker stays and track's playing but without any sound.
Author
Owner

@Enurian commented on GitHub (Aug 9, 2025):

This seems to be connected to user accounts somehow. I was baffled that with my account, my raspotify client has the problem here described, but with my partners account (the accounts are even connected through spotify duo) there was no problem on the exact same playback device. The "good" account needs to initiate the session, then it´s fine.

The hosts edit did not work / lead to the "Unable to load encrypted file" errors already mentioned and maybe related to another problem.

<!-- gh-comment-id:3170507900 --> @Enurian commented on GitHub (Aug 9, 2025): This seems to be connected to user accounts somehow. I was baffled that with my account, my raspotify client has the problem here described, but with my partners account (the accounts are even connected through spotify duo) there was no problem on the exact same playback device. The "good" account needs to initiate the session, then it´s fine. The hosts edit did not work / lead to the "Unable to load encrypted file" errors already mentioned and maybe related to another problem.
Author
Owner

@kingosticks commented on GitHub (Aug 9, 2025):

Without looking at the code at all one ting comes to mind.

In the situation of receiving a HTTP 500 or similar error from a server like in this situation, it would be prudent to add logic for the librespot client to use one of the known good fallback servers, perhaps even in a round-robin fashion, if needed, and then fail only when the list of known fallback servers is exhausted.

This will obviously mask the presence of the error, so there is also need for some ping-back mechanism to alert the developers of the problem. Needles to say such automated ping-back mechanisms should be on an opt-in and anonymous basis. Perhaps by way of a compile-time parameter or runtime switch.

This approach would make for a more robust client, while enabling the developers to do proactive debugging.

Is this LLM spam too?

<!-- gh-comment-id:3170557279 --> @kingosticks commented on GitHub (Aug 9, 2025): > Without looking at the code at all one ting comes to mind. > > In the situation of receiving a HTTP 500 or similar error from a server like in this situation, it would be prudent to add logic for the librespot client to use one of the known good fallback servers, perhaps even in a round-robin fashion, if needed, and then fail only when the list of known fallback servers is exhausted. > > This will obviously mask the presence of the error, so there is also need for some ping-back mechanism to alert the developers of the problem. Needles to say such automated ping-back mechanisms should be on an opt-in and anonymous basis. Perhaps by way of a compile-time parameter or runtime switch. > > This approach would make for a more robust client, while enabling the developers to do proactive debugging. Is this LLM spam too?
Author
Owner

@joostvhts commented on GitHub (Aug 9, 2025):

Without looking at the code at all one ting comes to mind.
In the situation of receiving a HTTP 500 or similar error from a server like in this situation, it would be prudent to add logic for the librespot client to use one of the known good fallback servers, perhaps even in a round-robin fashion, if needed, and then fail only when the list of known fallback servers is exhausted.
This will obviously mask the presence of the error, so there is also need for some ping-back mechanism to alert the developers of the problem. Needles to say such automated ping-back mechanisms should be on an opt-in and anonymous basis. Perhaps by way of a compile-time parameter or runtime switch.
This approach would make for a more robust client, while enabling the developers to do proactive debugging.

Is this LLM spam too?

idk, four paragraphs, not the usual three :p

<!-- gh-comment-id:3170557714 --> @joostvhts commented on GitHub (Aug 9, 2025): > > Without looking at the code at all one ting comes to mind. > > In the situation of receiving a HTTP 500 or similar error from a server like in this situation, it would be prudent to add logic for the librespot client to use one of the known good fallback servers, perhaps even in a round-robin fashion, if needed, and then fail only when the list of known fallback servers is exhausted. > > This will obviously mask the presence of the error, so there is also need for some ping-back mechanism to alert the developers of the problem. Needles to say such automated ping-back mechanisms should be on an opt-in and anonymous basis. Perhaps by way of a compile-time parameter or runtime switch. > > This approach would make for a more robust client, while enabling the developers to do proactive debugging. > > Is this LLM spam too? idk, four paragraphs, not the usual three :p
Author
Owner

@martidu4 commented on GitHub (Aug 9, 2025):

Adding 0.0.0.0 apresolve.spotify.com to /etc/hosts works for me :)

Ty man it works for me too.

<!-- gh-comment-id:3170570345 --> @martidu4 commented on GitHub (Aug 9, 2025): > Adding `0.0.0.0 apresolve.spotify.com` to /etc/hosts works for me :) Ty man it works for me too.
Author
Owner

@frodeseverin commented on GitHub (Aug 9, 2025):

This approach would make for a more robust client, while enabling the developers to do proactive debugging.

Is this LLM spam too?

Nope. I am a real human being. Just a humble user of librespot.
Sorry for not contributing directly by writing code.

Anyhow, issuing

$ sudo echo "0.0.0.0 apresolve.spotify.com" >> /etc/hosts
$ systemctl --user stop librespot.user
$ systemctl --user start librespot.user

worked around the present issue on my Debian system.
No need to restart anything else

<!-- gh-comment-id:3171902054 --> @frodeseverin commented on GitHub (Aug 9, 2025): > > This approach would make for a more robust client, while enabling the developers to do proactive debugging. > > Is this LLM spam too? Nope. I am a real human being. Just a humble user of librespot. Sorry for not contributing directly by writing code. Anyhow, issuing ``` $ sudo echo "0.0.0.0 apresolve.spotify.com" >> /etc/hosts $ systemctl --user stop librespot.user $ systemctl --user start librespot.user ``` worked around the present issue on my Debian system. No need to restart anything else
Author
Owner

@sbt29 commented on GitHub (Aug 9, 2025):

is

Without looking at the code at all one ting comes to mind.
In the situation of receiving a HTTP 500 or similar error from a server like in this situation, it would be prudent to add logic for the librespot client to use one of the known good fallback servers, perhaps even in a round-robin fashion, if needed, and then fail only when the list of known fallback servers is exhausted.
This will obviously mask the presence of the error, so there is also need for some ping-back mechanism to alert the developers of the problem. Needles to say such automated ping-back mechanisms should be on an opt-in and anonymous basis. Perhaps by way of a compile-time parameter or runtime switch.
This approach would make for a more robust client, while enabling the developers to do proactive debugging.

Is this LLM spam too?

llm has better things to than reporting a Spotify connect problem here on github i suppose, but who knows, all sorts of things happen today. For example, I use Audiolinux + Raspotify (instead of Spotify connect)

<!-- gh-comment-id:3172071045 --> @sbt29 commented on GitHub (Aug 9, 2025): is > > Without looking at the code at all one ting comes to mind. > > In the situation of receiving a HTTP 500 or similar error from a server like in this situation, it would be prudent to add logic for the librespot client to use one of the known good fallback servers, perhaps even in a round-robin fashion, if needed, and then fail only when the list of known fallback servers is exhausted. > > This will obviously mask the presence of the error, so there is also need for some ping-back mechanism to alert the developers of the problem. Needles to say such automated ping-back mechanisms should be on an opt-in and anonymous basis. Perhaps by way of a compile-time parameter or runtime switch. > > This approach would make for a more robust client, while enabling the developers to do proactive debugging. > > Is this LLM spam too? llm has better things to than reporting a Spotify connect problem here on github i suppose, but who knows, all sorts of things happen today. For example, I use Audiolinux + Raspotify (instead of Spotify connect)
Author
Owner

@Auburok commented on GitHub (Aug 10, 2025):

I am on Moode Audio player. Added to /etc/hosts: 0.0.0.0 apresolve.spotify.com

Then I rebooted, and librespot started working properly.

This workaround was also mentioned here (please credit author of this workaround if it helps to you): https://moodeaudio.org/forum/showthread.php?tid=7915&pid=65696#pid65696

Worked for me on Raspotify—thankful for a simple workaround. Thanks for sharing.

<!-- gh-comment-id:3172274635 --> @Auburok commented on GitHub (Aug 10, 2025): > I am on Moode Audio player. Added to /etc/hosts: `0.0.0.0 apresolve.spotify.com` > > Then I rebooted, and librespot started working properly. > > This workaround was also mentioned here (please credit author of this workaround if it helps to you): https://moodeaudio.org/forum/showthread.php?tid=7915&pid=65696#pid65696 Worked for me on Raspotify—thankful for a simple workaround. Thanks for sharing.
Author
Owner

@davids777 commented on GitHub (Aug 10, 2025):

Unsurprisingly, a host override in unbound dns for apresolve.spotify.com to 0.0.0.0 also resolved the problem as it did with /etc/hosts. This is with Music Assistant as a Home Assistant Add-On behind unbound.

<!-- gh-comment-id:3172424616 --> @davids777 commented on GitHub (Aug 10, 2025): Unsurprisingly, a host override in unbound dns for apresolve.spotify.com to 0.0.0.0 also resolved the problem as it did with /etc/hosts. This is with Music Assistant as a Home Assistant Add-On behind unbound.
Author
Owner

@GlebOlsen commented on GitHub (Aug 10, 2025):

0.0.0.0 apresolve.spotify.com

Worked for me!

<!-- gh-comment-id:3172506568 --> @GlebOlsen commented on GitHub (Aug 10, 2025): > 0.0.0.0 apresolve.spotify.com Worked for me!
Author
Owner

@KREnZE1 commented on GitHub (Aug 10, 2025):

Unfortunately 0.0.0.0 apresolve.spotify.com is no longer working. Since a couple of hours.

I think some other factor might be interfering too, because I just added the line to my hosts file and it started working again. There seems to be more to it than we currently see

<!-- gh-comment-id:3172513944 --> @KREnZE1 commented on GitHub (Aug 10, 2025): > Unfortunately 0.0.0.0 apresolve.spotify.com is no longer working. Since a couple of hours. I think some other factor might be interfering too, because I _just_ added the line to my hosts file and it started working again. There seems to be more to it than we currently see
Author
Owner

@kingosticks commented on GitHub (Aug 10, 2025):

Just a reminder, since the pertinent information here is now hidden amongst a load of other replies. You'll need the latest dev code and either the fix at #1528, or whatever temporary hack you've found to block apresolve. If you've gone for the blocking hack, you may find it breaks other things in future, so remind yourselves to remove it once you're running with the actual fix.

<!-- gh-comment-id:3172534956 --> @kingosticks commented on GitHub (Aug 10, 2025): Just a reminder, since the pertinent information here is now hidden amongst a load of other replies. You'll need the latest dev code **and** either the *fix* at #1528, or whatever *temporary hack* you've found to block apresolve. If you've gone for the blocking hack, you may find it breaks other things in future, so remind yourselves to remove it once you're running with the actual fix.
Author
Owner

@tyler-morales commented on GitHub (Aug 10, 2025):

🐍 Raspberry Pi Spotify Connect: Debugging Guide (August 2025)

Is this straight out of an LLM? I think the previous comments were sufficiently helpful for diagnosing and solving the issue.

My hope was to provide an explanation of the steps "I", the human took in trouble shooting and summarize it with an LLM. I see that this approach was not helpful. I wonder if there is a way to succinctly provide accurate, concise, and thorough explanation of what happened, what was tried, the fix, and why it works.

I think that this approach would greatly benefit the community without having to comb through the multiple threads of posts that are either verbose or duplicate.

<!-- gh-comment-id:3172733424 --> @tyler-morales commented on GitHub (Aug 10, 2025): > > 🐍 Raspberry Pi Spotify Connect: Debugging Guide (August 2025) > > Is this straight out of an LLM? I think the previous comments were sufficiently helpful for diagnosing and solving the issue. My hope was to provide an explanation of the steps "I", the human took in trouble shooting and summarize it with an LLM. I see that this approach was not helpful. I wonder if there is a way to succinctly provide accurate, concise, and thorough explanation of what happened, what was tried, the fix, and why it works. I think that this approach would greatly benefit the community without having to comb through the multiple threads of posts that are either verbose or duplicate.
Author
Owner

@michaelcadilhac commented on GitHub (Aug 10, 2025):

I think that this approach would greatly benefit the community without having to comb through the multiple threads of posts that are either verbose or duplicate.

OK clanker.

https://github.com/tdgroot/librespot.git 20250807_fixes

This one still works.

To quote @kingosticks :

$ git clone -b 20250807_fixes https://github.com/tdgroot/librespot.git 20250807_fixes
$ cd 20250807_fixes
$ cargo build --release --all-features
<!-- gh-comment-id:3172785627 --> @michaelcadilhac commented on GitHub (Aug 10, 2025): > I think that this approach would greatly benefit the community without having to comb through the multiple threads of posts that are either verbose or duplicate. OK clanker. > https://github.com/tdgroot/librespot.git 20250807_fixes This one still works. To quote @kingosticks : ```shell $ git clone -b 20250807_fixes https://github.com/tdgroot/librespot.git 20250807_fixes $ cd 20250807_fixes $ cargo build --release --all-features ```
Author
Owner

@reinob commented on GitHub (Aug 10, 2025):

I can confirm that 20250807_fixes works like a charm!

<!-- gh-comment-id:3172786724 --> @reinob commented on GitHub (Aug 10, 2025): I can confirm that 20250807_fixes works like a charm!
Author
Owner

@Chr1s16 commented on GitHub (Aug 10, 2025):

This approach would make for a more robust client, while enabling the developers to do proactive debugging.

Is this LLM spam too?

Nope. I am a real human being. Just a humble user of librespot. Sorry for not contributing directly by writing code.

Anyhow, issuing

$ sudo echo "0.0.0.0 apresolve.spotify.com" >> /etc/hosts
$ systemctl --user stop librespot.user
$ systemctl --user start librespot.user

worked around the present issue on my Debian system. No need to restart anything else

worked for me for my Raspotify on my Pi4 for on Bookworm with a small change: echo "0.0.0.0 apresolve.spotify.com" | sudo tee -a /etc/hosts

<!-- gh-comment-id:3172903625 --> @Chr1s16 commented on GitHub (Aug 10, 2025): > > > This approach would make for a more robust client, while enabling the developers to do proactive debugging. > > > > > > Is this LLM spam too? > > Nope. I am a real human being. Just a humble user of librespot. Sorry for not contributing directly by writing code. > > Anyhow, issuing > > ``` > $ sudo echo "0.0.0.0 apresolve.spotify.com" >> /etc/hosts > $ systemctl --user stop librespot.user > $ systemctl --user start librespot.user > ``` > > worked around the present issue on my Debian system. No need to restart anything else worked for me for my Raspotify on my Pi4 for on Bookworm with a small change: echo "0.0.0.0 apresolve.spotify.com" | sudo tee -a /etc/hosts
Author
Owner

@plummer66 commented on GitHub (Aug 11, 2025):

since I am new to all of this......if there is a fix for this....how do I apply it?

<!-- gh-comment-id:3172999591 --> @plummer66 commented on GitHub (Aug 11, 2025): since I am new to all of this......if there is a fix for this....how do I apply it?
Author
Owner

@pedymaster commented on GitHub (Aug 11, 2025):

since I am new to all of this......if there is a fix for this....how do I apply it?

Just the post above yours is working for me running raspotify on my rpi3 with a slight change:

$ sudo echo "0.0.0.0 apresolve.spotify.com" >> /etc/hosts
$ sudo service raspotify restart
<!-- gh-comment-id:3173744261 --> @pedymaster commented on GitHub (Aug 11, 2025): > since I am new to all of this......if there is a fix for this....how do I apply it? Just the post above yours is working for me running raspotify on my rpi3 with a slight change: ``` $ sudo echo "0.0.0.0 apresolve.spotify.com" >> /etc/hosts $ sudo service raspotify restart ```
Author
Owner

@willthong commented on GitHub (Aug 11, 2025):

Can confirm that the hack, adding

0.0.0.0 apresolve.spotify.com

also worked when doing it network-wide, ie added to the /etc/hosts of the home server running dnsmasq which handles my network's DNS. Thanks!

<!-- gh-comment-id:3173766483 --> @willthong commented on GitHub (Aug 11, 2025): Can confirm that the hack, adding ``` 0.0.0.0 apresolve.spotify.com ``` also worked when doing it network-wide, ie added to the `/etc/hosts` of the home server running `dnsmasq` which handles my network's DNS. Thanks!
Author
Owner

@audas commented on GitHub (Aug 11, 2025):

since I am new to all of this......if there is a fix for this....how do I apply it?

Hosts file on linux is /etc/hosts you just need to add the line

0.0.0.0 apresolve.spotify.com

save and restart whatever is using it.

<!-- gh-comment-id:3173974861 --> @audas commented on GitHub (Aug 11, 2025): > since I am new to all of this......if there is a fix for this....how do I apply it? Hosts file on linux is /etc/hosts you just need to add the line 0.0.0.0 apresolve.spotify.com save and restart whatever is using it.
Author
Owner

@kingosticks commented on GitHub (Aug 11, 2025):

I think we probably have enough workarounds and confirmation of workarounds now. If you need a workaround, scroll up. Otherwise wait for fix that's coming soon.

<!-- gh-comment-id:3173992394 --> @kingosticks commented on GitHub (Aug 11, 2025): I think we probably have enough workarounds and confirmation of workarounds now. If you need a workaround, scroll up. Otherwise wait for fix that's coming soon.
Author
Owner

@olm52 commented on GitHub (Aug 11, 2025):

I think that this approach would greatly benefit the community without having to comb through the multiple threads of posts that are either verbose or duplicate.

OK clanker.

https://github.com/tdgroot/librespot.git 20250807_fixes

This one still works.

To quote @kingosticks :

$ git clone -b 20250807_fixes https://github.com/tdgroot/librespot.git 20250807_fixes
$ cd 20250807_fixes
$ cargo build --release --all-features

Problem compiling:


Compiling encoding_rs v0.8.35
error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "-Wl,--version-script=/tmp/rustcJRSfjR/list" "-Wl,--no-undefined-version" "-m64" "/tmp/rustcJRSfjR/symbols.o" "<9 object files omitted>" "/tmp/rustcJRSfjR/rmeta.o" "<1 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libproc_macro-*,librustc_literal_escaper-*,librustc_std_workspace_std-*,libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcJRSfjR/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/media/linux/Downloads/Temp/librespot/20250807_fixes/target/release/deps/librustversion-671e265692330a81.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-Wl,--strip-debug" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: /usr/bin/ld: /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libproc_macro-68e7be1c71cd87ea.rlib: error adding symbols: file format not recognized
          collect2: error: ld returned 1 exit status
          

error: could not compile `rustversion` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

<!-- gh-comment-id:3174033964 --> @olm52 commented on GitHub (Aug 11, 2025): > > I think that this approach would greatly benefit the community without having to comb through the multiple threads of posts that are either verbose or duplicate. > > OK clanker. > > > https://github.com/tdgroot/librespot.git 20250807_fixes > > This one still works. > > To quote [@kingosticks](https://github.com/kingosticks) : > > $ git clone -b 20250807_fixes https://github.com/tdgroot/librespot.git 20250807_fixes > $ cd 20250807_fixes > $ cargo build --release --all-features Problem compiling: <pre><code> Compiling encoding_rs v0.8.35 error: linking with `cc` failed: exit status: 1 | = note: "cc" "-Wl,--version-script=/tmp/rustcJRSfjR/list" "-Wl,--no-undefined-version" "-m64" "/tmp/rustcJRSfjR/symbols.o" "<9 object files omitted>" "/tmp/rustcJRSfjR/rmeta.o" "<1 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libproc_macro-*,librustc_literal_escaper-*,librustc_std_workspace_std-*,libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcJRSfjR/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/media/linux/Downloads/Temp/librespot/20250807_fixes/target/release/deps/librustversion-671e265692330a81.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-Wl,--strip-debug" "-nodefaultlibs" = note: some arguments are omitted. use `--verbose` to show all linker arguments = note: /usr/bin/ld: /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libproc_macro-68e7be1c71cd87ea.rlib: error adding symbols: file format not recognized collect2: error: ld returned 1 exit status error: could not compile `rustversion` (lib) due to 1 previous error warning: build failed, waiting for other jobs to finish... </code></pre>
Author
Owner

@kingosticks commented on GitHub (Aug 11, 2025):

That error is not related to this issue. Sounds more like https://bugs.gentoo.org/951740

I was misquoted above. I actually tried to suggest people use whatever features they normally use. But I don't know if that would help in your case.

git clone -b 20250807_fixes https://github.com/tdgroot/librespot.git 20250807_fixes
cd 20250807_fixes
cargo build blah-blah-whatever-options-you-use

If you think this is actually a librespot problem, please open a new issue with all the debug info we require to help.

<!-- gh-comment-id:3174097057 --> @kingosticks commented on GitHub (Aug 11, 2025): That error is not related to this issue. Sounds more like https://bugs.gentoo.org/951740 I was misquoted above. I actually tried to suggest people use whatever [features ](https://github.com/librespot-org/librespot/wiki/Compiling#features) they normally use. But I don't know if that would help in your case. > git clone -b 20250807_fixes https://github.com/tdgroot/librespot.git 20250807_fixes cd 20250807_fixes cargo build blah-blah-whatever-options-you-use If you think this is actually a librespot problem, please open a new issue with all the debug info we require to help.
Author
Owner

@plummer66 commented on GitHub (Aug 11, 2025):

since I am new to all of this......if there is a fix for this....how do I apply it?

Just the post above yours is working for me running raspotify on my rpi3 with a slight change:

$ sudo echo "0.0.0.0 apresolve.spotify.com" >> /etc/hosts
$ sudo service raspotify restart

Yeah tried this. While it does get things working, I am finding that it disconnects quite frequently.

Thanks for the responses to a newb people. Much appreciated.

<!-- gh-comment-id:3175113364 --> @plummer66 commented on GitHub (Aug 11, 2025): > > since I am new to all of this......if there is a fix for this....how do I apply it? > > Just the post above yours is working for me running raspotify on my rpi3 with a slight change: > ``` > $ sudo echo "0.0.0.0 apresolve.spotify.com" >> /etc/hosts > $ sudo service raspotify restart > ``` > Yeah tried this. While it does get things working, I am finding that it disconnects quite frequently. Thanks for the responses to a newb people. Much appreciated.
Author
Owner

@kingosticks commented on GitHub (Aug 11, 2025):

The fix was merged. Please undo the hacks and run the latest dev branch code. Detailed instructions at https://github.com/librespot-org/librespot/wiki/Compiling. If you need more help to compile, ask at https://github.com/librespot-org/librespot/discussions

<!-- gh-comment-id:3175164067 --> @kingosticks commented on GitHub (Aug 11, 2025): The fix was merged. Please undo the hacks and run the latest dev branch code. Detailed instructions at https://github.com/librespot-org/librespot/wiki/Compiling. If you need more help to compile, ask at https://github.com/librespot-org/librespot/discussions
Author
Owner

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

I've begun with the release process. First step is updating the dependencies. My camping internet is unreliable, so this may take some time. I'll be pushing some incremental directly to dev as I go.

Some further challenges are that I:

  1. brought my Mac but no Linux system to test with;
  2. don't have a Spotify account anymore.

Here's how you can help:

  1. Watch the dev branch for new commits, test them and report back any issues.
  2. Consider sponsoring me and collectively cover my Spotify account.
<!-- gh-comment-id:3180450262 --> @roderickvd commented on GitHub (Aug 12, 2025): I've begun with the release process. First step is updating the dependencies. My camping internet is unreliable, so this may take some time. I'll be pushing some incremental directly to `dev` as I go. Some further challenges are that I: 1. brought my Mac but no Linux system to test with; 2. don't have a Spotify account anymore. Here's how you can help: 1. Watch the `dev` branch for new commits, test them and report back any issues. 2. Consider [sponsoring me](https://github.com/sponsors/roderickvd) and collectively cover my Spotify account.
Author
Owner

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

I built raspotify against librespot dev commit ba3d501 for armhf.

Confirmed working without the apresolve.spotify.com DNS override workaround.

Running on Raspbian 11 on a Raspberry Pi 4 Model B Rev 1.4.

<!-- gh-comment-id:3180569546 --> @foonarf commented on GitHub (Aug 12, 2025): I built raspotify against librespot dev commit ba3d501 for armhf. Confirmed working without the apresolve.spotify.com DNS override workaround. Running on Raspbian 11 on a Raspberry Pi 4 Model B Rev 1.4.
Author
Owner

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

I've begun with the release process. First step is updating the dependencies. My camping internet is unreliable, so this may take some time. I'll be pushing some incremental directly to dev as I go.

Some further challenges are that I:

  1. brought my Mac but no Linux system to test with;
  2. don't have a Spotify account anymore.

Here's how you can help:

  1. Watch the dev branch for new commits, test them and report back any issues.
  2. Consider sponsoring me and collectively cover my Spotify account.

I just pushed a few pretty significant commits. Specific things to test:

  • playback with Rodio (which is the default)
  • OAuth

Many thanks to those who already made a contribution.

If you find an error, open an issue.
If you find everything is OK, please report it here shortly - just the first user, so we don't spam the thread.

<!-- gh-comment-id:3183438867 --> @roderickvd commented on GitHub (Aug 13, 2025): > I've begun with the release process. First step is updating the dependencies. My camping internet is unreliable, so this may take some time. I'll be pushing some incremental directly to `dev` as I go. > > Some further challenges are that I: > > 1. brought my Mac but no Linux system to test with; > 2. don't have a Spotify account anymore. > > Here's how you can help: > > 1. Watch the `dev` branch for new commits, test them and report back any issues. > 2. Consider [sponsoring me](https://github.com/sponsors/roderickvd) and collectively cover my Spotify account. I just pushed a few pretty significant commits. Specific things to test: - playback with Rodio (which is the default) - OAuth Many thanks to those who already made a contribution. If you find an error, open an issue. If you find everything is OK, please report it here shortly - just the first user, so we don't spam the thread.
Author
Owner

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

When compiling with 1.81 we get:

PS C:\Users\...\repos\_OTHERS\_RUST\librespot-upstream> cargo +1.81 run -- --help
error: failed to download `base64ct v1.8.0`

Caused by:
  unable to get packages from source

Caused by:
  failed to parse manifest at `C:\Users\...\.cargo\registry\src\index.crates.io-6f17d22bba15001f\base64ct-1.8.0\Cargo.toml`

Caused by:
  feature `edition2024` is required

  The package requires the Cargo feature called `edition2024`, but that feature is not stabilized in this version of Cargo (1.81.0 (2dbb1af80 2024-08-20)).
  Consider trying a newer version of Cargo (this may require the nightly release).
  See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2024 for more information about the status of this feature.
<!-- gh-comment-id:3183584069 --> @photovoltex commented on GitHub (Aug 13, 2025): When compiling with 1.81 we get: ``` PS C:\Users\...\repos\_OTHERS\_RUST\librespot-upstream> cargo +1.81 run -- --help error: failed to download `base64ct v1.8.0` Caused by: unable to get packages from source Caused by: failed to parse manifest at `C:\Users\...\.cargo\registry\src\index.crates.io-6f17d22bba15001f\base64ct-1.8.0\Cargo.toml` Caused by: feature `edition2024` is required The package requires the Cargo feature called `edition2024`, but that feature is not stabilized in this version of Cargo (1.81.0 (2dbb1af80 2024-08-20)). Consider trying a newer version of Cargo (this may require the nightly release). See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2024 for more information about the status of this feature. ```
Author
Owner

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

Runnign with just cargo run -- -j --cache .cache breaks:

thread 'main' panicked at C:\Users\...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\rustls-0.23.31\src\crypto\mod.rs:249:14:

Could not automatically determine the process-level CryptoProvider from Rustls crate features.
Call CryptoProvider::install_default() before this point to select a provider manually, or make sure exactly one of the 'aws-lc-rs' and 'ring' features is enabled.
See the documentation of the CryptoProvider type for more information.

I'm not sure yet why this happens, cargo file looks fine and the mentioned feature is enabled by default...

I would like to help fix stuff, but I'm limited to testing only right now.

<!-- gh-comment-id:3183600895 --> @photovoltex commented on GitHub (Aug 13, 2025): Runnign with just `cargo run -- -j --cache .cache` breaks: ``` thread 'main' panicked at C:\Users\...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\rustls-0.23.31\src\crypto\mod.rs:249:14: Could not automatically determine the process-level CryptoProvider from Rustls crate features. Call CryptoProvider::install_default() before this point to select a provider manually, or make sure exactly one of the 'aws-lc-rs' and 'ring' features is enabled. See the documentation of the CryptoProvider type for more information. ``` > I'm not sure yet why this happens, cargo file looks fine and the mentioned feature is enabled by default... I would like to help fix stuff, but I'm limited to testing only right now.
Author
Owner

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

I just built the commit fdd4a16 and it works fine for me. My build is for the alsa backend only and I am running it inside a docker container on the Raspberry Pi 4B+.

My Dockerfile:

FROM rust:1.88-slim-bookworm AS builder

# Install pre-requisites for a build
RUN apt-get update && apt-get install -y --no-install-recommends \
  libasound2-dev \
  libssl-dev \
  pkg-config \
  cmake \
  clang \
  llvm-dev \
  libclang-dev \
  build-essential \
  git \
  libavahi-compat-libdnssd-dev \
  alsa-utils \
  libasound2 \
  && rm -rf /var/lib/apt/lists/*

# Create app directory
WORKDIR /app

# 2025-08-12 - latest commit
RUN git clone https://github.com/librespot-org/librespot.git .

# Build release binary
RUN cargo build --release --features "alsa-backend" && strip target/release/librespot

# Stage 2: Runtime
FROM debian:bookworm-slim

LABEL org.opencontainers.image.title="dockerized-librespot" \

RUN apt-get update && apt-get install -y --no-install-recommends \
  libasound2 \
  ca-certificates \
  curl \
  && rm -rf /var/lib/apt/lists/*

# Copy the built binary from builder
COPY --from=builder /app/target/release/librespot /usr/local/bin/librespot

# Configure the entry point
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh

# Create user and set permissions if you want
RUN useradd -m -s /bin/bash librespot && usermod -a -G audio librespot
USER librespot

# Variables default values
ENV DEVICE_NAME="librespot (Docker)"
ENV BITRATE=320

ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
<!-- gh-comment-id:3183608389 --> @pienczyk commented on GitHub (Aug 13, 2025): I just built the commit fdd4a16 and it works fine for me. My build is for the alsa backend only and I am running it inside a docker container on the Raspberry Pi 4B+. My Dockerfile: ``` FROM rust:1.88-slim-bookworm AS builder # Install pre-requisites for a build RUN apt-get update && apt-get install -y --no-install-recommends \ libasound2-dev \ libssl-dev \ pkg-config \ cmake \ clang \ llvm-dev \ libclang-dev \ build-essential \ git \ libavahi-compat-libdnssd-dev \ alsa-utils \ libasound2 \ && rm -rf /var/lib/apt/lists/* # Create app directory WORKDIR /app # 2025-08-12 - latest commit RUN git clone https://github.com/librespot-org/librespot.git . # Build release binary RUN cargo build --release --features "alsa-backend" && strip target/release/librespot # Stage 2: Runtime FROM debian:bookworm-slim LABEL org.opencontainers.image.title="dockerized-librespot" \ RUN apt-get update && apt-get install -y --no-install-recommends \ libasound2 \ ca-certificates \ curl \ && rm -rf /var/lib/apt/lists/* # Copy the built binary from builder COPY --from=builder /app/target/release/librespot /usr/local/bin/librespot # Configure the entry point COPY entrypoint.sh /usr/local/bin/entrypoint.sh RUN chmod +x /usr/local/bin/entrypoint.sh # Create user and set permissions if you want RUN useradd -m -s /bin/bash librespot && usermod -a -G audio librespot USER librespot # Variables default values ENV DEVICE_NAME="librespot (Docker)" ENV BITRATE=320 ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] ```
Author
Owner

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

@photovoltex was able to reproduce and fixed in 1dcd041. I took the liberty to bump MSRV to 1.85 and edition to 2024 as more and more libraries are making the jump.

<!-- gh-comment-id:3184240826 --> @roderickvd commented on GitHub (Aug 13, 2025): @photovoltex was able to reproduce and fixed in 1dcd041. I took the liberty to bump MSRV to 1.85 and edition to 2024 as more and more libraries are making the jump.
Author
Owner

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

Was this resolved? I am still receiving the error when trying to do playback

[2025-08-14T15:50:13Z ERROR librespot_playback::player] Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) }

in latest version

<!-- gh-comment-id:3188959942 --> @ColtraneNadler commented on GitHub (Aug 14, 2025): Was this resolved? I am still receiving the error when trying to do playback ``` [2025-08-14T15:50:13Z ERROR librespot_playback::player] Unable to load audio item: Error { kind: Unavailable, error: StatusCode(500) } ``` in latest version
Author
Owner

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

What do you mean by "in latest version". This issue is resolved on the dev branch, aka the published version is still effected as we didn't release a new version, yet.

<!-- gh-comment-id:3188979273 --> @photovoltex commented on GitHub (Aug 14, 2025): What do you mean by "in latest version". This issue is resolved on the `dev` branch, aka the published version is still effected as we didn't release a new version, yet.
Author
Owner

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

What do you mean by "in latest version". This issue is resolved on the dev branch, aka the published version is still effected as we didn't release a new version, yet.

got it. my mistake then!

<!-- gh-comment-id:3189963572 --> @ColtraneNadler commented on GitHub (Aug 14, 2025): > What do you mean by "in latest version". This issue is resolved on the `dev` branch, aka the published version is still effected as we didn't release a new version, yet. got it. my mistake then!
Author
Owner

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

Released v0.7.0 that fixes this and more: https://github.com/librespot-org/librespot/releases/tag/v0.7.0

<!-- gh-comment-id:3218235159 --> @roderickvd commented on GitHub (Aug 24, 2025): Released v0.7.0 that fixes this and more: https://github.com/librespot-org/librespot/releases/tag/v0.7.0
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/librespot#693
No description provided.