First of all, I want to say thank you for a super nice program. I set Sonarr up on September 19th 2015 and up until about 3 days ago, it has worked flawlessly. I noticed 3 days ago that it wasn’t pulling anything from NZBGeek, so I opened the indexers and tested the connection. It failed with “API Key Invalid”. I did some quick internet searching and found out that this was due to dotNET 4.5… So I checked my version. I was already at 4.5.2. I went and downloaded the preview of 4.6 and installed that. I got the same error. I completely removed all of dotNET 4 and above and reinstalled it. I get the same error. If I just have dotNET 4.0 installed I get the unable to connect error after a timeout. As soon as I reinstall dotNET 4.5.2+, it instantly gives the API Key Invalid error. I have even generated a new API on NZBGeek and got the same results.
I am running server 2008 r2 standard. I am at my wits end on this one… Any suggestions?
Here is what I have done so far:
uninstalled and reinstalled dotNET 4.0, 4.5.2, 4.5.3, and 4.6
regenerated new API Key on NZBGeek
Uninstalled and reinstalled Sonarr
Stopped and Started the Sonarr service a Gabillion times
Said a few choice words and walked away for a while
Came in here and let my first post be a doozy
Here is what the log says about the connection try:
15-9-30 14:31:59.2|Warn|Newznab|Indexer returned result for RSS URL, API Key appears to be invalid
15-9-30 14:31:59.3|Warn|NzbDroneErrorPipeline|Invalid request Validation failed:
– Invalid API Key
The reason .net 4.5 is required is for SSL, it doesn’t affect the API key.
If the nzbgeek server is returning an invalid API key response there are a limited number of reasons (off the top of my head):
The API Key is wrong
They are incorrectly telling Sonarr the API key is wrong
The wrong API URL is being used (at one point they had two different API URLs, which I believe were entirely separate sites)
The API key being sent is truncated and ends up being wrong
If you put the same URL In your browser (one that hasn’t logged into the site to ensure its not using cookie based authentication) that Sonarr used (you can get the exact URL from debug logs), does it work? (make sure you put the proper API Key in since Sonarr strips it out when its logging it).
Thank you for the quick reply Markus101. I have enabled debug logging and tried it again. I copied the URL out of the log and replaced the removed API Key and tried to go to the URL. Here is the message I got. I have contacted NZBGeek support to see if they can get this remedied.
This issue is resolved. I was getting the error message of “API Key Invalid” because my account with NZBGeek was flagged for some reason. NZBGeek support unflagged my account and it is now working again.
Thanks for your help Markus101. If I hadn’t done what you suggested with the API url, I would have not known my account was flagged.