qbittorrent-cli icon indicating copy to clipboard operation
qbittorrent-cli copied to clipboard

Powershell - The handle is invalid

Open LordZozzy opened this issue 3 years ago • 2 comments

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 avatar May 19 '21 09:05 LordZozzy

?

LordZozzy avatar Nov 08 '21 22:11 LordZozzy

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.

Rand-Random avatar Aug 16 '22 22:08 Rand-Random