George-Miao / qbit

A Rust library for interacting with qBittorrent's Web API
https://docs.rs/qbit-rs
MIT License
32 stars 12 forks source link

BadResponse Error when trying to login #12

Open DestinyofYeet opened 4 months ago

DestinyofYeet commented 4 months ago

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

George-Miao commented 3 months ago

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.