Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
manfredxue opened this issue Aug 29, 2020 · 0 comments
Open

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

manfredxue opened this issue Aug 29, 2020 · 0 comments

Comments

@manfredxue
Copy link

[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')

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

No branches or pull requests

1 participant