Skip to content

Audio key error #1649

Description

@publicstaticvoidmain42

Description

Track fails to load and play. Logs say "audio key error 0 1".

Version

0.7.0+

How to reproduce

  1. Launch librespot with --enable-oauth for authentication and some client name
  2. Authenticate and then open Spotify
  3. Using Spotify Connect try to play music on the librespot client

Log

./target/release/librespot --name "a client" --disable-discovery --enable-oauth

[2025-11-20T07:52:30Z INFO  librespot] librespot 0.8.0 c797acc (Built on 2025-11-15, Build ID: Qyl7XpHd, Profile: release)
[2025-11-20T07:52:30Z WARN  librespot] Credential caching is unavailable, but advisable when using OAuth login.
Browse to: https://accounts.spotify.com/authorize?response_type=code&client_id=65b708073fc0480ea92a077233ca87bd&state=QN_9-jOQ8hmE5R6koCDmWw&code_challenge=69FJhs46TOI3oejOi739Vl-RWMTA3sM9rPs7b4FVW18&code_challenge_method=S256&redirect_uri=http%3A%2F%2F127.0.0.1%3A5588%2Flogin&scope=app-remote-control+playlist-modify+playlist-modify-private+playlist-modify-public+playlist-read+playlist-read-collaborative+playlist-read-private+streaming+ugc-image-upload+user-follow-modify+user-follow-read+user-library-modify+user-library-read+user-modify+user-modify-playback-state+user-modify-private+user-personalized+user-read-birthdate+user-read-currently-playing+user-read-email+user-read-play-history+user-read-playback-position+user-read-playback-state+user-read-private+user-read-recently-played+user-top-read
[2025-11-20T07:52:30Z INFO  librespot_oauth] OAuth server listening on 127.0.0.1:5588
[2025-11-20T07:52:33Z INFO  librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Log(60.0)
[2025-11-20T07:52:33Z INFO  librespot_playback::convert] Converting with ditherer: tpdf
[2025-11-20T07:52:33Z INFO  librespot_playback::audio_backend::rodio] Using Rodio sink with format S16 and cpal host: ALSA
[2025-11-20T07:52:33Z INFO  librespot_playback::audio_backend::rodio] Using audio device: default
[2025-11-20T07:52:34Z INFO  librespot_core::session] Connecting to AP "ap-gew1.spotify.com:4070"
[2025-11-20T07:52:34Z INFO  librespot_core::session] Authenticated as '31uhs5qiw6bvec7yhx3uy3lfngxa' !
[2025-11-20T07:52:34Z INFO  librespot_core::session] Country: "GB"
[2025-11-20T07:52:35Z INFO  librespot_core::spclient] Resolved "gew1-spclient.spotify.com:443" as spclient access point
[2025-11-20T07:52:35Z INFO  librespot_connect::spirc] active device is <> with session <009f3713-9077-4676-8735-d2dae3d6a0fc>
[2025-11-20T07:53:08Z WARN  librespot_connect::state::context] couldn't load context info because: context is not available. type: Default
[2025-11-20T07:53:08Z INFO  librespot_playback::player] Loading <Chinatown> with Spotify URI <spotify:track:3BRfgsKjcakny2wCYfZrvz>
[2025-11-20T07:53:08Z ERROR librespot_core::audio_key] error audio key 0 1
[2025-11-20T07:53:08Z WARN  librespot_playback::player] Unable to load key, continuing without decryption: Service unavailable { audio key error }
[2025-11-20T07:53:12Z ERROR librespot_playback::player] Unable to read audio file: Symphonia Decoder Error: end of stream
[2025-11-20T07:53:12Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyUri("spotify:track:3BRfgsKjcakny2wCYfZrvz")>: ()
[2025-11-20T07:53:12Z INFO  librespot_playback::player] Loading <In Between> with Spotify URI <spotify:track:3jFCjIuQAveQdM1S7zPzJt>
[2025-11-20T07:53:12Z ERROR librespot_core::audio_key] error audio key 0 1
[2025-11-20T07:53:12Z WARN  librespot_playback::player] Unable to load key, continuing without decryption: Service unavailable { audio key error }
[2025-11-20T07:53:14Z INFO  librespot_playback::player] Loading <A Teenager in Love> with Spotify URI <spotify:track:5JMur5IZCCWUdFFRt7ekbf>
[2025-11-20T07:53:14Z ERROR librespot_core::audio_key] error audio key 0 1
[2025-11-20T07:53:14Z WARN  librespot_playback::player] Unable to load key, continuing without decryption: Service unavailable { audio key error }
[2025-11-20T07:53:17Z ERROR librespot_playback::player] Unable to read audio file: Symphonia Decoder Error: end of stream
[2025-11-20T07:53:18Z ERROR librespot_playback::player] Unable to read audio file: Symphonia Decoder Error: end of stream
[2025-11-20T07:53:18Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyUri("spotify:track:5JMur5IZCCWUdFFRt7ekbf")>: ()
[2025-11-20T07:53:18Z INFO  librespot_playback::player] Loading <Bite> with Spotify URI <spotify:track:7oviAIcW50bElbRnHPynvc>
[2025-11-20T07:53:19Z ERROR librespot_core::audio_key] error audio key 0 1
[2025-11-20T07:53:19Z WARN  librespot_playback::player] Unable to load key, continuing without decryption: Service unavailable { audio key error }
[2025-11-20T07:53:23Z ERROR librespot_playback::player] Unable to read audio file: Symphonia Decoder Error: end of stream
[2025-11-20T07:53:23Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyUri("spotify:track:7oviAIcW50bElbRnHPynvc")>: ()
[2025-11-20T07:53:23Z INFO  librespot_playback::player] Loading <Annie Blue> with Spotify URI <spotify:track:2CL9DIH08V6ZrpsmDMcZxM>
[2025-11-20T07:53:23Z ERROR librespot_core::audio_key] error audio key 0 1
[2025-11-20T07:53:23Z WARN  librespot_playback::player] Unable to load key, continuing without decryption: Service unavailable { audio key error }
[2025-11-20T07:53:26Z ERROR librespot_playback::player] Unable to read audio file: Symphonia Decoder Error: end of stream
[2025-11-20T07:53:26Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyUri("spotify:track:2CL9DIH08V6ZrpsmDMcZxM")>: ()
[2025-11-20T07:53:26Z INFO  librespot_playback::player] Loading <Don't Move> with Spotify URI <spotify:track:1BeNZQORyV0jEF2toAmrsA>
[2025-11-20T07:53:27Z ERROR librespot_core::audio_key] error audio key 0 1
[2025-11-20T07:53:27Z WARN  librespot_playback::player] Unable to load key, continuing without decryption: Service unavailable { audio key error }
[2025-11-20T07:53:32Z ERROR librespot_playback::player] Unable to read audio file: Symphonia Decoder Error: end of stream
[2025-11-20T07:53:32Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyUri("spotify:track:1BeNZQORyV0jEF2toAmrsA")>: ()
[2025-11-20T07:53:32Z INFO  librespot_playback::player] Loading <The One to Wait> with Spotify URI <spotify:track:0Q6OskXNfChXfBpN2oswue>
[2025-11-20T07:53:32Z ERROR librespot_core::audio_key] error audio key 0 1
[2025-11-20T07:53:32Z WARN  librespot_playback::player] Unable to load key, continuing without decryption: Service unavailable { audio key error }
^C[2025-11-20T07:53:35Z INFO  librespot] Gracefully shutting down
[2025-11-20T07:53:35Z WARN  librespot_connect::state::context] couldn't load context info because: context is not available. type: Default

Host (what you are running librespot on):

  • OS: Ubuntu 24.04.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions