opendevops-cn / opendevops

CODO是一款为用户提供企业多混合云、一站式DevOps、自动化运维、完全开源的云管理平台、自动化运维平台
http://www.opendevops.cn/
GNU General Public License v3.0
3.73k stars 1.02k forks source link

单机版python3.6.8语法错误 #76

Open manfredxue opened 3 years ago

manfredxue commented 3 years ago

[root@station51 supervisor]# tail -n50 admin.log Traceback (most recent call last): File "/usr/local/lib64/python3.6/site-packages/tornado/web.py", line 1701, in _execute result = method(*self.path_args, **self.path_kwargs) File "/opt/codo/codo-admin/mg/handlers/login_handler.py", line 144, in post self.set_cookie('auth_key', auth_key, expires_days=1) File "/usr/local/lib64/python3.6/site-packages/tornado/web.py", line 622, in set_cookie value = escape.native_str(value) File "/usr/local/lib64/python3.6/site-packages/tornado/escape.py", line 226, in to_unicode raise TypeError("Expected bytes, unicode, or None; got %r" % type(value)) TypeError: Expected bytes, unicode, or None; got <class 'AttributeError'> 500 POST /login/ (127.0.0.1) 17.57ms 404 GET /api/accounts/are_you_ok/ (127.0.0.1) 1.26ms Uncaught exception POST /login/ (127.0.0.1) HTTPServerRequest(protocol='http', host='codo-admin', method='POST', uri='/login/', version='HTTP/1.0', remote_ip='127.0.0.1')