Skip to content

Fix qBittorrent 5.2.0 authentication failure (HTTP 204 on login) - #170

Merged
pennydreadful merged 1 commit into
pennydreadful:developfrom
fronc:fix/qbittorrent-520-login
Sep 10, 2026
Merged

pennydreadful merged 1 commit into
pennydreadful:developfrom
fronc:fix/qbittorrent-520-login

Conversation

@fronc

@fronc fronc commented Jul 4, 2026 •

Copy link
Copy Markdown

qBittorrent 5.2.0 changed /api/v2/auth/login to return 204 No Content with an empty body on successful login, instead of 200 with Ok.. The auth check in QBittorrentProxyV2 treats anything that isn't Ok. as a failure, so valid credentials are rejected with "Authentication failure" even though qBittorrent logs the login as successful.

This migrates the same one-line fix Sonarr and Radarr already applied for this change: treat an empty response body as success. Bad logins are unaffected — they still return a non-empty Fails. body (older versions) or a 401/403 (5.2.0), both of which are still rejected.

Tested against qBittorrent 5.2.0: download client test and add now succeed.

Fixes #160

@jgramling17

Copy link
Copy Markdown
Collaborator

@pennydreadful This pr looks good. Any concerns?

3n8 pushed a commit to 3n8/bookshelf that referenced this pull request Aug 27, 2026
qBittorrent 5.2.0+ returns 204 No Content on successful /api/v2/auth/login
instead of 200 with body "Ok.". Treat empty bodies as success and map HTTP
401 to an authentication error, matching Sonarr/Radarr.

Also publish images as ghcr.io/3n8/bookshelf and grant the CI token the
permissions a fork needs to push packages.

Fixes pennydreadful#160, pennydreadful#165, pennydreadful#178 (unmerged upstream PRs pennydreadful#158, pennydreadful#162, pennydreadful#170).
qBittorrent 5.2.0 changed /api/v2/auth/login to return 204 No Content on
success instead of 200 with "Ok." in the body, so successful logins were
being treated as authentication failures. Accept an empty response body as
success, matching the fix already applied in Sonarr and Radarr.

Fixes pennydreadful#160
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.

qBittorrent 5.2.0 authentication failure (HTTP 204 not handled)

3 participants