<type 'exceptions.UnicodeEncodeError'> | Python 2.7.18rc1: /usr/bin/python Fri Oct 30 05:16:27 2020 |
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_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'br,gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'wiki.libsdl.org', ...}, 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_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'br,gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'wiki.libsdl.org', ...}, start_response=<function start_response>) |
568 cleaned_path = get_path_info(environ) |
569 if PY2: |
=> 570 cleaned_path = cleaned_path.encode(sys.getfilesystemencoding()) |
571 # sanitize the path for non unix systems |
572 cleaned_path = cleaned_path.strip('/') |
cleaned_path = u'/\u041f\u043e\u043c\u043e\u0449\u044c\u041f\u0440\u043e\u0447\u0430\u044f/\u042d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0435\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438', 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-12: ordinal not in range(128)
args =
('ascii', u'/\u041f\u043e\u043c\u043e\u0449\u044c\u041f\u0440\u043e\u0447\u0430\u044f/\u042d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0435\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438', 1, 13, 'ordinal not in range(128)')
encoding =
'ascii'
end =
13
message =
''
object =
u'/\u041f\u043e\u043c\u043e\u0449\u044c\u041f\u0440\u043e\u0447\u0430\u044f/\u042d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0435\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438'
reason =
'ordinal not in range(128)'
start =
1