http://localhost:8080/sabnzbd/api?mode= ... lue=blabla leads to the internal server error below.
BTW, @shypike:
API History Format is: http://localhost:8080/sabnzbd/api?mode= ... nzo_zt2syz
With "<nzo_id>SABnzbd_nzo_lRg5ao</nzo_id>" in the History, what is the full URL for the retry of this download? I tried all kinds (see second code block), and none worked (all leading to errors)
Code: Select all
500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last):
File "/home/sander/SABnzbd-0.6.14/cherrypy/_cprequest.py", line 618, in respond
cherrypy.response.body = self.handler()
File "/home/sander/SABnzbd-0.6.14/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/home/sander/SABnzbd-0.6.14/sabnzbd/interface.py", line 398, in api
return api_handler(kwargs)
File "/home/sander/SABnzbd-0.6.14/sabnzbd/api.py", line 91, in api_handler
response = _api_table.get(mode, _api_undefined)(name, output, kwargs)
File "/home/sander/SABnzbd-0.6.14/sabnzbd/api.py", line 302, in _api_retry
if retry_job(value, name):
File "/home/sander/SABnzbd-0.6.14/sabnzbd/api.py", line 1373, in retry_job
path = history_db.get_path(job)
File "/home/sander/SABnzbd-0.6.14/sabnzbd/database.py", line 290, in get_path
return self.c.fetchone().get('path')
AttributeError: 'NoneType' object has no attribute 'get'
Powered by CherryPy 3.2.0
Code: Select all
sander@R540:~$ wget 'http://localhost:8080/sabnzbd/api?mode=retry&value=SABnzbd_nzo_zt2syz'
--2011-12-24 08:30:18-- http://localhost:8080/sabnzbd/api?mode=retry&value=SABnzbd_nzo_zt2syz
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2011-12-24 08:30:18 ERROR 500: Internal Server Error.
sander@R540:~$
sander@R540:~$
sander@R540:~$ wget 'http://localhost:8080/sabnzbd/api?mode=retry&value=SABnzbd_nzo_lRg5ao_zt2syz'
--2011-12-24 08:30:56-- http://localhost:8080/sabnzbd/api?mode=retry&value=SABnzbd_nzo_lRg5ao_zt2syz
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2011-12-24 08:30:56 ERROR 500: Internal Server Error.
sander@R540:~$
sander@R540:~$ wget 'http://localhost:8080/sabnzbd/api?mode=retry&value=SABnzbd_nzo_lRg5ao2syz'
--2011-12-24 08:31:25-- http://localhost:8080/sabnzbd/api?mode=retry&value=SABnzbd_nzo_lRg5ao2syz
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2011-12-24 08:31:25 ERROR 500: Internal Server Error.
sander@R540:~$ wget 'http://localhost:8080/sabnzbd/api?mode=retry&value=SABnzbd_nzo_lRg5ao'
--2011-12-24 08:31:29-- http://localhost:8080/sabnzbd/api?mode=retry&value=SABnzbd_nzo_lRg5ao
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2011-12-24 08:31:29 ERROR 500: Internal Server Error.
sander@R540:~$

