Page 1 of 1

unicode errors on add orphaned jobs to queue

Posted: March 26th, 2013, 2:11 pm
by evster666
got an nzb with unicode in it, i.e. "ü" or "ä"

try to add it back to active queue...

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 "/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 2374, in add
    orphan_add(kwargs)
  File "/usr/share/sabnzbdplus/sabnzbd/interface.py", line 1075, in orphan_add
    sabnzbd.nzbqueue.repair_job(path, None)
  File "/usr/share/sabnzbdplus/sabnzbd/decorators.py", line 43, in call_func
    return func(*params, **kparams)
  File "/usr/share/sabnzbdplus/sabnzbd/decorators.py", line 31, in newFunction
    return f(*args, **kw)
  File "/usr/share/sabnzbdplus/sabnzbd/nzbqueue.py", line 885, in repair_job
    NzbQueue.do.repair_job(folder, new_nzb)
  File "/usr/share/sabnzbdplus/sabnzbd/nzbqueue.py", line 164, in repair_job
    logging.debug('Repair job %s without stored NZB', latin1(name))
  File "/usr/share/sabnzbdplus/sabnzbd/encoding.py", line 177, in latin1
    return txt.decode('utf-8').encode('latin-1', 'replace').replace('?', '_')
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfc in position 1: invalid start byte
Powered by CherryPy 3.2.0
big thanks on any tip, workaround, or bugfix=)
ev

Re: unicode errors on add orphaned jobs to queue

Posted: March 26th, 2013, 3:06 pm
by shypike
Which SABnzbd version are you on?

Re: unicode errors on add orphaned jobs to queue

Posted: March 26th, 2013, 3:17 pm
by evster666
oops, shouldve that included...

SABnzbd Version: 0.7.3

Re: unicode errors on add orphaned jobs to queue

Posted: March 26th, 2013, 3:35 pm
by shypike
Upgrade first to 0.7.11. This issue has been solved.

Re: unicode errors on add orphaned jobs to queue

Posted: March 26th, 2013, 5:53 pm
by evster666
thanks for the info, gonna grab that (hopefully its on launchpad somewhere already...;-), since its not in ubuntu mainstream yet.

Re: unicode errors on add orphaned jobs to queue

Posted: March 27th, 2013, 12:19 am
by sander
evster666 wrote:thanks for the info, gonna grab that (hopefully its on launchpad somewhere already...;-), since its not in ubuntu mainstream yet.
Use the PPA for SABnzbd / sabnzbdplus