Skip to content

Connection problems when requesting client token #1437

@dbischof90

Description

@dbischof90

Description

A cross-compiled librespot client for bullseye doesn't successfully run with a zeroconf backend.

Version

librespot 0.6.0-dev 7003e98 on armhf

How to reproduce

Steps to reproduce the behavior in librespot e.g.

  1. Clone the repository
  2. Replace all occurrences of bookwork in contrib/Dockerfile with bullseye and remove armsel
  3. Compile with any zeroconf-backend
  4. Launch ./librespot --name "MyLibrespotPlayer" --backend alsa --zeroconf-backend avahi --verbose

Log

[2025-01-11T16:20:36Z INFO  librespot] librespot 0.6.0-dev 7003e98 (Built on 2025-01-11, Build ID: KBltLc71, Profile: release)
[2025-01-11T16:20:36Z TRACE librespot] Command line argument(s):
[2025-01-11T16:20:36Z TRACE librespot] 		name "MyLibrespotPlayer"
[2025-01-11T16:20:36Z TRACE librespot] 		backend "alsa"
[2025-01-11T16:20:36Z TRACE librespot] 		zeroconf-backend "avahi"
[2025-01-11T16:20:36Z TRACE librespot] 		verbose
[2025-01-11T16:20:36Z DEBUG librespot_core::session] new Session
[2025-01-11T16:20:36Z DEBUG librespot_discovery::server] Zeroconf server listening on 0.0.0.0:37947
[2025-01-11T16:20:36Z INFO  librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Log(60.0)
[2025-01-11T16:20:36Z DEBUG librespot_playback::player] new Player [0]
[2025-01-11T16:20:36Z INFO  librespot_playback::convert] Converting with ditherer: tpdf
[2025-01-11T16:20:36Z INFO  librespot_playback::audio_backend::alsa] Using AlsaSink with format: S16
[2025-01-11T16:20:36Z DEBUG librespot_discovery] Pinged Avahi: Available
[2025-01-11T16:20:36Z TRACE librespot_discovery] Connected to Avahi
[2025-01-11T16:20:36Z DEBUG librespot_discovery] Commited zeroconf service with name MyLibrespotPlayer
[2025-01-11T16:20:36Z INFO  librespot_discovery] Published zeroconf service
[2025-01-11T16:20:48Z DEBUG librespot_discovery::server] POST "/" {}
[2025-01-11T16:20:48Z DEBUG librespot_core::session] Shutdown: Invalidating session
[2025-01-11T16:20:48Z DEBUG librespot::component] new MercuryManager
[2025-01-11T16:20:48Z DEBUG librespot::component] new ChannelManager
[2025-01-11T16:20:48Z DEBUG librespot_core::session] new Session
[2025-01-11T16:20:48Z DEBUG librespot_connect::spirc] new Spirc[0]
[2025-01-11T16:20:48Z DEBUG librespot_playback::player] command=SetSession
[2025-01-11T16:20:48Z DEBUG librespot_core::session] drop Session
[2025-01-11T16:20:48Z DEBUG librespot::component] drop ChannelManager
[2025-01-11T16:20:48Z DEBUG librespot::component] new DealerManager
[2025-01-11T16:20:48Z DEBUG librespot::component] drop MercuryManager
[2025-01-11T16:20:48Z DEBUG librespot::component] new SpClient
[2025-01-11T16:20:48Z DEBUG librespot_core::spclient] Client token unavailable or expired, requesting new token.
[2025-01-11T16:20:48Z DEBUG librespot_core::http_client] Requesting https://clienttoken.spotify.com/v1/clienttoken

Nothing happens afterwards.

Host (what you are running librespot on):

  • OS: Debian Bullseye (armhf)
  • Platform: Vero V (OSMC)

Additional context

The error persists with all zeroconf backends. The speaker can be found without problems. The internet is reachable from the device.

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