有的请求很正常,有的请求就出现了500错误。

这里使用POST请求,然后在web.input()中出现了很长很长的错误。

猜测是这个机器上安装了python2.7 / python 3.6 / python3.7, 可能是版本太多导致某个点出错。

暂时想不到该如何解决……

=============================

16:53补充:

这里提到了这个问题,但是替换cgi.py这个文件并未解决问题

https://github.com/webpy/webpy/issues/574

具体的错误信息如下:

Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 289, in process
return self.handle()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 280, in handle
return self._delegate(fn, self.fvars, args)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 530, in _delegate
return handle_class(cls)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 508, in handle_class
return tocall(*args)
File "../public_module/schema_base.py", line 155, in POST
return self._execute(True)
File "../public_module/schema_base.py", line 34, in _execute
param = web.input()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 289, in process
return self.handle()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 280, in handle
return self._delegate(fn, self.fvars, args)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 530, in _delegate
return handle_class(cls)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 508, in handle_class
return tocall(*args)
File "../public_module/schema_base.py", line 155, in POST
return self._execute(True)
File "../public_module/schema_base.py", line 34, in _execute
param = web.input()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in process
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 699, in processor
return handler()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in <lambda>
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 296, in process
raise self.internalerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 587, in internalerror
return debugerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 333, in debugerror
return web._InternalError(djangoerror())
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 322, in djangoerror
return t(exception_type, exception_value, frames)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 986, in __call__
return BaseTemplate.__call__(self, *a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 897, in __call__
return self.t(*a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 193, in __template__
</ol>
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 289, in process
return self.handle()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 280, in handle
return self._delegate(fn, self.fvars, args)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 530, in _delegate
return handle_class(cls)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 508, in handle_class
return tocall(*args)
File "../public_module/schema_base.py", line 155, in POST
return self._execute(True)
File "../public_module/schema_base.py", line 34, in _execute
param = web.input()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in process
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 699, in processor
return handler()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in <lambda>
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 296, in process
raise self.internalerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 587, in internalerror
return debugerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 333, in debugerror
return web._InternalError(djangoerror())
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 322, in djangoerror
return t(exception_type, exception_value, frames)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 986, in __call__
return BaseTemplate.__call__(self, *a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 897, in __call__
return self.t(*a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 193, in __template__
</ol>
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in process
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 699, in processor
return handler()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in <lambda>
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 296, in process
raise self.internalerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 587, in internalerror
return debugerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 333, in debugerror
return web._InternalError(djangoerror())
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 322, in djangoerror
return t(exception_type, exception_value, frames)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 986, in __call__
return BaseTemplate.__call__(self, *a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 897, in __call__
return self.t(*a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 193, in __template__
</ol>
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 289, in process
return self.handle()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 280, in handle
return self._delegate(fn, self.fvars, args)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 530, in _delegate
return handle_class(cls)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 508, in handle_class
return tocall(*args)
File "../public_module/schema_base.py", line 155, in POST
return self._execute(True)
File "../public_module/schema_base.py", line 34, in _execute
param = web.input()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in process
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 699, in processor
return handler()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in <lambda>
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 296, in process
raise self.internalerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 587, in internalerror
return debugerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 333, in debugerror
return web._InternalError(djangoerror())
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 322, in djangoerror
return t(exception_type, exception_value, frames)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 986, in __call__
return BaseTemplate.__call__(self, *a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 897, in __call__
return self.t(*a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 193, in __template__
</ol>
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in process
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 699, in processor
return handler()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in <lambda>
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 296, in process
raise self.internalerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 587, in internalerror
return debugerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 333, in debugerror
return web._InternalError(djangoerror())
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 322, in djangoerror
return t(exception_type, exception_value, frames)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 986, in __call__
return BaseTemplate.__call__(self, *a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 897, in __call__
return self.t(*a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 193, in __template__
</ol>
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in process
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 716, in processor
result = handler()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in <lambda>
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 296, in process
raise self.internalerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 587, in internalerror
return debugerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 333, in debugerror
return web._InternalError(djangoerror())
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 322, in djangoerror
return t(exception_type, exception_value, frames)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 986, in __call__
return BaseTemplate.__call__(self, *a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 897, in __call__
return self.t(*a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 193, in __template__
</ol>
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 289, in process
return self.handle()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 280, in handle
return self._delegate(fn, self.fvars, args)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 530, in _delegate
return handle_class(cls)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 508, in handle_class
return tocall(*args)
File "../public_module/schema_base.py", line 155, in POST
return self._execute(True)
File "../public_module/schema_base.py", line 34, in _execute
param = web.input()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in process
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 699, in processor
return handler()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in <lambda>
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 296, in process
raise self.internalerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 587, in internalerror
return debugerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 333, in debugerror
return web._InternalError(djangoerror())
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 322, in djangoerror
return t(exception_type, exception_value, frames)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 986, in __call__
return BaseTemplate.__call__(self, *a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 897, in __call__
return self.t(*a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 193, in __template__
</ol>
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in process
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 699, in processor
return handler()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in <lambda>
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 296, in process
raise self.internalerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 587, in internalerror
return debugerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 333, in debugerror
return web._InternalError(djangoerror())
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 322, in djangoerror
return t(exception_type, exception_value, frames)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 986, in __call__
return BaseTemplate.__call__(self, *a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 897, in __call__
return self.t(*a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 193, in __template__
</ol>
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in process
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 716, in processor
result = handler()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in <lambda>
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 296, in process
raise self.internalerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 587, in internalerror
return debugerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 333, in debugerror
return web._InternalError(djangoerror())
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 322, in djangoerror
return t(exception_type, exception_value, frames)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 986, in __call__
return BaseTemplate.__call__(self, *a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 897, in __call__
return self.t(*a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 193, in __template__
</ol>
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in process
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 699, in processor
return handler()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in <lambda>
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 296, in process
raise self.internalerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 587, in internalerror
return debugerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 333, in debugerror
return web._InternalError(djangoerror())
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 322, in djangoerror
return t(exception_type, exception_value, frames)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 986, in __call__
return BaseTemplate.__call__(self, *a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 897, in __call__
return self.t(*a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 193, in __template__
</ol>
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes TypeError('write() argument must be str, not bytes',)
Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 289, in process
return self.handle()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 280, in handle
return self._delegate(fn, self.fvars, args)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 530, in _delegate
return handle_class(cls)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 508, in handle_class
return tocall(*args)
File "../public_module/schema_base.py", line 155, in POST
return self._execute(True)
File "../public_module/schema_base.py", line 34, in _execute
param = web.input()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in process
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 699, in processor
return handler()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in <lambda>
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 296, in process
raise self.internalerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 587, in internalerror
return debugerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 333, in debugerror
return web._InternalError(djangoerror())
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 322, in djangoerror
return t(exception_type, exception_value, frames)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 986, in __call__
return BaseTemplate.__call__(self, *a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 897, in __call__
return self.t(*a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 193, in __template__
</ol>
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in process
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 699, in processor
return handler()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in <lambda>
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 296, in process
raise self.internalerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 587, in internalerror
return debugerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 333, in debugerror
return web._InternalError(djangoerror())
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 322, in djangoerror
return t(exception_type, exception_value, frames)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 986, in __call__
return BaseTemplate.__call__(self, *a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 897, in __call__
return self.t(*a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 193, in __template__
</ol>
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in process
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 716, in processor
result = handler()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in <lambda>
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 296, in process
raise self.internalerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 587, in internalerror
return debugerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 333, in debugerror
return web._InternalError(djangoerror())
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 322, in djangoerror
return t(exception_type, exception_value, frames)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 986, in __call__
return BaseTemplate.__call__(self, *a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 897, in __call__
return self.t(*a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 193, in __template__
</ol>
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in process
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 699, in processor
return handler()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 287, in <lambda>
return p(lambda: process(processors))
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 296, in process
raise self.internalerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 587, in internalerror
return debugerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 333, in debugerror
return web._InternalError(djangoerror())
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 322, in djangoerror
return t(exception_type, exception_value, frames)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 986, in __call__
return BaseTemplate.__call__(self, *a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 897, in __call__
return self.t(*a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 193, in __template__
</ol>
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/cheroot-8.2.1-py3.6.egg/cheroot/server.py", line 1280, in communicate
req.respond()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/cheroot-8.2.1-py3.6.egg/cheroot/server.py", line 1083, in respond
self.server.gateway(self).respond()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/cheroot-8.2.1-py3.6.egg/cheroot/wsgi.py", line 143, in respond
response = self.req.server.wsgi_app(self.env, self.start_response)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/httpserver.py", line 306, in __call__
return self.app(environ, xstart_response)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/httpserver.py", line 273, in __call__
return self.app(environ, start_response)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 328, in wsgi
result = self.handle_with_processors()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 299, in handle_with_processors
return process(self.processors)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 296, in process
raise self.internalerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/application.py", line 587, in internalerror
return debugerror()
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 333, in debugerror
return web._InternalError(djangoerror())
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 322, in djangoerror
return t(exception_type, exception_value, frames)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 986, in __call__
return BaseTemplate.__call__(self, *a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/template.py", line 897, in __call__
return self.t(*a, **kw)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/debugerror.py", line 193, in __template__
</ol>
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 468, in input
out = rawinput(_method)
File "/data/home/ahfuzhang/.local/lib/python3.6/site-packages/web/webapi.py", line 444, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib64/python3.6/cgi.py", line 566, in __init__
self.read_single()
File "/usr/lib64/python3.6/cgi.py", line 757, in read_single
self.read_binary()
File "/usr/lib64/python3.6/cgi.py", line 779, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes

最新文章

  1. 关于springMVC+Mybatis jar包详解
  2. APiCloud真机调试需要注意的几个问题
  3. 三层+MVC导出Excel(2)
  4. [UVA11464]Even Parity(状压,枚举)
  5. 有k个list列表, 各个list列表的元素是有序的,将这k个列表元素进行排序( 基于堆排序的K路归并排序)
  6. Jquery 右键菜单(ContextMenu)插件使用记录
  7. Delphi中WebBrowser拦截网页Alert对话框消息(转)
  8. 转战WebApp: 最适合Android开发者的WebApp框架
  9. 关于DOS下启动MySQL时提示服务名无效
  10. BZOJ 2302: [HAOI2011]Problem c( dp )
  11. C++类继承中,基类/当前对象属性/当前对象的构造顺序
  12. spring容器启动的加载过程(三)
  13. 网络编程之TCP编程
  14. 详解k8s零停机滚动发布微服务 - kubernetes
  15. 数据分析之Pandas
  16. [Git] Git操作命令
  17. C++11 使用异步编程std::async和std::future
  18. Python字典和集合的内部实现
  19. bzoj 3522 / 4543 [POI 2014] Hotel - 动态规划 - 长链剖分
  20. python time模块使用笔记(更新)

热门文章

  1. Spring核心原理分析之MVC九大组件(1)
  2. SQL获取当天0点0分0秒和23点59分59秒方法
  3. AcWing422. 校门外的树
  4. JAVA微信公众号网页开发——生成自定义微信菜单(携带参数)
  5. win7(X64)+wdk7驱动环境搭建
  6. 『与善仁』Appium基础 — 30、操作微信小程序
  7. Beautiful Walls
  8. 教学日志:javaSE-流程控制语句
  9. TKE用户故事 | 作业帮检索服务基于Fluid的计算存储分离实践
  10. a.equals(b) 判断对象相等