Page 1 of 1

500 Internal Server Error: UnicodeEncodeError: 'ascii' codec

Posted: November 4th, 2015, 7:23 pm
by BJunior
Suddenly it began to appear this error:

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
File "/usr/local/scripts/sabnzbd/cherrypy/_cprequest.py", line 670, in respond
response.body = self.handler()
File "/usr/local/scripts/sabnzbd/cherrypy/lib/encoding.py", line 217, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/usr/local/scripts/sabnzbd/cherrypy/_cpdispatch.py", line 61, in __call__
return self.callable(*self.args, **self.kwargs)
File "/usr/local/scripts/sabnzbd/sabnzbd/interface.py", line 1159, in index
conf['folders'] = sabnzbd.nzbqueue.scan_jobs(all=False, action=False)
File "/usr/local/scripts/sabnzbd/sabnzbd/decorators.py", line 43, in call_func
return func(*params, **kparams)
File "/usr/local/scripts/sabnzbd/sabnzbd/decorators.py", line 31, in newFunction
return f(*args, **kw)
File "/usr/local/scripts/sabnzbd/sabnzbd/nzbqueue.py", line 1044, in scan_jobs
return NzbQueue.do.scan_jobs(all, action)
File "/usr/local/scripts/sabnzbd/sabnzbd/nzbqueue.py", line 154, in scan_jobs
if os.path.isdir(folder) and name not in registered and name not in IGNORED_FOLDERS:
File "/usr/local/lib/python2.7/genericpath.py", line 49, in isdir
st = os.stat(s)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe2' in position 40: ordinal not in range(128)
Powered by CherryPy 3.8.0

I'm using FreeBSD 10.2-RELEASE, and so far I was using without errors my sabnzbd. Any ideias?

Python 2.7.10


Thanks in advance.

Braulio

Re: 500 Internal Server Error: UnicodeEncodeError: 'ascii' c

Posted: November 4th, 2015, 10:36 pm
by sander
Which version of SABnzbd ?

What kind of filesystems?
Which language on your system? Plain English, or ... ?

Reason: there seems to be non-ASCII characters in some PATH, as the problem occurs in "os.path.isdir(folder)".