message. Incorrect API key

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
hobbie2435
Posts: 3
Joined: Thu Jul 26, 2018 10:37 pm

message. Incorrect API key

Post by hobbie2435 » Thu Jul 26, 2018 11:02 pm

Getting a Exit(1) {"error".{message"."Incorrect API key}} message from sabnzbd after post processing. Probably something easy I'm missing and I apologize in advance for wasting anyone's time. The file will download just fine it just won't finish the process and rename the file and put it in it's proper place. I am using the correct API key from sab, mylar config confirms it, I even tried the nzb key from sab but that also fails. The following is the script log from sab


Requests module not found on system. I'll revert so this will work, but you probably should install
requests to bypass this in the future (ie. pip install requests)
Loading config from C:\Program Files (x86)\SABnzbd\scripts\autoProcessComics.cfg
Opening URL: http://localhost:8090/api?apikey=&apc_v ... 1&failed=0
{"error": {"message": "Incorrect API key"}}

And below is the Mylar log


2018-07-26 18:57:38 INFO [UPDATER] Updated the status (Snatched) complete for Danger Doll Squad: Galactic Gladiators Issue: 1
2018-07-26 18:57:38 INFO [UPDATER] Updating status to snatched
2018-07-26 18:57:38 INFO setting the nzbid for this download grabbed by NZB GEEK (newznab) in the nzblog to : 3cf64b9007c6cf582ddd41d568070013
2018-07-26 18:57:38 INFO Successfully sent nzb file to SABnzbd
2018-07-26 18:57:38 INFO {u'status': True, u'nzo_ids': [u'SABnzbd_nzo_okthjx']}
2018-07-26 18:57:38 INFO sending now to https://127.0.0.1:9090/sabnzbd/api
2018-07-26 18:57:38 INFO parameters set to {'nzbname': u'Danger.Doll.Squad-Galactic.Gladiators.001.2018.Digital.TanCombs.nzb', 'apikey': u'42f961e5c18a2aadacade8bff605e59f', 'name': u'http://10.81.0.6:8090/api?apikey=c6b0db ... nCombs.nzb', 'cmd': 'downloadNZB', 'cat': u'comics', 'priority': '-100', 'mode': 'addurl', 'output': 'json'}
2018-07-26 18:57:36 INFO [FAILED_DOWNLOAD_CHECKER] Successfully marked this download as Good for downloadable content
2018-07-26 18:57:36 INFO prov : NZB GEEK (newznab)[3cf64b9007c6cf582ddd41d568070013]
2018-07-26 18:57:35 INFO oneoff: False
2018-07-26 18:57:35 INFO IssueID: 664777
2018-07-26 18:57:35 INFO nzbid: 3cf64b9007c6cf582ddd41d568070013
2018-07-26 18:57:35 INFO Found Danger Doll Squad: Galactic Gladiators (2018) issue: 1 using NZB GEEK (newznab)
2018-07-26 18:57:35 INFO no errors on data retrieval...proceeding
2018-07-26 18:57:30 INFO pausing for 60 seconds before continuing to avoid hammering
2018-07-26 18:57:30 INFO Shhh be very quiet...I'm looking for Danger Doll Squad: Galactic Gladiators issue: 1 (2018) using NZB GEEK (newznab).
2018-07-26 18:57:30 INFO Could not find Issue 1 of Danger Doll Squad: Galactic Gladiators (2018) using NZB Finder [api]
2018-07-26 18:57:30 INFO no errors on data retrieval...proceeding
2018-07-26 18:57:13 INFO pausing for 60 seconds before continuing to avoid hammering
2018-07-26 18:57:13 INFO Shhh be very quiet...I'm looking for Danger Doll Squad Galactic Gladiators issue: 1 (2018) using NZB Finder (newznab).
2018-07-26 18:57:13 INFO Alternate Search pattern detected...re-adjusting to : Danger Doll Squad Galactic Gladiators
2018-07-26 18:57:13 INFO no errors on data retrieval...proceeding
2018-07-26 18:56:58 INFO pausing for 60 seconds before continuing to avoid hammering
2018-07-26 18:56:58 INFO Shhh be very quiet...I'm looking for Danger Doll Squad: Galactic Gladiators issue: 1 (2018) using NZB Finder (newznab).
2018-07-26 18:56:33 INFO Could not find Issue 1 of Danger Doll Squad: Galactic Gladiators (2018) using NZB GEEK [api]
2018-07-26 18:56:33 INFO no errors on data retrieval...proceeding
2018-07-26 18:56:30 INFO pausing for 60 seconds before continuing to avoid hammering
2018-07-26 18:56:30 INFO Shhh be very quiet...I'm looking for Danger Doll Squad Galactic Gladiators issue: 1 (2018) using NZB GEEK (newznab).
2018-07-26 18:56:30 INFO Alternate Search pattern detected...re-adjusting to : Danger Doll Squad Galactic Gladiators
2018-07-26 18:56:30 INFO no errors on data retrieval...proceeding
2018-07-26 18:56:26 INFO pausing for 60 seconds before continuing to avoid hammering
2018-07-26 18:56:26 INFO Shhh be very quiet...I'm looking for Danger Doll Squad: Galactic Gladiators issue: 1 (2018) using NZB GEEK (newznab).
2018-07-26 18:56:26 INFO Could not find Issue 1 of Danger Doll Squad: Galactic Gladiators (2018) using NZB Finder [api]
2018-07-26 18:56:26 INFO no errors on data retrieval...proceeding
2018-07-26 18:56:16 INFO Now adding/updating issues for Danger Doll Squad: Galactic Gladiators
2018-07-26 18:56:02 INFO Sucessfully retrieved issue details for Danger Doll Squad: Galactic Gladiators
2018-07-26 18:56:02 WARNING Error fetching data from ComicVine: ('Connection aborted.', error(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))
2018-07-26 18:55:58 INFO pausing for 60 seconds before continuing to avoid hammering
2018-07-26 18:55:58 INFO Shhh be very quiet...I'm looking for Danger Doll Squad Galactic Gladiators issue: 1 (2018) using NZB Finder (newznab).
2018-07-26 18:55:58 INFO Alternate Search pattern detected...re-adjusting to : Danger Doll Squad Galactic Gladiators
2018-07-26 18:55:58 INFO no errors on data retrieval...proceeding
2018-07-26 18:55:29 INFO Directory (C:\Users\Zorak\Downloads\complete\Danger Doll Squad Galactic Gladiators (2018)) already exists! Continuing...
2018-07-26 18:55:29 INFO Sucessfully retrieved details for Danger Doll Squad: Galactic Gladiators
2018-07-26 18:55:29 INFO Now adding/updating: Danger Doll Squad: Galactic Gladiators
2018-07-26 18:55:24 INFO pausing for 60 seconds before continuing to avoid hammering
2018-07-26 18:55:24 INFO Shhh be very quiet...I'm looking for Danger Doll Squad: Galactic Gladiators issue: 1 (2018) using NZB Finder (newznab).
2018-07-26 18:55:22 INFO [DIRECTORY-CHECK] Found comic directory: C:\Users\Zorak\Downloads\complete\Danger Doll Squad Galactic Gladiators (2018)
2018-07-26 18:54:46 INFO Could not find Issue 1 of Danger Doll Squad: Galactic Gladiators (2018) using NZB GEEK [api]
2018-07-26 18:54:46 INFO no errors on data retrieval...proceeding
2018-07-26 18:54:42 INFO pausing for 60 seconds before continuing to avoid hammering
2018-07-26 18:54:42 INFO Shhh be very quiet...I'm looking for Danger Doll Squad Galactic Gladiators issue: 1 (2018) using NZB GEEK (newznab).
2018-07-26 18:54:42 INFO Alternate Search pattern detected...re-adjusting to : Danger Doll Squad Galactic Gladiators
2018-07-26 18:54:42 INFO no errors on data retrieval...proceeding
2018-07-26 18:54:38 INFO pausing for 60 seconds before continuing to avoid hammering
2018-07-26 18:54:38 INFO Shhh be very quiet...I'm looking for Danger Doll Squad: Galactic Gladiators issue: 1 (2018) using NZB GEEK (newznab).
2018-07-26 18:54:38 INFO Could not find Issue 1 of Danger Doll Squad: Galactic Gladiators (2018) using NZB Finder [api]
2018-07-26 18:54:38 INFO no errors on data retrieval...proceeding
2018-07-26 18:54:15 INFO pausing for 60 seconds before continuing to avoid hammering
2018-07-26 18:54:15 INFO Shhh be very quiet...I'm looking for Danger Doll Squad Galactic Gladiators issue: 1 (2018) using NZB Finder (newznab).
2018-07-26 18:54:15 INFO Alternate Search pattern detected...re-adjusting to : Danger Doll Squad Galactic Gladiators
2018-07-26 18:54:15 INFO no errors on data retrieval...proceeding
2018-07-26 18:53:57 INFO pausing for 60 seconds before continuing to avoid hammering
2018-07-26 18:53:57 INFO Shhh be very quiet...I'm looking for Danger Doll Squad: Galactic Gladiators issue: 1 (2018) using NZB Finder (newznab).
2018-07-26 18:53:57 INFO search provider order is ['newznab:NZB Finder', 'newznab:NZB GEEK']
2018-07-26 18:53:57 INFO Issue Title given as : part one
2018-07-26 18:53:57 INFO [SEARCH] Special Characters exist within Series Title. Enabling search-safe Name : Danger Doll Squad Galactic Gladiators
2018-07-26 18:53:56 INFO [SEARCH-QUEUE] Now loading item from search queue: {'issuenumber': u'1', 'comicname': u'Danger Doll Squad: Galactic Gladiators', 'issueid': u'664777', 'seriesyear': u'2018', 'comicid': u'109565'}
2018-07-26 18:53:54 INFO Initiating manual search for Danger Doll Squad: Galactic Gladiators issue: 1


Thank you again in advance for your time.

User avatar
evilhero
Site Admin
Posts: 2218
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: message. Incorrect API key

Post by evilhero » Fri Jul 27, 2018 8:48 pm

The error incorrect apikey is indicating that it can't hit your Mylar instance, using the apikey provided for Mylar.

Did you edit the autoProcessComics.cfg file (or renamed it from autoProcessComics.cfg.sample to autoProcessComics.cfg and edited that), and made sure your apikey within is the same as it is in Mylar (Configuration / Web Interface / API / Enable API / Generate (if an apikey isn't present in the apikey field). Save the configuration and restart Mylar so the new apikey will be honoured.

Which type of authentication are you using in Mylar : None, Basic (Broswer Popup), Forms (Login Page) ?

If you're using Forms authentication, you have to make sure you're using the newest versions of the autoProcessComics script (autoProcessComics.py/autoProcessComics.cfg). However, if you're not using Forms authentication, you can keep your existing autoProcessComics scirpts and you don't need to update them. In this particular case, it would appear you're using the newest version of autoProcessComics, but you don't have the apikey filled out (this was a recent change due to the forms authenication requiring it for access).

Post Reply