API Key missing, please enter the api key from Config->General into your 3rd party program

Hi,

I am having problems getting Sonarr talking to SABnzbd.

I had a setup that worked great and decided to try moving to the development version to get torrent support, I also updated sabnzbd at the same time. Torrents worked great except Usenet no longer worked I received the error in the title even though I had the api key entered correctly in Sonarr. I decided I would rather have Usenet working so uninstalled the development version of sonarr (including deleting any left over files in programdata) and re-installed the latest main but still get the same error.

Sonarr happily adds the download client and passes when I click test but it fails to send any downloads to SABnzbd and I get an error for evey download it tries to add.
API Key missing, please enter the api key from Config->General into your 3rd party program: 192.168.192.1>NzbDrone/2.0.0.2341 (RestSharp/104.4.0.0; Windows/6.1)

The api key is in Sonarr, I have tried uninstalling and re-installing both a couple of times (including older versions in case updating caused it somehow) and am now just stuck!

Any Help would be appreciated!

Two things to double check because I had the wrong api tonight
settings, indexers, click on your client and see if the api is there.
I know its a stretch but just in case its missing

My api keys match in the “download clients” settings and in SABnzbd (the test passes as well).
In Indexers I have OZnzb.com setup with its correct api key as well, if I search for missing episodes my api requests are used on the site, so that is working OK.

Make sure you’re using the API key, not the NZB key and make sure it didn’t get cutoff. Also no need to enter the username and password.

The test in Sonarr fails for me if I put in the wrong one.

If you’re still having issues please post a trace log of Sonarr sending an nzb to SAB, it will show the full response.

HI,

I have made sure I am using the API key, it fails to pass the test using the wrong key.
Is the info below what you need?

Message
Couldn’t add report to download queue. The.Big.Bang.Theory.S08E11.The.Clean.Room.Infiltration.720p.WEB-DL.DD5.1.H.264-tek54m: Error response received from SABnzbd: API Key Required

Exception
NzbDrone.Core.Download.Clients.DownloadClientException: Error response received from SABnzbd: API Key Required

at NzbDrone.Core.Download.Clients.Sabnzbd.SabnzbdProxy.CheckForError(IRestResponse response) in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Core\Download\Clients\Sabnzbd\SabnzbdProxy.cs:line 174
at NzbDrone.Core.Download.Clients.Sabnzbd.SabnzbdProxy.ProcessRequest(IRestRequest restRequest, String action, SabnzbdSettings settings) in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Core\Download\Clients\Sabnzbd\SabnzbdProxy.cs:line 69
at NzbDrone.Core.Download.Clients.Sabnzbd.SabnzbdProxy.DownloadNzb(Byte[] nzbData, String title, String category, Int32 priority, SabnzbdSettings settings) in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Core\Download\Clients\Sabnzbd\SabnzbdProxy.cs:line 42
at NzbDrone.Core.Download.Clients.Sabnzbd.Sabnzbd.AddFromNzbFile(RemoteEpisode remoteEpisode, String filename, Byte[] fileContent) in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Core\Download\Clients\Sabnzbd\Sabnzbd.cs:line 41
at NzbDrone.Core.Download.UsenetClientBase1.Download(RemoteEpisode remoteEpisode) in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Core\Download\UsenetClientBase.cs:line 66 at NzbDrone.Core.Download.DownloadService.DownloadReport(RemoteEpisode remoteEpisode) in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Core\Download\DownloadService.cs:line 44 at NzbDrone.Core.Download.ProcessDownloadDecisions.ProcessDecisions(List1 decisions) in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Core\Download\ProcessDownloadDecisions.cs:line 75

I have uploaded the content from a fresh log file here http://pastebin.com/AyRMRpWx

Ignore it hitting the API limit as it uses up all my normal indexers ones by lunch time while nothing downloads :-S so I added a second free indexer to get a fresh log file.

Getting the config from SAB (used to verify connectivity and some SAB settings) works 14-12-13 21:45:55.8|Debug|SabnzbdProxy|Url: http://localhost:8080/api?mode=get_config&apikey=<removed>&output=json but other calls fail (checking queue and history, as well as adding).

The URL is built the same way for all calls and logged (minus the API key), which looks correct to me.

Do you have SAB added twice in Sonarr?
Which version of SAB?

Nope only once, this is a fresh install after having removed the dev branch.

I am using SAB version Version: 0.7.20
which is using Python Version: 2.5.5 (r255:77872, Jan 31 2010, 15:49:35) [MSC v.1310 32 bit (Intel)]

Thanks for helping

Could you try changing the category from #drone-factory to drone-factory.

You should also make sure drone factory is not pointed at that folder and instead use Completed Download Handling. Drone factory should be a fallback when things aren’t handled properly by Completed Download Handling (and you had to rename it to process it properly).

I had everything going directly to the drone factory folder as I have re-installed sab a couple of times during this and did not want to set up all my completed handling if I was going to have to keep removing and setting it all back up again.

Its working!Thank you!
So it seems sab does not like having categories with #'s in the names passed to it then!

Completed Download Handling doesn’t need to be setup, it just work, it talks to SAB via the API and gets a list of what needs to be imported. There is a bit of configuration if SAB and Sonarr aren’t on the same machine.

Sonarr’s handling of the special characters was wrong and we’ve fixed that to prevent this issue from reoccurring.

After your comment I went and looked it up and have it set up correctly now as I misunderstood its purpose.
Thanks for all the help