[GH-ISSUE #657] spotify_player unable to connect to default device, and JSON parse errors during search #1319

Closed
opened 2026-03-14 14:22:33 +03:00 by kerem · 1 comment
Owner

Originally created by @zeffo on GitHub (Jan 6, 2025).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/657

Describe the bug
spotify_player is unable to connect to the default device after launch, with Spotify Connect configured (with a custom client ID). Playing a track will successfully connect to the device and start playback.

Additionally, trying to search a track occasionally results in a JSON parse error.

To Reproduce

  • Setup Spotify Connect
  • Authenticate spotify_player and launch
  • Search for a track

Expected behaviour
spotify_player connects to the default device, and searching for a track yields results.

Log and backtrace
backtrace is empty. Log: https://0x0.st/8iVM.log

Relevant errors:

  • 2025-01-06T05:40:16.511429Z ERROR librespot_connect::spirc: ContextError: Error { kind: NotFound, error: StatusCode(404) } (after launching, perhaps related to the device connection issue?)
  • 2025-01-06T05:40:27.627403Z ERROR client_request{request=Search("doechii")}: spotify_player::client::handlers: Failed to handle client request: json parse error: invalid type: null, expected a boolean at line 1 column 5284: invalid type: null, expected a boolean at line 1 column 5284 (after searching)

Environment

  • OS: Arch Linux
  • Application version: 0.20.4
  • Application features: All features enabled (via the AUR spotify-player-full package)
Originally created by @zeffo on GitHub (Jan 6, 2025). Original GitHub issue: https://github.com/aome510/spotify-player/issues/657 **Describe the bug** spotify_player is unable to connect to the default device after launch, with Spotify Connect configured (with a custom client ID). Playing a track will successfully connect to the device and start playback. Additionally, trying to search a track occasionally results in a JSON parse error. **To Reproduce** - Setup Spotify Connect - Authenticate spotify_player and launch - Search for a track **Expected behaviour** spotify_player connects to the default device, and searching for a track yields results. **Log and backtrace** backtrace is empty. Log: https://0x0.st/8iVM.log Relevant errors: - `2025-01-06T05:40:16.511429Z ERROR librespot_connect::spirc: ContextError: Error { kind: NotFound, error: StatusCode(404) }` (after launching, perhaps related to the device connection issue?) - `2025-01-06T05:40:27.627403Z ERROR client_request{request=Search("doechii")}: spotify_player::client::handlers: Failed to handle client request: json parse error: invalid type: null, expected a boolean at line 1 column 5284: invalid type: null, expected a boolean at line 1 column 5284` (after searching) **Environment** - OS: Arch Linux - Application version: 0.20.4 - Application features: All features enabled (via the AUR spotify-player-full package)
kerem 2026-03-14 14:22:33 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@zeffo commented on GitHub (Jan 15, 2025):

Seems to have been fixed, probably spotify API error :)

<!-- gh-comment-id:2591619773 --> @zeffo commented on GitHub (Jan 15, 2025): Seems to have been fixed, probably spotify API error :)
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/spotify-player#1319
No description provided.