<type 'exceptions.UnicodeEncodeError'> | Python 2.7.18rc1: /usr/bin/python Fri Sep 25 00:08:51 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'/\u7f51\u9875\u5927\u5c0f', 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-4: ordinal not in range(128)
args =
('ascii', u'/\u7f51\u9875\u5927\u5c0f', 1, 5, 'ordinal not in range(128)')
encoding =
'ascii'
end =
5
message =
''
object =
u'/\u7f51\u9875\u5927\u5c0f'
reason =
'ordinal not in range(128)'
start =
1