EDIT: ignore the info below ... that was a NZB with an ugly unit time format.
IGNORE BELOW
Trying to add a NZB results in sabRE saying "could not send data"
sabRE's stdout says:
info: user "user1" logged in
info: user "user1" queued "unixtime-2038---date-2222222222.time"
sabnzbd.log says:
Code: Select all
2014-06-11 00:21:50,200::DEBUG::[interface:421] API-call from 127.0.0.1 [??] {'nzbname': 'unixtime-2038---date-2222222222.time', 'pp': '3', 'apikey': 'INSERT_YOUR_SABNZBD_API_KEY_HERE', 'name': '/tmp/unixtime-2038---date-2222222222.time', 'script': 'postprocess.py', 'mode': 'addlocalfile'}
2014-06-11 00:21:50,200::INFO::[_cplogging:55] [11/Jun/2014:00:21:50] HTTP
Request Headers:
HOST: 127.0.0.1:8080
CONNECTION: keep-alive
Remote-Addr: 127.0.0.1
2014-06-11 00:21:50,225::DEBUG::[_cplogging:55] [11/Jun/2014:00:21:50] HTTP Traceback (most recent call last):
File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 618, in respond
cherrypy.response.body = self.handler()
File "/usr/share/sabnzbdplus/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/usr/share/sabnzbdplus/sabnzbd/interface.py", line 425, in api
return api_handler(kwargs)
File "/usr/share/sabnzbdplus/sabnzbd/api.py", line 101, in api_handler
response = _api_table.get(mode, _api_undefined)(name, output, kwargs)
File "/usr/share/sabnzbdplus/sabnzbd/api.py", line 377, in _api_addlocalfile
return report(output, keyword='', data={'status':res[0]==0, 'nzo_ids' : res[1]}, compat=True)
UnboundLocalError: local variable 'res' referenced before assignment
Happens both with
hideOtherUsersData: true
and
hideOtherUsersData: false