Page 1 of 1

API calls including uname/pwd return Error 500 if SAB uname/pwd not enabled

Posted: April 24th, 2009, 5:46 am
by Yarbles
Version: SABnzbd+ 0.4.9
OS: Vista64

To reproduce:

Remove the username and password from SABnzbd.

Use an API call url including &ma_username and/or &ma_password arguments.

Result:
500 Internal error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "cherrypy\_cphttptools.pyo", line 126, in _run
  File "cherrypy\filters\__init__.pyo", line 151, in applyFilters
  File "sabnzbd\interface.pyo", line 243, in beforeFinalize
TypeError: api() got an unexpected keyword argument 'ma_password'

Re: API calls including uname/pwd return Error 500 if SAB uname/pwd not enabled

Posted: April 24th, 2009, 6:05 am
by shypike
If you don't have a usrename/password set, you're not allowed to use the ma_username, ma_password parameters.
Not the most elegant reaction, but we're not going to fix this in the 0.4.x range anymore.