unicode errors on add orphaned jobs to queue

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
evster666
Newbie
Newbie
Posts: 12
Joined: March 26th, 2013, 1:56 pm

unicode errors on add orphaned jobs to queue

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: unicode errors on add orphaned jobs to queue

Post by shypike »

Which SABnzbd version are you on?
evster666
Newbie
Newbie
Posts: 12
Joined: March 26th, 2013, 1:56 pm

Re: unicode errors on add orphaned jobs to queue

Post by evster666 »

oops, shouldve that included...

SABnzbd Version: 0.7.3
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: unicode errors on add orphaned jobs to queue

Post by shypike »

Upgrade first to 0.7.11. This issue has been solved.
evster666
Newbie
Newbie
Posts: 12
Joined: March 26th, 2013, 1:56 pm

Re: unicode errors on add orphaned jobs to queue

Post by evster666 »

thanks for the info, gonna grab that (hopefully its on launchpad somewhere already...;-), since its not in ubuntu mainstream yet.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: unicode errors on add orphaned jobs to queue

Post 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
Post Reply