Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Japanese cannot be processed when using flask #479

Open
mochidukiyukimi opened this issue Sep 15, 2022 Discussed in #477 · 0 comments
Open

Japanese cannot be processed when using flask #479

mochidukiyukimi opened this issue Sep 15, 2022 Discussed in #477 · 0 comments

Comments

@mochidukiyukimi
Copy link

mochidukiyukimi commented Sep 15, 2022

Discussed in https://github.com/orgs/deta/discussions/477

Originally posted by mochidukiyukimi September 14, 2022
"UnicodeEncodeError" occurs when trying to process a Japanese query.
Probably a wsgi error.
Traceback (most recent call last):   File "/opt/python/detalib/debugger.py", line 131, in wrap     return func(event, context)   File "/var/task/_entry.py", line 14, in handler     return handle(event, main)   File "/opt/python/detalib/handler.py", line 32, in handle     return handlers.handle_bare_wsgi(event, main, context)   File "/opt/python/detalib/handlers.py", line 32, in handle_bare_wsgi     return resolve(main.app, event)   File "/opt/python/detalib/adapters/wsgi/__init__.py", line 149, in resolve     result = app(get_environ(event), response.start_response)   File "/opt/python/flask/app.py", line 2548, in __call__     return self.wsgi_app(environ, start_response)   File "/opt/python/flask/app.py", line 2520, in wsgi_app     ctx = self.request_context(environ)   File "/opt/python/flask/app.py", line 2437, in request_context     return RequestContext(self, environ)   File "/opt/python/flask/ctx.py", line 309, in __init__     request = app.request_class(environ)   File "/opt/python/werkzeug/wrappers/request.py", line 115, in __init__     query_string=environ.get("QUERY_STRING", "").encode("latin1"), [2022-09-14T20:16:19+09:00] [ERROR] UnicodeEncodeError: 'latin-1' codec can't encode characters in position 2-4: ordinal not in range(256)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant