500 Internal Server Error: UnicodeEncodeError: 'ascii' codec

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
BJunior
Newbie
Newbie
Posts: 1
Joined: November 4th, 2015, 7:15 pm

500 Internal Server Error: UnicodeEncodeError: 'ascii' codec

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

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

Post 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)".
Post Reply