Hello all,
I have been running my NAS for a while without issue, and then all of a sudden I started getting some Python errors, so after much stuffing around I decided to just do a full upgrade, and that all went through without a problem.
However, I am getting some errors when SAB and SIckbeard talk to each other trying to use Notifo.
Instead of getting the "Success" message I get the following Error in SABNZBD;
$this->bbcode_second_pass_code('', '<p>The server encountered an unexpected condition which prevented it from fulfilling the request.</p>
<pre id="traceback">Traceback (most recent call last):
File "/sickbeard-install/cherrypy/_cprequest.py", line 660, in respond
response.body = self.handler()
File "/sickbeard-install/cherrypy/lib/encoding.py", line 193, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/sickbeard-install/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/sickbeard-install/sickbeard/webserve.py", line 1469, in processEpisode
result = processTV.processDir(dir, nzbName)
File "/sickbeard-install/sickbeard/processTV.py", line 97, in processDir
process_result = processor.process()
File "/sickbeard-install/sickbeard/postProcessor.py", line 705, in process
notifiers.notify_download(ep_obj.prettyName(True))
File "/sickbeard-install/sickbeard/notifiers/__init__.py", line 68, in notify_download
notifo_notifier.notify_download(ep_name)
File "/sickbeard-install/sickbeard/notifiers/notifo.py", line 72, in notify_download
self._notifyNotifo(title, ep_name)
File "/sickbeard-install/sickbeard/notifiers/notifo.py", line 86, in _notifyNotifo
self._sendNotifo(message, title, username, apisecret)
File "/sickbeard-install/sickbeard/notifiers/notifo.py", line 52, in _sendNotifo
logger.log(u"Unable to decode JSON: "+data, logger.ERROR)
TypeError: coercing to Unicode: need string or buffer, instance found
</pre>
<div id="powered_by">
<span>Powered by <a href="http://www.cherrypy.org">CherryPy 3.2.0rc1</a></span>')
Its the same when I try to run a little script that tries to use Notifo...
$this->bbcode_second_pass_code('', '[root@NAS_Drive bin]# phone send a message
Traceback (most recent call last):
File "/usr/local/bin/phone", line 132, in <module>
main()
File "/usr/local/bin/phone", line 129, in main
alert(msg, url=options.url, title=options.title, label=options.label, username=options.username, secret=options.secret)
File "/usr/local/bin/phone", line 80, in alert
result = json.load(data)
File "/usr/lib/python2.7/json/__init__.py", line 278, in load
**kw)
File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could b')
The common theme here is JSON.
Anyone else seen this???
Cheers
John