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

Can't set up qbt-cli to work with Basic Auth

Open dmilojevic opened this issue 3 years ago • 0 comments

Hello. I am trying to use qbt clie in the following scenario.

qBittorrent web ui is available via Apache reverse proxy with Basic Auth on the url like https://example.mydomain.com/.private/qb/. I try to set up qbt-cli in the following way: qbt network settings -i true qbt settings set url https://example.mydomain.com/.private/qb/ qbt settings set username myaccount qbt settings set password

When I try to execute something like qbt server info I get the error message "Response status code does not indicate success: 404 (Not Found)."

When I check Apache access log I see the following "GET /version/api HTTP/1.1" 404 3341 "-" "-" "POST /api/v2/auth/login HTTP/1.1" 404 424 "-" "-"

I'm confused. Why is qbt cli not trying at least to check the api version in the subdirectory of the url I supplied?

Thanks a lot in advance!

dmilojevic avatar Mar 17 '21 18:03 dmilojevic