<type 'exceptions.UnicodeEncodeError'> | Python 2.7.6: /usr/bin/python Sun Dec 21 07:52:37 2014 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/usr/lib/python2.7/dist-packages/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>) |
556 """Runs the handler, flushes the streams, and ends the request.""" |
557 try: |
=> 558 protocolStatus, appStatus = self.server.handler(self) |
559 except: |
560 traceback.print_exc(file=self.stderr) |
protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object>, self.server = <flup.server.fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object>> |
/usr/lib/python2.7/dist-packages/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>) |
1116 try: |
1117 try: |
=> 1118 result = self.application(environ, start_response) |
1119 try: |
1120 for data in result: |
result = None, self = <flup.server.fcgi.WSGIServer object>, self.application = <werkzeug.wsgi.SharedDataMiddleware object>, environ = {'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/usr/share/moin/server/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/webspace/wiki.libsdl.org', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_CONNECTION': 'close', 'HTTP_FROM': 'crawler@alexa.com', 'HTTP_HOST': 'wiki.libsdl.org', 'HTTP_USER_AGENT': 'ia_archiver (+http://www.alexa.com/site/help/webmasters; crawler@alexa.com)', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', ...}, start_response = <function start_response> |
/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py in __call__(self=<werkzeug.wsgi.SharedDataMiddleware object>, environ={'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/usr/share/moin/server/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/webspace/wiki.libsdl.org', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_CONNECTION': 'close', 'HTTP_FROM': 'crawler@alexa.com', 'HTTP_HOST': 'wiki.libsdl.org', 'HTTP_USER_AGENT': 'ia_archiver (+http://www.alexa.com/site/help/webmasters; crawler@alexa.com)', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', ...}, start_response=<function start_response>) |
556 cleaned_path = get_path_info(environ) |
557 if PY2: |
=> 558 cleaned_path = cleaned_path.encode(sys.getfilesystemencoding()) |
559 # sanitize the path for non unix systems |
560 cleaned_path = cleaned_path.strip('/') |
cleaned_path = u'/\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0456\u044f\u041f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u0430\u0421\u0442\u043e\u0440\u0456\u043d\u043a\u0430', cleaned_path.encode = <built-in method encode of unicode object>, global sys = <module 'sys' (built-in)>, sys.getfilesystemencoding = <built-in function getfilesystemencoding> |
<type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode characters in position 1-28: ordinal not in range(128)
args =
('ascii', u'/\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0456\u044f\u041f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u0430\u0421\u0442\u043e\u0440\u0456\u043d\u043a\u0430', 1, 29, 'ordinal not in range(128)')
encoding =
'ascii'
end =
29
message =
''
object =
u'/\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0456\u044f\u041f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u0430\u0421\u0442\u043e\u0440\u0456\u043d\u043a\u0430'
reason =
'ordinal not in range(128)'
start =
1