Hello!.
Native streaming via librespot fails silently with an audio key error (error audio key 0 1) when attempting to play tracks. The app falls back to Spotify Connect (controlling the official Spotify client)
without notifying the user that native playback failed.
To Reproduce
- Enable native streaming in client.yml (enable_streaming: true)
- Run spotatui with --features streaming
- Press d to open device list — "spotatui" device appears
- Select "spotatui" as active device
- Play any track
- Audio plays through the official Spotify client instead of locally
Expected behavior
Audio should play locally through the machine running spotatui (native librespot playback), not through the Spotify Connect device.
Additional context
Running with RUST_LOG=debug reveals:
ERROR librespot_core::audio_key: error audio key 0 1
WARN librespot_playback::player: Unable to load key, continuing without decryption: Service unavailable { audio key error }
ERROR librespot_playback::player: Unable to read audio file: Symphonia Decoder Error: end of stream
The audio key request is explicitly rejected by Spotify's AP with error code 0x01. This occurs with both fresh OAuth credentials (AUTHENTICATION_SPOTIFY_TOKEN) and cached stored credentials (auth_type: 1).
Tested with SPOTIFY_PLAYER_CLIENT_ID = 65b708073fc0480ea92a077233ca87bd.
Desktop:
- OS: Windows 10
- Terminal: PowerShell
- Version: latest (v0.38.6)
Hello!.
Native streaming via librespot fails silently with an audio key error (error audio key 0 1) when attempting to play tracks. The app falls back to Spotify Connect (controlling the official Spotify client)
without notifying the user that native playback failed.
To Reproduce
Expected behavior
Audio should play locally through the machine running spotatui (native librespot playback), not through the Spotify Connect device.
Additional context
Running with RUST_LOG=debug reveals:
ERROR librespot_core::audio_key: error audio key 0 1
WARN librespot_playback::player: Unable to load key, continuing without decryption: Service unavailable { audio key error }
ERROR librespot_playback::player: Unable to read audio file: Symphonia Decoder Error: end of stream
The audio key request is explicitly rejected by Spotify's AP with error code 0x01. This occurs with both fresh OAuth credentials (AUTHENTICATION_SPOTIFY_TOKEN) and cached stored credentials (auth_type: 1).
Tested with SPOTIFY_PLAYER_CLIENT_ID = 65b708073fc0480ea92a077233ca87bd.
Desktop: