[GH-ISSUE #1182] "Unable to load encrypted file" on every song #548

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

Originally created by @Mitschmaster on GitHub (Jun 28, 2023).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1182

I cant play anything with my spotify box. On every song i get "Unable to load encrypted file". I dont know when the thing broke exactly.
I did a new build from source recently(but did not test immediately). But im not shure if that was the cause as i jumped back the commits, build again and got the same error.

[2023-06-28T18:54:29Z INFO  librespot] librespot 0.5.0-dev 4d402e6 (Built on 2023-06-28, Build ID: Z7nIpPHv, Profile: release)
[2023-06-28T18:54:36Z INFO  librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Log(60.0)
[2023-06-28T18:54:36Z INFO  librespot_playback::convert] Converting with ditherer: tpdf
[2023-06-28T18:54:36Z INFO  librespot_playback::audio_backend::alsa] Using AlsaSink with format: S16
[2023-06-28T18:54:36Z INFO  librespot_core::session] Connecting to AP "ap-gew4.spotify.com:4070"
[2023-06-28T18:54:36Z INFO  librespot_core::session] Authenticated as "****" !
[2023-06-28T18:54:36Z INFO  librespot_core::session] Country: "DE"
[2023-06-28T18:54:36Z INFO  librespot_core::spclient] Resolved "gew4-spclient.spotify.com:443" as spclient access point
[2023-06-28T18:54:36Z INFO  librespot_playback::player] Loading <Black Summer> with Spotify URI <spotify:track:3a94TbZOxhkI9xuNwYL53b>
[2023-06-28T18:54:36Z ERROR librespot_playback::player] Unable to load encrypted file: Error { kind: FailedPrecondition, error: ParseIntError { kind: InvalidDigit } }
[2023-06-28T18:54:36Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:3a94TbZOxhkI9xuNwYL53b")>: ()
[2023-06-28T18:54:37Z INFO  librespot_connect::spirc] Resolved 50 tracks from <"spotify:playlist:37i9dQZF1E3718VTRzJpFT">
[2023-06-28T18:54:37Z INFO  librespot_playback::player] Loading <Breaking the Habit> with Spotify URI <spotify:track:3dxiWIBVJRlqh9xk144rf4>
[2023-06-28T18:54:37Z ERROR librespot_playback::player] Unable to load encrypted file: Error { kind: FailedPrecondition, error: ParseIntError { kind: InvalidDigit } }

Maybe somethin gon the spotify side?
Im running librespot on a raspberry 4 with a digital output hat attached under arch linux.
Thanks for your help.

Originally created by @Mitschmaster on GitHub (Jun 28, 2023). Original GitHub issue: https://github.com/librespot-org/librespot/issues/1182 I cant play anything with my spotify box. On every song i get "Unable to load encrypted file". I dont know when the thing broke exactly. I did a new build from source recently(but did not test immediately). But im not shure if that was the cause as i jumped back the commits, build again and got the same error. ``` [2023-06-28T18:54:29Z INFO librespot] librespot 0.5.0-dev 4d402e6 (Built on 2023-06-28, Build ID: Z7nIpPHv, Profile: release) [2023-06-28T18:54:36Z INFO librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Log(60.0) [2023-06-28T18:54:36Z INFO librespot_playback::convert] Converting with ditherer: tpdf [2023-06-28T18:54:36Z INFO librespot_playback::audio_backend::alsa] Using AlsaSink with format: S16 [2023-06-28T18:54:36Z INFO librespot_core::session] Connecting to AP "ap-gew4.spotify.com:4070" [2023-06-28T18:54:36Z INFO librespot_core::session] Authenticated as "****" ! [2023-06-28T18:54:36Z INFO librespot_core::session] Country: "DE" [2023-06-28T18:54:36Z INFO librespot_core::spclient] Resolved "gew4-spclient.spotify.com:443" as spclient access point [2023-06-28T18:54:36Z INFO librespot_playback::player] Loading <Black Summer> with Spotify URI <spotify:track:3a94TbZOxhkI9xuNwYL53b> [2023-06-28T18:54:36Z ERROR librespot_playback::player] Unable to load encrypted file: Error { kind: FailedPrecondition, error: ParseIntError { kind: InvalidDigit } } [2023-06-28T18:54:36Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:3a94TbZOxhkI9xuNwYL53b")>: () [2023-06-28T18:54:37Z INFO librespot_connect::spirc] Resolved 50 tracks from <"spotify:playlist:37i9dQZF1E3718VTRzJpFT"> [2023-06-28T18:54:37Z INFO librespot_playback::player] Loading <Breaking the Habit> with Spotify URI <spotify:track:3dxiWIBVJRlqh9xk144rf4> [2023-06-28T18:54:37Z ERROR librespot_playback::player] Unable to load encrypted file: Error { kind: FailedPrecondition, error: ParseIntError { kind: InvalidDigit } } ``` Maybe somethin gon the spotify side? Im running librespot on a raspberry 4 with a digital output hat attached under arch linux. Thanks for your help.
kerem 2026-02-27 19:31:14 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@roderickvd commented on GitHub (Jun 28, 2023):

Can you post debug logs?

<!-- gh-comment-id:1612014410 --> @roderickvd commented on GitHub (Jun 28, 2023): Can you post debug logs?
Author
Owner

@Mitschmaster commented on GitHub (Jun 28, 2023):

sure
debug.log

<!-- gh-comment-id:1612032422 --> @Mitschmaster commented on GitHub (Jun 28, 2023): sure [debug.log](https://github.com/librespot-org/librespot/files/11899579/debug.log)
Author
Owner

@eHallberg commented on GitHub (Jun 28, 2023):

Same issue for me, started a few days ago. So far i have tried to update and rebuild but have same problem. For me it is all songs.

<!-- gh-comment-id:1612080182 --> @eHallberg commented on GitHub (Jun 28, 2023): Same issue for me, started a few days ago. So far i have tried to update and rebuild but have same problem. For me it is all songs.
Author
Owner

@Mitschmaster commented on GitHub (Jun 30, 2023):

it works. thank you

<!-- gh-comment-id:1614384630 --> @Mitschmaster commented on GitHub (Jun 30, 2023): it works. thank you
Author
Owner

@ulongx commented on GitHub (Jul 16, 2025):

Hello, I also encountered the same error as you. The software version used is librespot 0.6.0-dev 80c27ec, and the error date is:


[librespot error] [2025-07-16T02:45:20Z WARN  libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }

[librespot error] [2025-07-16T02:45:22Z WARN  libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }

[librespot error] [2025-07-16T02:45:22Z WARN  librespot_connect::state::context] couldn't load context info because: context is not available. type: Default
[2025-07-16T02:45:22Z WARN  librespot_connect::state::context] couldn't load context info because: context is not available. type: Default

[librespot error] [2025-07-16T02:45:23Z INFO  librespot_playback::player] Loading <Soda Pop> with Spotify URI <spotify:track:02sy7FAs8dkDNYsHp4Ul3f>

[librespot error] [2025-07-16T02:45:23Z ERROR librespot_playback::player] Unable to load encrypted file: Error { kind: FailedPrecondition, error: StatusCode(400) }

[librespot error] [2025-07-16T02:45:23Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:02sy7FAs8dkDNYsHp4Ul3f")>: ()

[librespot error] [2025-07-16T02:45:23Z INFO  librespot_playback::player] Loading <Messy (From F1® The Movie)> with Spotify URI <spotify:track:6Wobsw9uZ0D0xkfOjxXSq9>

[librespot error] [2025-07-16T02:45:23Z ERROR librespot_playback::player] Unable to load encrypted file: Error { kind: FailedPrecondition, error: StatusCode(400) }

[librespot error] [2025-07-16T02:45:23Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:6Wobsw9uZ0D0xkfOjxXSq9")>: ()

[librespot error] [2025-07-16T02:45:24Z INFO  librespot_playback::player] Loading <Don’t Say You Love Me> with Spotify URI <spotify:track:27xkOIER6uDLKALIelHylZ>

[librespot error] [2025-07-16T02:45:24Z ERROR librespot_playback::player] Unable to load encrypted file: Error { kind: FailedPrecondition, error: StatusCode(400) }

[librespot error] [2025-07-16T02:45:24Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:27xkOIER6uDLKALIelHylZ")>: ()
[2025-07-16T02:45:24Z INFO  librespot_connect::spirc] Not playing next track because there are no more tracks left in queue.

[librespot error] [2025-07-16T02:45:26Z WARN  libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" }

<!-- gh-comment-id:3076543610 --> @ulongx commented on GitHub (Jul 16, 2025): Hello, I also encountered the same error as you. The software version used is librespot 0.6.0-dev 80c27ec, and the error date is: ```shell [librespot error] [2025-07-16T02:45:20Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" } [librespot error] [2025-07-16T02:45:22Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" } [librespot error] [2025-07-16T02:45:22Z WARN librespot_connect::state::context] couldn't load context info because: context is not available. type: Default [2025-07-16T02:45:22Z WARN librespot_connect::state::context] couldn't load context info because: context is not available. type: Default [librespot error] [2025-07-16T02:45:23Z INFO librespot_playback::player] Loading <Soda Pop> with Spotify URI <spotify:track:02sy7FAs8dkDNYsHp4Ul3f> [librespot error] [2025-07-16T02:45:23Z ERROR librespot_playback::player] Unable to load encrypted file: Error { kind: FailedPrecondition, error: StatusCode(400) } [librespot error] [2025-07-16T02:45:23Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:02sy7FAs8dkDNYsHp4Ul3f")>: () [librespot error] [2025-07-16T02:45:23Z INFO librespot_playback::player] Loading <Messy (From F1® The Movie)> with Spotify URI <spotify:track:6Wobsw9uZ0D0xkfOjxXSq9> [librespot error] [2025-07-16T02:45:23Z ERROR librespot_playback::player] Unable to load encrypted file: Error { kind: FailedPrecondition, error: StatusCode(400) } [librespot error] [2025-07-16T02:45:23Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:6Wobsw9uZ0D0xkfOjxXSq9")>: () [librespot error] [2025-07-16T02:45:24Z INFO librespot_playback::player] Loading <Don’t Say You Love Me> with Spotify URI <spotify:track:27xkOIER6uDLKALIelHylZ> [librespot error] [2025-07-16T02:45:24Z ERROR librespot_playback::player] Unable to load encrypted file: Error { kind: FailedPrecondition, error: StatusCode(400) } [librespot error] [2025-07-16T02:45:24Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:27xkOIER6uDLKALIelHylZ")>: () [2025-07-16T02:45:24Z INFO librespot_connect::spirc] Not playing next track because there are no more tracks left in queue. [librespot error] [2025-07-16T02:45:26Z WARN libmdns::fsm] error sending packet Os { code: 65, kind: HostUnreachable, message: "No route to host" } ```
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#548
No description provided.