Page 1 of 1

API warning message

Posted: December 24th, 2014, 9:31 am
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

Re: API warning message

Posted: December 24th, 2014, 10:01 am
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)

Re: API warning message

Posted: December 24th, 2014, 11:25 am
by dwightturner36
thanks

i tried searching but it didn't show the obvious

Re: API warning message

Posted: December 29th, 2014, 10:15 am
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.

Re: API warning message

Posted: December 30th, 2014, 4:01 am
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.

Re: API warning message

Posted: December 30th, 2014, 4:18 am
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

Re: API warning message

Posted: October 30th, 2017, 8:01 pm
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.