[GH-ISSUE #455] Unable to connect to client through CLI #1191

Open
opened 2026-03-14 13:53:01 +03:00 by kerem · 4 comments
Owner

Originally created by @dxnnv on GitHub (May 25, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/455

Describe the bug
All .\spotify-player.exe <command> commands return
Error: try to connect to a client Caused by: An existing connection was forcibly closed by the remote host. (os error 10054)

To Reproduce
Install Rust
Install the v0.18.2 binary for Windows
(Also tested this by installing with scoop, same behavior)
Extract the binary, open powershell/cmd and run .\spotify-player.exe to add credentials
Run any subcommand

Expected behaviour
The subcommand gets executed as expected, sending the request to spotify api.

Log and backtrace
Backtrace was empty, log provided

Screenshots
Screenshot

Environment

  • OS: Windows 11 Home, version 23H2, build 22631.3593
  • Application version: v0.18.2

Additional context
Seemed to work fine via the GUI in ps/cmd, was able to connect to the client and use controls just fine. Only happens when using CLI. Also tried with providing my own clientId for a valid application (also worked with GUI but not CLI)

Originally created by @dxnnv on GitHub (May 25, 2024). Original GitHub issue: https://github.com/aome510/spotify-player/issues/455 **Describe the bug** All `.\spotify-player.exe <command>` commands return `Error: try to connect to a client Caused by: An existing connection was forcibly closed by the remote host. (os error 10054) ` **To Reproduce** Install [Rust](https://www.rust-lang.org/tools/install) Install the [v0.18.2 binary for Windows](https://github.com/aome510/spotify-player/releases/download/v0.18.2/spotify_player-x86_64-pc-windows-msvc.zip) (Also tested this by installing with scoop, same behavior) Extract the binary, open powershell/cmd and run `.\spotify-player.exe` to add credentials Run any subcommand **Expected behaviour** The subcommand gets executed as expected, sending the request to spotify api. **Log and backtrace** Backtrace was empty, [log provided](https://pastebin.com/khA77QuY) **Screenshots** [Screenshot](https://dxnny.dev/imgs/VV9dxWfJH0D1InyN.png) **Environment** - OS: Windows 11 Home, version 23H2, build 22631.3593 - Application version: `v0.18.2` **Additional context** Seemed to work fine via the GUI in ps/cmd, was able to connect to the client and use controls just fine. Only happens when using CLI. Also tried with providing my own clientId for a valid application (also worked with GUI but not CLI)
Author
Owner

@aome510 commented on GitHub (May 31, 2024):

I don't have access to windows machine, so it's hard for me to debug this kind of issue. Seeking for help 👀

<!-- gh-comment-id:2141159968 --> @aome510 commented on GitHub (May 31, 2024): I don't have access to windows machine, so it's hard for me to debug this kind of issue. Seeking for help 👀
Author
Owner

@adriankarlen commented on GitHub (Sep 10, 2024):

I am getting the same issue on windows.

<!-- gh-comment-id:2341957287 --> @adriankarlen commented on GitHub (Sep 10, 2024): I am getting the same issue on windows.
Author
Owner

@hakuoku commented on GitHub (Dec 1, 2024):

It also occurs to me.

  • OS: Windows 10 Home, version 22H2, build 19045.5131
  • Application version: 0.20.3
  • PowerShell 7.2.2
<!-- gh-comment-id:2510312512 --> @hakuoku commented on GitHub (Dec 1, 2024): It also occurs to me. - OS: Windows 10 Home, version 22H2, build 19045.5131 - Application version: 0.20.3 - PowerShell 7.2.2
Author
Owner

@jayz25 commented on GitHub (Jan 12, 2025):

Hello, does anyone have a solution for this issue? I am also getting the same issue on my Windows machine.

  • OS: Windows 10 Home Single Language
  • Version: 22H2
  • OS build 19045.5247

Thanks.

<!-- gh-comment-id:2585769839 --> @jayz25 commented on GitHub (Jan 12, 2025): Hello, does anyone have a solution for this issue? I am also getting the same issue on my Windows machine. - OS: Windows 10 Home Single Language - Version: 22H2 - OS build 19045.5247 Thanks.
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#1191
No description provided.