mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[GH-ISSUE #787] Integrated client not working #1407
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#1407
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Montero1905 on GitHub (Jul 30, 2025).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/787
Describe the bug
The integrated client stopped working suddenly, I was using version v.0.20.5. I updated to v.020.7 to see if that fixed the bug without any success. The GUI works fines with an external client such as spotifyd or the spotify phone application.
I see the spotify_player listed in the devices but when I choose no music is reproduced.
To Reproduce
Open spotify_player, select device spotify_player, try to play any song without any success.
Expected behaviour
To have the integrated client working as default as it was working before.
Log and backtrace
2025-07-30T10:17:11.018319Z INFO spotify_player::state::data: Loading Playlists data from /Users/mario/.cache/spotify-player/Playlists_cache.json...
2025-07-30T10:17:11.019279Z INFO spotify_player::state::data: Successfully loaded Playlists data!
2025-07-30T10:17:11.019338Z INFO spotify_player::state::data: Loading FollowedArtists data from /Users/mario/.cache/spotify-player/FollowedArtists_cache.json...
2025-07-30T10:17:11.019741Z INFO spotify_player::state::data: Successfully loaded FollowedArtists data!
2025-07-30T10:17:11.019784Z INFO spotify_player::state::data: Loading SavedShows data from /Users/mario/.cache/spotify-player/SavedShows_cache.json...
2025-07-30T10:17:11.020129Z INFO spotify_player::state::data: Successfully loaded SavedShows data!
2025-07-30T10:17:11.020168Z INFO spotify_player::state::data: Loading SavedAlbums data from /Users/mario/.cache/spotify-player/SavedAlbums_cache.json...
2025-07-30T10:17:11.020540Z INFO spotify_player::state::data: Successfully loaded SavedAlbums data!
2025-07-30T10:17:11.020574Z INFO spotify_player::state::data: Loading SavedTracks data from /Users/mario/.cache/spotify-player/SavedTracks_cache.json...
2025-07-30T10:17:11.027331Z INFO spotify_player::state::data: Successfully loaded SavedTracks data!
2025-07-30T10:17:11.033617Z INFO spotify_player::auth: Using cached credentials
2025-07-30T10:17:11.033659Z INFO spotify_player::streaming: Application's connect configurations: ConnectConfig { name: "home-tui", device_type: Speaker, is_group: false, initial_volume: Some(65535), has_volume_ctrl: true }
2025-07-30T10:17:11.033687Z INFO librespot_playback::mixer::softmixer: Mixing with softvol and volume control: Log(60.0)
2025-07-30T10:17:11.033709Z INFO spotify_player::streaming: Initializing a new integrated player with device_id=98fbca91-e435-4d3f-a86e-de656483faf5
2025-07-30T10:17:11.033792Z INFO spotify_player::streaming: Starting an integrated Spotify player using librespot's spirc protocol
2025-07-30T10:17:11.033850Z INFO librespot_playback::convert: Converting with ditherer: tpdf
2025-07-30T10:17:11.033895Z INFO librespot_playback::audio_backend::rodio: Using Rodio sink with format S16 and cpal host: CoreAudio
2025-07-30T10:17:11.201429Z INFO librespot_playback::audio_backend::rodio: Using audio device: External Headphones
2025-07-30T10:17:11.913175Z INFO librespot_core::session: Connecting to AP "ap-gew4.spotify.com:4070"
2025-07-30T10:17:12.018845Z INFO librespot_core::session: Authenticated as '1277708105' !
2025-07-30T10:17:12.019269Z INFO librespot_core::session: Country: "DE"
2025-07-30T10:17:12.019319Z INFO spotify_player::streaming: New streaming connection has been established!
2025-07-30T10:17:12.019494Z INFO spotify_player::client: Used a new session for Spotify client.
2025-07-30T10:17:12.019565Z INFO spotify_player::token: Getting a new authentication token...
2025-07-30T10:17:12.061890Z INFO spotify_player::token: Got new token: Token { access_token: "BQAdx0C2oRCgzjZPCdcBuG9W4eGnWPlodIeXjpOJjzadYsiB9Pk9pOicmNGRFMiMv3NGdhbQHL8ieG0zqiCVuZC8zXBswBsatjzNa1ZghGIO98uatX-oQev1hGZmhmYXmm5EaoUwFzwIzhZ9lKzumpv9x2aLgClDhPyGNXyg7HCHnPxMbh7vtZCzWx_MLbs7mORHQmOFONZmUgcV2t7oqxdCcfZ-XAUuDmQGDeC7A8kpLm5rulAEPaUSKk17JViSQe7f8BFlaE8GdXaE2VjEAJ4xj04HjeRMGIFJjDeEI4yk6fDb2Lt-k8lj1c5Miwx9Q4uMND4jfJNnIDtpCPA432gmX9fLKzDH1ZS5Lrupx576zXLQQnbU2CDaM7135BSvX6AnoQ", expires_in: TimeDelta { secs: 3600, nanos: 0 }, expires_at: Some(2025-07-30T11:17:12.061880Z), refresh_token: None, scopes: {} }
2025-07-30T10:17:12.062190Z INFO spotify_player: Starting a client socket at 127.0.0.1:8080
2025-07-30T10:17:12.062493Z INFO spotify_player::media_control: Initializing application's media control event watcher...
2025-07-30T10:17:12.167576Z INFO client_request{request=GetCurrentUser}: spotify_player::client: Successfully handled the client request, took: 105ms
2025-07-30T10:17:12.251953Z INFO client_request{request=GetUserSavedShows}: spotify_player::client: Successfully handled the client request, took: 189ms
2025-07-30T10:17:12.393550Z INFO client_request{request=GetUserSavedAlbums}: spotify_player::client: Successfully handled the client request, took: 331ms
2025-07-30T10:17:12.617353Z INFO client_request{request=GetUserPlaylists}: spotify_player::client: Successfully handled the client request, took: 554ms
2025-07-30T10:17:12.983950Z INFO client_request{request=GetUserFollowedArtists}: spotify_player::client: Successfully handled the client request, took: 921ms
2025-07-30T10:17:13.184360Z INFO spotify_player::client: Available devices: [Device { id: Some("98fbca91-e435-4d3f-a86e-de656483faf5"), is_active: false, is_private_session: false, is_restricted: false, name: "home-tui", _type: Speaker, volume_percent: Some(100) }]
2025-07-30T10:17:13.184414Z INFO spotify_player::client: Trying to connect to device (id=98fbca91-e435-4d3f-a86e-de656483faf5)
2025-07-30T10:17:13.211452Z INFO spotify_player::client: Available devices: [Device { id: Some("98fbca91-e435-4d3f-a86e-de656483faf5"), is_active: false, is_private_session: false, is_restricted: false, name: "home-tui", _type: Speaker, volume_percent: Some(100) }]
2025-07-30T10:17:13.211532Z INFO spotify_player::client: Trying to connect to device (id=98fbca91-e435-4d3f-a86e-de656483faf5)
2025-07-30T10:17:13.322930Z INFO librespot_core::spclient: Resolved "gew4-spclient.spotify.com:443" as spclient access point
2025-07-30T10:17:13.332684Z INFO spotify_player::client: Connection succeeded (device_id=98fbca91-e435-4d3f-a86e-de656483faf5)!
2025-07-30T10:17:13.380065Z INFO spotify_player::client: Connection succeeded (device_id=98fbca91-e435-4d3f-a86e-de656483faf5)!
2025-07-30T10:17:13.390955Z INFO librespot_playback::player: Loading <Are You Sure?> with Spotify URI spotify:track:4TJfN6j6vbPjLMEnwt5fi3
2025-07-30T10:17:13.431611Z WARN librespot_core::cdn_url: Cannot parse CDN URL expiry timestamp 'verify=1753957033-zdifslCXS5ZdSxSw7EbYTmTwmNyhxv52U5VuSeD1ol8%3D' from 'https://audio-cf.spotifycdn.com/audio/b79dd55ec4334610ada856914ea28eabed9d2f57?verify=1753957033-zdifslCXS5ZdSxSw7EbYTmTwmNyhxv52U5VuSeD1ol8%3D'
2025-07-30T10:17:13.446333Z 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: nodename nor servname provided, or not known" }) }) }
2025-07-30T10:17:13.446416Z ERROR librespot_playback::player: Skipping to next track, unable to load track <SpotifyId("spotify:track:4TJfN6j6vbPjLMEnwt5fi3")>: ()
2025-07-30T10:17:13.750096Z INFO librespot_connect::spirc: Resolved 50 tracks from <"spotify:playlist:37i9dQZEVXcUy5PhfQGjrN">
2025-07-30T10:17:13.781779Z INFO librespot_playback::player: Loading <Are You Sure?> with Spotify URI spotify:track:4TJfN6j6vbPjLMEnwt5fi3
2025-07-30T10:17:13.823263Z WARN librespot_core::cdn_url: Cannot parse CDN URL expiry timestamp 'verify=1753957033-zdifslCXS5ZdSxSw7EbYTmTwmNyhxv52U5VuSeD1ol8%3D' from 'https://audio-cf.spotifycdn.com/audio/b79dd55ec4334610ada856914ea28eabed9d2f57?verify=1753957033-zdifslCXS5ZdSxSw7EbYTmTwmNyhxv52U5VuSeD1ol8%3D'
2025-07-30T10:17:13.825519Z 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: nodename nor servname provided, or not known" }) }) }
2025-07-30T10:17:13.825623Z ERROR librespot_playback::player: Skipping to next track, unable to load track <SpotifyId("spotify:track:4TJfN6j6vbPjLMEnwt5fi3")>: ()
2025-07-30T10:17:14.114247Z INFO librespot_connect::spirc: Resolved 50 tracks from <"spotify:playlist:37i9dQZEVXcUy5PhfQGjrN">
2025-07-30T10:17:14.157347Z INFO librespot_playback::player: Loading with Spotify URI spotify:track:49gCJ57oOsLDqnP7r57A2g
2025-07-30T10:17:14.197265Z WARN librespot_core::cdn_url: Cannot parse CDN URL expiry timestamp 'verify=1753957034-rIys8g95P96vSK9i6GiqY9wdsKi5VFvJprqedhV3j9o%3D' from 'https://audio-cf.spotifycdn.com/audio/dcd1b994106a351083eb192a320ef2c0c531cc17?verify=1753957034-rIys8g95P96vSK9i6GiqY9wdsKi5VFvJprqedhV3j9o%3D'
2025-07-30T10:17:14.199083Z 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: nodename nor servname provided, or not known" }) }) }
2025-07-30T10:17:16.291947Z INFO client_request{request=GetCurrentUserQueue}: spotify_player::client: Successfully handled the client request, took: 224ms
2025-07-30T10:17:16.895119Z INFO client_request{request=GetUserSavedTracks}: spotify_player::client: Successfully handled the client request, took: 4832ms
2025-07-30T10:17:48.945652Z INFO client_request{request=Player(ResumePause)}: spotify_player::client: Successfully handled the client request, took: 67ms
2025-07-30T10:17:51.580017Z INFO client_request{request=GetDevices}: spotify_player::client: Successfully handled the client request, took: 72ms
2025-07-30T10:17:52.998776Z INFO client_request{request=Player(TransferPlayback("98fbca91-e435-4d3f-a86e-de656483faf5", false))}: spotify_player::client: Transferred playback to device with id=98fbca91-e435-4d3f-a86e-de656483faf5
2025-07-30T10:17:52.998831Z INFO client_request{request=Player(TransferPlayback("98fbca91-e435-4d3f-a86e-de656483faf5", false))}: spotify_player::client: Successfully handled the client request, took: 188ms
2025-07-30T10:17:53.029277Z INFO librespot_playback::player: Loading <Are You Sure?> with Spotify URI spotify:track:4TJfN6j6vbPjLMEnwt5fi3
2025-07-30T10:17:53.070077Z WARN librespot_core::cdn_url: Cannot parse CDN URL expiry timestamp 'verify=1753957073-AUWiyHa3D4Q1PYEl7HYt6Tazi50qSnrzifbSObJHS54%3D' from 'https://audio-cf.spotifycdn.com/audio/b79dd55ec4334610ada856914ea28eabed9d2f57?verify=1753957073-AUWiyHa3D4Q1PYEl7HYt6Tazi50qSnrzifbSObJHS54%3D'
2025-07-30T10:17:53.071742Z 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: nodename nor servname provided, or not known" }) }) }
2025-07-30T10:17:53.071847Z ERROR librespot_playback::player: Skipping to next track, unable to load track <SpotifyId("spotify:track:4TJfN6j6vbPjLMEnwt5fi3")>: ()
2025-07-30T10:17:53.405110Z INFO librespot_connect::spirc: Resolved 50 tracks from <"spotify:playlist:37i9dQZEVXcUy5PhfQGjrN">
2025-07-30T10:17:53.441407Z INFO librespot_playback::player: Loading with Spotify URI spotify:track:49gCJ57oOsLDqnP7r57A2g
2025-07-30T10:17:53.488183Z WARN librespot_core::cdn_url: Cannot parse CDN URL expiry timestamp 'verify=1753957073-bIc9Xcdv9Pf4Q9Yk7DcQwZ4u%2F%2Bw6phfokzOtUiE4%2B40%3D' from 'https://audio-cf.spotifycdn.com/audio/dcd1b994106a351083eb192a320ef2c0c531cc17?verify=1753957073-bIc9Xcdv9Pf4Q9Yk7DcQwZ4u%2F%2Bw6phfokzOtUiE4%2B40%3D'
2025-07-30T10:17:53.489827Z 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: nodename nor servname provided, or not known" }) }) }
2025-07-30T10:17:54.859961Z INFO client_request{request=Player(ResumePause)}: spotify_player::client: Successfully handled the client request, took: 65ms
Environment
@KUHLwasStolen commented on GitHub (Jul 30, 2025):
This seems to be related to these issues: https://github.com/librespot-org/librespot/issues/1518 & https://github.com/librespot-org/librespot/issues/1512
@KUHLwasStolen commented on GitHub (Jul 31, 2025):
So I've built myself a "hotfix" version of
spotify-playerthat directly uses the code from thelibrespotrepository and that seems to fix this warningBut the following error still remains:
Which is most likely related to https://github.com/librespot-org/librespot/issues/1521 and a fix for this is already being worked on.
@KUHLwasStolen commented on GitHub (Aug 1, 2025):
Update: I have managed to patch the
librespotproblem and have aspotify-playerfork (https://github.com/KUHLwasStolen/spotify-player/tree/librespot-temporary-hotfix) which uses mylibrespotfork as a dependency instead of the official release.This is a somewhat temporary fix for everyone who cannot wait to use
spotify-playeragain. Feel free to check it out.@Montero1905 commented on GitHub (Aug 3, 2025):
Oh man, thank you very much! That hot-fix works just fine. I don't know what happened to librespot, I tried fixing the problem with this pull request (https://github.com/librespot-org/librespot/pull/1513) but it didn't worked.
@KUHLwasStolen commented on GitHub (Aug 3, 2025):
Apparently that PR fixed another issue that caused streaming to fail haha.
This time Spotify is sending URLs which are not actually reachable. Doing a DNS lookup to filter those out solves this issue.
Some people suspect this might be a regional issue, as as it seems like lots of people from Germany are complaining about this.
@solisoft commented on GitHub (Aug 7, 2025):
Same issue here (France)
@KUHLwasStolen commented on GitHub (Aug 7, 2025):
In the meantime you can refer to https://github.com/aome510/spotify-player/issues/796#issuecomment-3162984574 on how to install the temporary workaround or wait for the official release of the
librespotlibrary.@jvmncs commented on GitHub (Aug 8, 2025):
Same issue here in NYC
@pentago commented on GitHub (Aug 8, 2025):
Same thing in Serbia..