Been using Sonarr for awhile now and I love it!. Decided to try my hand at using qbittorrent and got everything setup but when Sonarr attempts to validate the /version/api string qbittorrent is on version 3.3.1 and the web url returns a 7.
Based on this file: src/NzbDrone.Core/Download/Clients/qBittorrent/QBittorrent.cs
I was able to determine that Sonarr seems to only go up to 6 on line 196 which i’m persuming is the issue. since version 3.3.1 of qbittorrent has an API of 7 Sonarr isn’t quite sure what to read from the output so it generates a 400 error.
If you need more information just let me know but hopefully this gets you pointed in the right direction. I’m guessing this’ll be a simple fix.
API version 5 is the minimum allowed version, though version 6 is recommended to support setting the category through the API.
The 400 response is a response from qBittorrent when Sonarr asks for its version number, Sonarr makes a very simple request to qBittorrent, but in some setup it fails to respond properly and instead returns a 400 response.
If you’re seeing this, please let us know:
Which version of Sonarr
Which version of qBittorrent
Which OS Sonarr is running on
Which OS qBittorrent is running on
Which version of mono (is Sonarr is not running on Windows)
In response to your questions here are the answers:
Which version of Sonarr? 2.0.0.3735 ( upgraded to dev version in hopes that it fixed the issue )
Which version of qBittorrent? qBittorrent v3.3.1
Which OS Sonarr is running on? Ubuntu LTS 14.04.3
Which OS qBittorrent is running on? Ubuntu LTS 14.04.3
Which version mono? Mono 4.2.1
version of Sonarr: 2.0.0.3732
version of qBittorrent: 3.3.2
Sonarr is running on ubuntu server 14.04
qBittorrent is running on windows 7
version of mono:4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Nov 12 09:52:44 UTC 2015)
Thanks for the information, this is affecting Sonarr on mono only and seems to be a bug with the library we’re using to make connections to download clients, but qBittorrent is extra strict and is failing.
Just installed all of this today hoping to get it setup but I ran into this same issue
Sonarr Ver. 2.0.0.3934
qBittorrent: 3.3.3
Sonarr is running on Ubuntu Server 14.04
QBittorrent also on Ubuntu Server 14.04
I put Transmission BT Client on which seems to work but I really like qBittorrent, the ability to make changes without having to sudo nano edit_some_file.conf to change my password would be nice.
Which version of Sonarr: 2.0.0.3970 - 2016-03-17 (DEVELOP)
Which version of qBittorrent:qBittorrent 3.3.3
Which OS Sonarr is running on: Windows 10_x64
Which OS qBittorrent is running on: Windows 10_x64
On the download clients page if I use the test button, I get a success message.
This was all working before the install/upgrade today, error in log is:
Couldn’t add report to download queue. XXXXXXXXXXXXXXXXXXXXX: Failed to connect to download client
NzbDrone.Core.Download.Clients.DownloadClientException: Failed to connect to download client —> NzbDrone.Common.Http.HttpException: HTTP request failed: [400:BadRequest] [POST] at [http://localhost:8080/command/download?urls=magnetXXXXXXXXXXX]
at NzbDrone.Common.Http.HttpClient.Execute(HttpRequest request) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Http\HttpClient.cs:line 102
at NzbDrone.Core.Download.Clients.QBittorrent.QBittorrentProxy.ProcessRequest[TResult](HttpRequestBuilder requestBuilder, QBittorrentSettings settings) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\qBittorrent\QBittorrentProxy.cs:line 146
— End of inner exception stack trace —
at NzbDrone.Core.Download.Clients.QBittorrent.QBittorrentProxy.ProcessRequest[TResult](HttpRequestBuilder requestBuilder, QBittorrentSettings settings) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\qBittorrent\QBittorrentProxy.cs:line 162
at NzbDrone.Core.Download.Clients.QBittorrent.QBittorrentProxy.AddTorrentFromUrl(String torrentUrl, QBittorrentSettings settings) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\qBittorrent\QBittorrentProxy.cs:line 73
at NzbDrone.Core.Download.Clients.QBittorrent.QBittorrent.AddFromMagnetLink(RemoteEpisode remoteEpisode, String hash, String magnetLink) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\qBittorrent\QBittorrent.cs:line 37
at NzbDrone.Core.Download.TorrentClientBase1.DownloadFromMagnetUrl(RemoteEpisode remoteEpisode, String magnetUrl) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\TorrentClientBase.cs:line 176 at NzbDrone.Core.Download.TorrentClientBase1.Download(RemoteEpisode remoteEpisode) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\TorrentClientBase.cs:line 75
at NzbDrone.Core.Download.DownloadService.DownloadReport(RemoteEpisode remoteEpisode) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\DownloadService.cs:line 66
at NzbDrone.Core.Download.ProcessDownloadDecisions.ProcessDecisions(List`1 decisions) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\ProcessDownloadDecisions.cs:line 74