HTTP request failed

Sonarr version (2.0.0.3970):
Windows 10

Sonarr not adding anything to utorrent queue.
Manual search gives me results but when i try to add them cloud turns red with

HTTP request failed:[400:badrequest][GET] at [http://localhost:49587/gui/token.html]

Help please

That sounds to me like the API key or however you login to your indexer is not authenticated or working anymore, can you test the connection with your indexer(s)?

Giving a bit more information about the error or logs would help :slight_smile: (what is the text that sonarr displays when the cloud turns red ?)

HTTP request failed:[400:badrequest][GET] at [http://localhost:49587/gui/token.html]

This is exactly what is displayed when it turns red

tested my indexers with no problems

these are the logs

16-3-17 02:56:29.8|Warn|DownloadMonitoringService|Unable to retrieve queue and history items from utorrent

[v2.0.0.3969] NzbDrone.Common.Http.HttpException: HTTP request failed: [400:BadRequest] [GET] at [http://localhost:49587/gui/token.html]
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.UTorrent.UTorrentProxy.AuthenticateClient(HttpRequestBuilder requestBuilder, UTorrentSettings settings, Boolean reauthenticate) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\uTorrent\UTorrentProxy.cs:line 233
at NzbDrone.Core.Download.Clients.UTorrent.UTorrentProxy.ProcessRequest(HttpRequestBuilder requestBuilder, UTorrentSettings settings) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\uTorrent\UTorrentProxy.cs:line 170
at NzbDrone.Core.Download.Clients.UTorrent.UTorrentProxy.GetTorrents(UTorrentSettings settings) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\uTorrent\UTorrentProxy.cs:line 78
at NzbDrone.Core.Download.Clients.UTorrent.UTorrent.GetItems() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\uTorrent\UTorrent.cs:line 80
at NzbDrone.Core.Download.TrackedDownloads.DownloadMonitoringService.ProcessClientDownloads(IDownloadClient downloadClient) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\TrackedDownloads\DownloadMonitoringService.cs:line 86

invalid request

16-3-17 02:57:59.9|Warn|HttpClient|HTTP Error - Res: [GET] http://localhost:49587/gui/token.html : 400.BadRequest
16-3-17 02:57:59.9|Warn|DownloadMonitoringService|Unable to retrieve queue and history items from utorrent

[v2.0.0.3969] NzbDrone.Common.Http.HttpException: HTTP request failed: [400:BadRequest] [GET] at [http://localhost:49587/gui/token.html]
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.UTorrent.UTorrentProxy.AuthenticateClient(HttpRequestBuilder requestBuilder, UTorrentSettings settings, Boolean reauthenticate) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\uTorrent\UTorrentProxy.cs:line 233
at NzbDrone.Core.Download.Clients.UTorrent.UTorrentProxy.ProcessRequest(HttpRequestBuilder requestBuilder, UTorrentSettings settings) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\uTorrent\UTorrentProxy.cs:line 170
at NzbDrone.Core.Download.Clients.UTorrent.UTorrentProxy.GetTorrents(UTorrentSettings settings) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\uTorrent\UTorrentProxy.cs:line 78
at NzbDrone.Core.Download.Clients.UTorrent.UTorrent.GetItems() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\uTorrent\UTorrent.cs:line 80
at NzbDrone.Core.Download.TrackedDownloads.DownloadMonitoringService.ProcessClientDownloads(IDownloadClient downloadClient) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\TrackedDownloads\DownloadMonitoringService.cs:line 86

invalid request

16-3-17 02:59:29.9|Warn|HttpClient|HTTP Error - Res: [GET] http://localhost:49587/gui/token.html : 400.BadRequest
16-3-17 02:59:30.0|Warn|DownloadMonitoringService|Unable to retrieve queue and history items from utorrent

[v2.0.0.3969] NzbDrone.Common.Http.HttpException: HTTP request failed: [400:BadRequest] [GET] at [http://localhost:49587/gui/token.html]
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.UTorrent.UTorrentProxy.AuthenticateClient(HttpRequestBuilder requestBuilder, UTorrentSettings settings, Boolean reauthenticate) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\uTorrent\UTorrentProxy.cs:line 233
at NzbDrone.Core.Download.Clients.UTorrent.UTorrentProxy.ProcessRequest(HttpRequestBuilder requestBuilder, UTorrentSettings settings) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\uTorrent\UTorrentProxy.cs:line 170
at NzbDrone.Core.Download.Clients.UTorrent.UTorrentProxy.GetTorrents(UTorrentSettings settings) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\uTorrent\UTorrentProxy.cs:line 78
at NzbDrone.Core.Download.Clients.UTorrent.UTorrent.GetItems() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\Clients\uTorrent\UTorrent.cs:line 80
at NzbDrone.Core.Download.TrackedDownloads.DownloadMonitoringService.ProcessClientDownloads(IDownloadClient downloadClient) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Download\TrackedDownloads\DownloadMonitoringService.cs:line 86

ok, and have you tested the connection to utorrent? Because it seems Sonarr can’t authenticate with that one anymore, maybe the indexer works fine, but the API towards utorrent can’t properly work right now, can you test that one?

That seems to be the problem…the utorrent test keeps failing. What do I do?

go through the settings of your utorrent, maybe the api key failed and sonarr needs the new one, maybe an update changed something, double check your login settings for utorrent, if you can’t manage to get it working, post some screens so we can try to help

1 Like

the port,username and password all match on utorrent. What should i be looking for?

post some screenshots of your sonarr setup to utorrent and your utorrent settings, I’m not experienced with utorrent though

you are right, it seems to be configured well, maybe the api towards µtorrent changed and the api call is not working anymore, might be a bug then… But @Taloth or @markus101 are way more qualified to answer that one

I checked the utorrent web ui and it works perfectly on my browser as well.

I also changed the port on both utorrent and sonarr utorrent connection. No joy

Can you try again on 2.0.0.3971?

I updated to 2.0.0.3971 and now the error when i try to test utorrent is: “unknown exception unable to connect to utorrent”

Can you enable Trace logging and take a look there? (https://github.com/Sonarr/Sonarr/wiki/Log-Files)

Please note that I tested it on uTorrent 3.4.5 so it’s definitely working.
My first suspect would be firewall.

These are the logs after enabling trace logging

Component Message Time
NzbDroneErrorPipeline Invalid request Validation failed:
– Unknown exception: Unable to connect to uTorrent, please check your settings 9:05am
UTorrent Unable to connect to uTorrent, please check your settings: Unable to connect to uTorrent, please check your settings 9:05am
HttpClient HTTP Error - Res: [GET] http://localhost:9091/gui/token.html : 400.BadRequest 9:05am
NzbDroneErrorPipeline Invalid request Validation failed:
– Unknown exception: Unable to connect to uTorrent, please check your settings 9:05am
UTorrent Unable to connect to uTorrent, please check your settings: Unable to connect to uTorrent, please check your settings 9:05am
HttpClient HTTP Error - Res: [GET] http://localhost:9091/gui/token.html : 400.BadRequest 9:05am
NzbDroneErrorPipeline Invalid request Validation failed:
– Unknown exception: Unable to connect to uTorrent, please check your settings 9:05am

I also tried uninstalling sonarr and reinstalling and I encounter the same problem

Those aren’t Log Files, check System->Logs->Files or just on disk.

I just rechecked again here on Win7 with 3.4.5 build 41628, no problems.

what happens if you open http://localhost:9091/gui/token.html in your browser? (which port is it supposed to be now, 9091 or 49587?

it’s port 9091 now. I think it must be a windows 10 thing as i uninstalled and did a fresh install of sonarr and it still wont connect to utorrent.

Utorrent version 3.4.5 build 41865

here are the log txt files

here are the txt files

http://hastebin.com/eroqeraqof.1c