mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #1518] Unable to load encrypted file: Error { kind: FailedPrecondition, error: StatusCode(400) } #687
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#687
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 @ulongx on GitHub (Jul 16, 2025).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1518
Description
I started Librespot on another Mac computer, but I couldn't play music through the mobile app and was prompted to watch logs
Version
v0.6.0
How to reproduce
Steps to reproduce the behavior in librespot e.g.
librespotwith " librespot --name "sherrymac" --cache ~/nodejs/spotify_cache"Log
librespot --name "sherrymac" --cache ~/nodejs/spotify_cache
[2025-07-16T07:08:45Z INFO librespot] librespot 0.6.0 VERGEN_IDEMPOTENT_OUTPUT (Built on 2025-07-16, Build ID: uO2Mnihw, Profile: release)
[2025-07-16T07:08:45Z INFO librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Log(60.0)
[2025-07-16T07:08:45Z INFO librespot_playback::convert] Converting with ditherer: tpdf
[2025-07-16T07:08:45Z INFO librespot_playback::audio_backend::rodio] Using Rodio sink with format S16 and cpal host: CoreAudio
[2025-07-16T07:08:45Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }
[2025-07-16T07:08:45Z INFO librespot_playback::audio_backend::rodio] Using audio device: Built-in Output
[2025-07-16T07:08:47Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }
[2025-07-16T07:08:48Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }
[2025-07-16T07:08:51Z INFO librespot_core::session] Connecting to AP "ap-gae2.spotify.com:4070"
[2025-07-16T07:08:52Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }
[2025-07-16T07:08:54Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }
[2025-07-16T07:08:54Z WARN librespot_core::session] Try another access point...
[2025-07-16T07:08:54Z INFO librespot_core::session] Connecting to AP "ap-gae2.spotify.com:443"
[2025-07-16T07:08:56Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }
[2025-07-16T07:08:58Z INFO librespot_core::session] Authenticated as '31xztcatz*******gcojgi5sxq' !
[2025-07-16T07:08:58Z INFO librespot_core::session] Country: "US"
[2025-07-16T07:08:58Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }
[2025-07-16T07:08:58Z INFO librespot_core::spclient] Resolved "gae2-spclient.spotify.com:443" as spclient access point
[2025-07-16T07:08:59Z INFO librespot_playback::player] Loading <Don’t Say You Love Me> with Spotify URI spotify:track:27xkOIER6uDLKALIelHylZ
[2025-07-16T07:08:59Z WARN librespot_core::cdn_url] Cannot parse CDN URL expiry timestamp 'verify=1752736139-oOHjtFaekZf0EKD0%2F0ipNzXokLAbjy6e5E65BhiWtHE%3D' from 'https://audio-cf.spotifycdn.com/audio/23ef2ed740c3041918cc137f5706bf84155e19de?verify=1752736139-oOHjtFaekZf0EKD0%2F0ipNzXokLAbjy6e5E65BhiWtHE%3D'
[2025-07-16T07:08:59Z ERROR librespot_playback::player] Unable to load encrypted file: Error { kind: FailedPrecondition, error: StatusCode(400) }
[2025-07-16T07:08:59Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:27xkOIER6uDLKALIelHylZ")>: ()
[2025-07-16T07:08:59Z INFO librespot_connect::spirc] Resolved 50 tracks from <"spotify:playlist:2Ooi12ZNAI2V8c3maKWkku">
[2025-07-16T07:08:59Z INFO librespot_playback::player] Loading with Spotify URI spotify:track:02sy7FAs8dkDNYsHp4Ul3f
[2025-07-16T07:08:59Z WARN librespot_core::cdn_url] Cannot parse CDN URL expiry timestamp 'verify=1752736139-%2BYuiEbNcvMexRxlBHZgQKod3ZbnMKvurUzRk%2BInKOvE%3D' from 'https://audio-cf.spotifycdn.com/audio/afba2ce9623dd083151d2b803a2a0d5095e27df4?verify=1752736139-%2BYuiEbNcvMexRxlBHZgQKod3ZbnMKvurUzRk%2BInKOvE%3D'
[2025-07-16T07:08:59Z ERROR librespot_playback::player] Unable to load encrypted file: Error { kind: FailedPrecondition, error: StatusCode(400) }
[2025-07-16T07:09:00Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }
[2025-07-16T07:09:02Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }
[2025-07-16T07:09:04Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }
[2025-07-16T07:09:06Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }
[2025-07-16T07:09:07Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }
[2025-07-16T07:09:07Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }
[2025-07-16T07:09:08Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }
[2025-07-16T07:09:10Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }
[2025-07-16T07:09:12Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }
[2025-07-16T07:09:14Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }
[2025-07-16T07:09:16Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }
Host (what you are running
librespoton):@kungfusaini commented on GitHub (Jul 27, 2025):
Having this same issue !
Specifically seeing:
when using spotify-player
I'm on macos 15.5
EDIT: Using spotify-player installed via brew solved this issue, was using nix before
@photovoltex commented on GitHub (Jul 29, 2025):
Seems to be a duplicate of #1512 if I'm correct?
@roldengarm commented on GitHub (Jul 30, 2025):
Think I have the same/similar issue, yesterday it was fine, not today. When I select the device in Spotify Android, it selects it, but playing doesn't start. Error logs below.
I've updated to the latest version on Git.
@PocketMiner82 commented on GitHub (Jul 30, 2025):
I also get the same DNS error as you. For me it randomly stopped working at some time (about 12:30 PM CEST on July 28th).
Here is the debug log after trying to transfer playback from android app:
Log
Edit: It seems like
audio-akp.spotifycdn.comis not reachable: