fedarovich / qbittorrent-cli

Command line interface for QBittorrent
MIT License
303 stars 16 forks source link

Powershell - The handle is invalid #53

Closed LordZozzy closed 8 months ago

LordZozzy commented 3 years ago

When issuing the torrent list command with any of the arguments (except for the help argument), it throws a "The handle is invalid" error. The error is not present when running the same command from CMD.exe. Torrent add works fine.

image

OS: WinSrv2016 PS version: 5.1 qbt-cli version: 1.7.21116.1 QBT version: 4.3.5

LordZozzy commented 2 years ago

?

Rand-Random commented 2 years ago

You can overcome the issue by specifing a --format as json or csv. https://github.com/fedarovich/qbittorrent-cli/wiki/Output-Formats

the default output format, tries to make the output as beautiful as possible for the window, but when you run the command without a window it will fail with this exception.