API Internal Server Error
Posted: March 24th, 2012, 6:44 pm
I'm currently building an application that interfaces with SABNzbd. I've used the API before and now, when I try to use the API to delete history items, the following error gets produced...
I'm not familiar at all with the code for SABNzbd so if someone could point me in the direction of what this error means exactly, it would be greatly appreciated. From what this says, it seems like history_db.get_path(job) is returning null (maybe?) but I am not too sure why.
Code: Select all
Traceback (most recent call last): File "/usr/share/sabnzbd/cherrypy/_cprequest.py", line 618, in respond cherrypy.response.body = self.handler() File "/usr/share/sabnzbd/cherrypy/_cpdispatch.py", line 25, in __call__ return self.callable(*self.args, **self.kwargs) File "/usr/share/sabnzbd/sabnzbd/interface.py", line 398, in api return api_handler(kwargs) File "/usr/share/sabnzbd/sabnzbd/api.py", line 91, in api_handler response = _api_table.get(mode, _api_undefined)(name, output, kwargs) File "/usr/share/sabnzbd/sabnzbd/api.py", line 416, in _api_history del_hist_job(job, del_files) File "/usr/share/sabnzbd/sabnzbd/api.py", line 1398, in del_hist_job path = history_db.get_path(job) File "/usr/share/sabnzbd/sabnzbd/database.py", line 290, in get_path return self.c.fetchone().get('path')AttributeError: 'NoneType' object has no attribute 'get'