Skip to content

Handle 204 No Content response for qBittorrent login - #39

Open
Aractor wants to merge 1 commit into
golift:mainfrom
Aractor:fix/qbittorrent-204-login
Open

Handle 204 No Content response for qBittorrent login#39
Aractor wants to merge 1 commit into
golift:mainfrom
Aractor:fix/qbittorrent-204-login

Conversation

@Aractor

@Aractor Aractor commented Jul 24, 2026

Copy link
Copy Markdown

qBittorrent 5.2.0 changed /api/v2/auth/login to return "204 No Content" on success instead of"200 OK" with "Ok." in the body. This breaks login(), which only accepts the old 200+"Ok." response — so auth fails here even with correct credentials, even though qBittorrent actually logged in fine and set a valid session cookie.

Fix: Treat the 204 response as a successful login. Existing 200/"Ok." check is untouched, ensuring older qBittorrent versions are unaffected.

This same qBittorrent 5.2.0 change has already caused the same auth failure in other projects — see Radarr (#11339), Whisparr (#1082), and Homepage (discussion #6650).

I tested locally against qBittorrent 5.2.x (login + GetXfers work) and an older qBittorrent version (no change in behavior) to confirm functionality.

Update login response handling for qBittorrent 5.2.0 to accept 204 No Content as a successful login.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant