Closed XZ1314XZ closed 1 year ago
20230228
Linux
Docker/Linux 64位
打开公开模板页面:http://xxxxx/tpls/public
问题: Python Tornado Web 服务器的请求处理错误。在处理 GET 请求时,执行 await self.render('push_list.html', pushs=pushs, pulls=pulls) 代码语句,出现了 StreamClosedError 错误。
await self.render('push_list.html', pushs=pushs, pulls=pulls)
日志如图:
正常搭建后第一次打开就遇到的错误,对原配置无任何修改
qiandao | [I 230412 15:07:33 tornado.access web:2271] 200 GET /user/2/setnewpwd (172.18.0.1) 11.65ms qiandao | [I 230412 15:07:35 tornado.access web:2271] 200 GET /pushs (172.18.0.1) 25.96ms qiandao | [E 230412 15:07:35 tornado.application web:1798] Uncaught exception GET /pushs (172.18.0.1) qiandao | HTTPServerRequest(protocol='http', host='192.168.1.3:8923', method='GET', uri='/pushs', version='HTTP/1.1', remote_ip='172.18.0.1') qiandao | Traceback (most recent call last): qiandao | File "/usr/lib/python3.11/site-packages/tornado/web.py", line 1713, in _execute qiandao | result = await result qiandao | ^^^^^^^^^^^^ qiandao | File "/usr/src/app/web/handlers/push.py", line 72, in get qiandao | await self.render('push_list.html', pushs=pushs, pulls=pulls) qiandao | tornado.iostream.StreamClosedError: Stream is closed qiandao | [I 230412 15:27:09 tornado.access web:2271] 200 GET /pushs (172.18.0.1) 25.99ms qiandao | [I 230412 15:27:11 tornado.access web:2271] 302 GET / (172.18.0.1) 0.83ms qiandao | [I 230412 15:27:11 tornado.access web:2271] 200 GET /my/ (172.18.0.1) 21.74ms
尝试更新至最新源码确认是否还有该问题
如果还有问题请Reopen这个issue
Verify steps
QianDao Version
20230228
Bug on OS
Linux
Bug on Platform
Docker/Linux 64位
To Reproduce
打开公开模板页面:http://xxxxx/tpls/public
Describe the Bug
问题: Python Tornado Web 服务器的请求处理错误。在处理 GET 请求时,执行
await self.render('push_list.html', pushs=pushs, pulls=pulls)
代码语句,出现了 StreamClosedError 错误。日志如图:
QianDao config
QianDao log
Expected behavior
Screenshots