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

Report & discuss bugs found in 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
Yarbles
Newbie
Newbie
Posts: 36
Joined: January 25th, 2008, 6:51 am

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

Post 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'
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

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

Post 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.
Post Reply