Closed wjf0214 closed 3 years ago
已修复,请使用docker内源码更新方式更新框架并重启容器
已修复,请使用docker内源码更新方式更新框架并重启容器
更新完后报错。错误信息为:
[E 210928 18:00:25 web:1789] Uncaught exception POST /har/test (xxx.xxx.xxx.xxx)
HTTPServerRequest(protocol='http', host='xxxx', method='POST', uri='/har/test', version='HTTP/1.0', remote_ip='xxx.xxx.xxx.xxx')
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/tornado/web.py", line 1704, in _execute
result = await result
File "/usr/src/app/web/handlers/har.py", line 74, in post
ret = await gen.convert_yielded(self.fetcher.fetch(data))
File "/usr/src/app/libs/fetcher.py", line 465, in fetch
rule, env, response = await gen.convert_yielded(self.build_response(obj, proxy, CURL_ENCODING, CURL_CONTENT_LENGTH))
File "/usr/src/app/libs/fetcher.py", line 422, in build_response
response = await gen.convert_yielded(self.client.fetch(req))
File "/usr/local/lib/python3.8/site-packages/tornado/curl_httpclient.py", line 234, in _process_queue
self._curl_setup_request(
File "/usr/local/lib/python3.8/site-packages/tornado/curl_httpclient.py", line 333, in _curl_setup_request
curl.setopt(pycurl.URL, native_str(request.url))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 106-122: ordinal not in range(128)
[E 210928 18:00:25 web:1789] Uncaught exception POST /har/test (xxx.xxx.xxx.xxx)
HTTPServerRequest(protocol='http', host='xxx', method='POST', uri='/har/test', version='HTTP/1.0', remote_ip='xxx.xxx.xxx.xxx')
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/tornado/web.py", line 1704, in _execute
result = await result
File "/usr/src/app/web/handlers/har.py", line 74, in post
ret = await gen.convert_yielded(self.fetcher.fetch(data))
File "/usr/src/app/libs/fetcher.py", line 465, in fetch
rule, env, response = await gen.convert_yielded(self.build_response(obj, proxy, CURL_ENCODING, CURL_CONTENT_LENGTH))
File "/usr/src/app/libs/fetcher.py", line 422, in build_response
response = await gen.convert_yielded(self.client.fetch(req))
File "/usr/local/lib/python3.8/site-packages/tornado/curl_httpclient.py", line 234, in _process_queue
self._curl_setup_request(
File "/usr/local/lib/python3.8/site-packages/tornado/curl_httpclient.py", line 333, in _curl_setup_request
curl.setopt(pycurl.URL, native_str(request.url))
bug修复后请确保url内容的中文被urlencode转码
right error1 error2
这样之后好了!
Describe the bug 框架{{unicode(a)}}参数过滤器BUG.
To Reproduce 当res为变量的时候。{{unicode(res)}}没有转换。把res直接输出了。 但是我把res换着对应的字符串值就可以。
Expected behavior 当{{unicode(res)}}方式使用的时候,应该正常转换输出。而不是输出res原值。
Screenshots
Version Docker镜像20210917版本。