qbit icon indicating copy to clipboard operation
qbit copied to clipboard

BadResponse Error when trying to login

Open DestinyofYeet opened this issue 1 year ago • 1 comments

Hi,

calling

client.login(true).await.unwrap();

fails with a

called `Result::unwrap()` on an `Err` value: BadResponse { explain: "Failed to extract cookie from response" }

error.

This happens when trying to use credentials. When setting the WebUI to bypass authentication it doesn't come up log.txt

Qbittorrent version: 4.6.4 Qbit-rs: 0.4.1

DestinyofYeet avatar Mar 31 '24 15:03 DestinyofYeet

Did you try to manually request the API and see if the cookie header is being set? Also, please provide more information on how you produce the error, and please make sure your credential is valid.

George-Miao avatar Apr 30 '24 18:04 George-Miao

Hey, took a look at my project again and realized that the error was due to my credentials not being parsed correctly => They were invalid.

DestinyofYeet avatar Aug 28 '24 12:08 DestinyofYeet