API warning message

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
dwightturner36
Newbie
Newbie
Posts: 11
Joined: December 24th, 2014, 9:27 am

API warning message

Post by dwightturner36 »

any idea why i might be getting this?
I have put all the api keys needed as i run sickrage and couchpotato with freenas 9.3

WARNING: API Key missing, please enter the api key from Config->General into your 3rd party program: ::1>python-requests/2.3.0 CPython/2.7.8 FreeBSD/9.1-RELEASE
User avatar
sander
Release Testers
Release Testers
Posts: 9261
Joined: January 22nd, 2008, 2:22 pm

Re: API warning message

Post by sander »

dwightturner36 wrote:any idea why i might be getting this?
because there is a program on your system (probably written in python) that's accessing SABnzbd's API interface without correct credentials.

See http://wiki.sabnzbd.org/faq#toc32

Things you can do:
* find the program and stop it or fill out the correct credentials
* ignore the message; it's harmless
* change your SAB port from 8080 to something else (and change it in the programs you want to give access)
dwightturner36
Newbie
Newbie
Posts: 11
Joined: December 24th, 2014, 9:27 am

Re: API warning message

Post by dwightturner36 »

thanks

i tried searching but it didn't show the obvious
rmilyard
Newbie
Newbie
Posts: 2
Joined: August 8th, 2014, 9:31 am

Re: API warning message

Post by rmilyard »

I started to get this error this morning:

2014-12-29 08:12:29,838 WARNING: API Key missing, please enter the api key from Config->General into your 3rd party program: ::1>python-requests/2.3.0 CPython/2.7.9 FreeBSD/9.1-RELEASE


Was working in the past. Not sure what can do to fix this.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: API warning message

Post by shypike »

There's some third-party plugin or security suite that wants to use SABnzbd's API
(automation) interface.
If you're sure it's not coming from outside and you still cannot find the source,
you can disable the warning in Config->General.
User avatar
sander
Release Testers
Release Testers
Posts: 9261
Joined: January 22nd, 2008, 2:22 pm

Re: API warning message

Post by sander »

shypike wrote:There's some third-party plugin or security suite that wants to use SABnzbd's API
(automation) interface.
If you're sure it's not coming from outside.
It is coming from localhost "::1". Apparantly there is something on the FreeNAS of the posters that is doing the API request.


FWIW: It says "cpython", which seems to be the normal Python, but when I try Python, it doesn't say 'cpython'.

Plain python and urllib:

Code: Select all

API Key missing, please enter the api key from Config->General into your 3rd party program: 127.0.0.1>Python-urllib/1.17
Lynx:

Code: Select all

API Key missing, please enter the api key from Config->General into your 3rd party program: 127.0.0.1>Lynx/2.8.8pre.4 libwww-FM/2.14 SSL-MM/1.4.1 GNUTLS/2.12.23
pudnik26354
Newbie
Newbie
Posts: 1
Joined: October 30th, 2017, 7:26 pm

Re: API warning message

Post by pudnik26354 »

Here's I got rid of mine:

1. In the Web Admin page, under Security, regenerate the API key and copy it to the clipboard
2. Change the port number from the default (8080) to something else
3. The server restarts
4. log in again. Error disappears.
Post Reply