{"action":"created","issue":{"url":"https://api.github.com/repos/Sonarr/Sonarr/issues/2438","repository_url":"https://api.github.com/repos/Sonarr/Sonarr","labels_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/2438/labels{/name}","comments_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/2438/comments","events_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/2438/events","html_url":"https://github.com/Sonarr/Sonarr/issues/2438","id":301704928,"number":2438,"title":"Sonarr 2.0.0.5153 can no longer remove downloads from qBittorrent","user":{"login":"teejo75","id":437200,"avatar_url":"https://avatars0.githubusercontent.com/u/437200?v=4","gravatar_id":"","url":"https://api.github.com/users/teejo75","html_url":"https://github.com/teejo75","followers_url":"https://api.github.com/users/teejo75/followers","following_url":"https://api.github.com/users/teejo75/following{/other_user}","gists_url":"https://api.github.com/users/teejo75/gists{/gist_id}","starred_url":"https://api.github.com/users/teejo75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teejo75/subscriptions","organizations_url":"https://api.github.com/users/teejo75/orgs","repos_url":"https://api.github.com/users/teejo75/repos","events_url":"https://api.github.com/users/teejo75/events{/privacy}","received_events_url":"https://api.github.com/users/teejo75/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-02T09:33:31Z","updated_at":"2018-03-02T09:51:26Z","closed_at":null,"author_association":"NONE","body":"## Bug Report\r\n\r\nSonarr no longer removes downloads from qbittorrent. This was working fine prior to the current version.\r\n\r\n### System Information/Logs\r\n\r\n**Sonarr Version:** 2.0.0.5153\r\n\r\n**Operating System:** Windows 2012 R2\r\n\r\n**.net Framework (Windows) or mono (macOS/Linux) Version:** \r\n\r\n**Link to Log Files (debug or trace):** \r\n```\r\n18-3-2 17:20:41.1|Error|DownloadEventHub|Couldn't remove item from client SomeFile.S1E1.720p.HDTV.x264\r\n\r\n[v2.0.0.5153] NzbDrone.Core.Download.Clients.DownloadClientException: Failed to connect to qBittorrent, check your settings. ---> NzbDrone.Common.Http.HttpException: HTTP request failed: [400:BadRequest] [POST] at [http://192.168.1.54:8080/command/deletePerm]\r\n   at NzbDrone.Common.Http.HttpClient.Execute(HttpRequest request) in M:\\BuildAgent\\work\\b69c1fe19bfc2c38\\src\\NzbDrone.Common\\Http\\HttpClient.cs:line 94\r\n   at NzbDrone.Core.Download.Clients.QBittorrent.QBittorrentProxy.ProcessRequest(HttpRequestBuilder requestBuilder, QBittorrentSettings settings) in M:\\BuildAgent\\work\\b69c1fe19bfc2c38\\src\\NzbDrone.Core\\Download\\Clients\\QBittorrent\\QBittorrentProxy.cs:line 225\r\n   --- End of inner exception stack trace ---\r\n   at NzbDrone.Core.Download.Clients.QBittorrent.QBittorrentProxy.ProcessRequest(HttpRequestBuilder requestBuilder, QBittorrentSettings settings) in M:\\BuildAgent\\work\\b69c1fe19bfc2c38\\src\\NzbDrone.Core\\Download\\Clients\\QBittorrent\\QBittorrentProxy.cs:line 241\r\n   at NzbDrone.Core.Download.Clients.QBittorrent.QBittorrentProxy.RemoveTorrent(String hash, Boolean removeData, QBittorrentSettings settings) in M:\\BuildAgent\\work\\b69c1fe19bfc2c38\\src\\NzbDrone.Core\\Download\\Clients\\QBittorrent\\QBittorrentProxy.cs:line 118\r\n   at NzbDrone.Core.Download.Clients.QBittorrent.QBittorrent.RemoveItem(String hash, Boolean deleteData) in M:\\BuildAgent\\work\\b69c1fe19bfc2c38\\src\\NzbDrone.Core\\Download\\Clients\\QBittorrent\\QBittorrent.cs:line 167\r\n   at NzbDrone.Core.Download.DownloadEventHub.RemoveFromDownloadClient(TrackedDownload trackedDownload) in M:\\BuildAgent\\work\\b69c1fe19bfc2c38\\src\\NzbDrone.Core\\Download\\DownloadEventHub.cs:line 67\r\n\r\n18-3-2 17:20:41.2|Warn|HttpClient|HTTP Error - Res: [POST] http://192.168.1.54:8080/command/deletePerm: 400.BadRequest\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Sonarr/Sonarr/issues/comments/369875470","html_url":"https://github.com/Sonarr/Sonarr/issues/2438#issuecomment-369875470","issue_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/2438","id":369875470,"user":{"login":"teejo75","id":437200,"avatar_url":"https://avatars0.githubusercontent.com/u/437200?v=4","gravatar_id":"","url":"https://api.github.com/users/teejo75","html_url":"https://github.com/teejo75","followers_url":"https://api.github.com/users/teejo75/followers","following_url":"https://api.github.com/users/teejo75/following{/other_user}","gists_url":"https://api.github.com/users/teejo75/gists{/gist_id}","starred_url":"https://api.github.com/users/teejo75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teejo75/subscriptions","organizations_url":"https://api.github.com/users/teejo75/orgs","repos_url":"https://api.github.com/users/teejo75/repos","events_url":"https://api.github.com/users/teejo75/events{/privacy}","received_events_url":"https://api.github.com/users/teejo75/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T09:51:26Z","updated_at":"2018-03-02T09:51:26Z","author_association":"NONE","body":"https://github.com/Sonarr/Sonarr/blob/99ee59e9cc75ca79d5814578b2d529920f8116cc/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentProxy.cs#L115\r\n\r\nThis line is adding the form parameter 'category', and according to the API, only 'hashes' is required. This could be why the request is failing.\r\n\r\nhttps://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-Documentation#delete-torrent"}}
{"actor":{"display_login":"teejo75"}}