[GH-ISSUE #1107] ClientResponsePlaintext is missing required fields #514

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

Originally created by @Ovenoboyo on GitHub (Jan 21, 2023).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1107

Describe the bug
Trying to start librespot results in
could not initialize spirc: Client specified an invalid argument { Message `ClientResponsePlaintext` is missing required fields }

To reproduce
Steps to reproduce the behavior:

  1. Launch librespot with librespot -u [username] -p [password]
  2. See error

Log

[2023-01-21T16:36:17Z INFO  librespot] librespot 0.5.0-dev 4a4596f (Built on 2023-01-21, Build ID: 1674318531, Profile: release)
[2023-01-21T16:36:17Z TRACE librespot] Command line argument(s):
[2023-01-21T16:36:17Z TRACE librespot]          u "XXXXXXXX"
[2023-01-21T16:36:17Z TRACE librespot]          p "XXXXXXXX"
[2023-01-21T16:36:17Z TRACE librespot]          verbose
[2023-01-21T16:36:17Z DEBUG librespot_core::session] new Session
[2023-01-21T16:36:17Z DEBUG librespot_discovery::server] Zeroconf server listening on 0.0.0.0:36417
[2023-01-21T16:36:17Z INFO  librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Log(60.0)
[2023-01-21T16:36:17Z DEBUG librespot_connect::spirc] new Spirc[0]
[2023-01-21T16:36:17Z DEBUG librespot::component] new MercuryManager
[2023-01-21T16:36:17Z DEBUG librespot::component] new ApResolver
[2023-01-21T16:36:17Z DEBUG librespot_core::http_client] Requesting https://apresolve.spotify.com/?type=accesspoint&type=dealer&type=spclient
[2023-01-21T16:36:17Z DEBUG librespot_playback::player] new Player [0]
[2023-01-21T16:36:17Z INFO  librespot_playback::convert] Converting with ditherer: tpdf
[2023-01-21T16:36:17Z INFO  librespot_playback::audio_backend::rodio] Using Rodio sink with format S16 and cpal host: ALSA
[2023-01-21T16:36:17Z INFO  librespot_playback::audio_backend::rodio] Using audio device: default
[2023-01-21T16:36:17Z DEBUG librespot_discovery::server] Shutting down discovery server
[2023-01-21T16:36:17Z DEBUG librespot_playback::audio_backend::rodio] Rodio sink was created
[2023-01-21T16:36:17Z INFO  librespot_core::session] Connecting to AP "ap-gae2.spotify.com:4070"
[2023-01-21T16:36:17Z DEBUG librespot_playback::player] Shutting down player thread ...
[2023-01-21T16:36:17Z DEBUG librespot_playback::player] drop PlayerInternal[0]
[2023-01-21T16:36:17Z DEBUG librespot_playback::player] PlayerInternal thread finished.
[2023-01-21T16:36:17Z ERROR librespot] could not initialize spirc: Client specified an invalid argument { Message `ClientResponsePlaintext` is missing required fields }

Host (what you are running librespot on):

  • OS: Linux
  • Platform: x86_64

Additional context
This is likely caused by Missing pow_response and crypto_response in this commit. It was probably removed by accident.

Originally created by @Ovenoboyo on GitHub (Jan 21, 2023). Original GitHub issue: https://github.com/librespot-org/librespot/issues/1107 **Describe the bug** Trying to start librespot results in ```could not initialize spirc: Client specified an invalid argument { Message `ClientResponsePlaintext` is missing required fields }``` **To reproduce** Steps to reproduce the behavior: 1. Launch `librespot` with ``` librespot -u [username] -p [password] ``` 2. See error **Log** ``` [2023-01-21T16:36:17Z INFO librespot] librespot 0.5.0-dev 4a4596f (Built on 2023-01-21, Build ID: 1674318531, Profile: release) [2023-01-21T16:36:17Z TRACE librespot] Command line argument(s): [2023-01-21T16:36:17Z TRACE librespot] u "XXXXXXXX" [2023-01-21T16:36:17Z TRACE librespot] p "XXXXXXXX" [2023-01-21T16:36:17Z TRACE librespot] verbose [2023-01-21T16:36:17Z DEBUG librespot_core::session] new Session [2023-01-21T16:36:17Z DEBUG librespot_discovery::server] Zeroconf server listening on 0.0.0.0:36417 [2023-01-21T16:36:17Z INFO librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Log(60.0) [2023-01-21T16:36:17Z DEBUG librespot_connect::spirc] new Spirc[0] [2023-01-21T16:36:17Z DEBUG librespot::component] new MercuryManager [2023-01-21T16:36:17Z DEBUG librespot::component] new ApResolver [2023-01-21T16:36:17Z DEBUG librespot_core::http_client] Requesting https://apresolve.spotify.com/?type=accesspoint&type=dealer&type=spclient [2023-01-21T16:36:17Z DEBUG librespot_playback::player] new Player [0] [2023-01-21T16:36:17Z INFO librespot_playback::convert] Converting with ditherer: tpdf [2023-01-21T16:36:17Z INFO librespot_playback::audio_backend::rodio] Using Rodio sink with format S16 and cpal host: ALSA [2023-01-21T16:36:17Z INFO librespot_playback::audio_backend::rodio] Using audio device: default [2023-01-21T16:36:17Z DEBUG librespot_discovery::server] Shutting down discovery server [2023-01-21T16:36:17Z DEBUG librespot_playback::audio_backend::rodio] Rodio sink was created [2023-01-21T16:36:17Z INFO librespot_core::session] Connecting to AP "ap-gae2.spotify.com:4070" [2023-01-21T16:36:17Z DEBUG librespot_playback::player] Shutting down player thread ... [2023-01-21T16:36:17Z DEBUG librespot_playback::player] drop PlayerInternal[0] [2023-01-21T16:36:17Z DEBUG librespot_playback::player] PlayerInternal thread finished. [2023-01-21T16:36:17Z ERROR librespot] could not initialize spirc: Client specified an invalid argument { Message `ClientResponsePlaintext` is missing required fields } ``` **Host (what you are running `librespot` on):** - OS: Linux - Platform: x86_64 **Additional context** This is likely caused by [Missing pow_response and crypto_response in this commit](https://github.com/librespot-org/librespot/commit/3662302196c1aeb35501db717b88152c50212117#diff-8ce461094f17052af2518a6f12a81d4a078b567c2a717dc9333a45ae675f5013L198). It was probably removed by accident.
kerem 2026-02-27 19:31:04 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@roderickvd commented on GitHub (Jan 21, 2023):

Can you confirm and close this now #1108 is merged?

<!-- gh-comment-id:1399290642 --> @roderickvd commented on GitHub (Jan 21, 2023): Can you confirm and close this now #1108 is merged?
Author
Owner

@Ovenoboyo commented on GitHub (Jan 21, 2023):

Yup, can confirm it works. Thank you for the quick response :)

<!-- gh-comment-id:1399297938 --> @Ovenoboyo commented on GitHub (Jan 21, 2023): Yup, can confirm it works. Thank you for the quick response :)
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#514
No description provided.