BrokenPipeError:[Errno 32] Python3.6

时间:2019-07-15 11:06:35

标签: python-3.x chalice

在运行python服务器时出错

我正在使用python3.6,对于服务器,我有单独的python3.6虚拟环境

Traceback (most recent call last):
  File "/usr/lib/python3.6/socketserver.py", line 320, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python3.6/socketserver.py", line 351, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python3.6/socketserver.py", line 364, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/home/hafiz/py3/lib/python3.6/site-packages/chalice/local.py", line 531, in __init__
    self, request, client_address, server)  # type: ignore
  File "/usr/lib/python3.6/socketserver.py", line 724, in __init__
    self.handle()
  File "/usr/lib/python3.6/http/server.py", line 418, in handle
    self.handle_one_request()
  File "/usr/lib/python3.6/http/server.py", line 406, in handle_one_request
    method()
  File "/home/hafiz/py3/lib/python3.6/site-packages/chalice/local.py", line 558, in _generic_handle
    self._send_http_response(status_code, headers, body)
  File "/home/hafiz/py3/lib/python3.6/site-packages/chalice/local.py", line 574, in _send_http_response
    self._send_http_response_with_body(code, headers, body)
  File "/home/hafiz/py3/lib/python3.6/site-packages/chalice/local.py", line 588, in _send_http_response_with_body
    self.wfile.write(body)
  File "/usr/lib/python3.6/socketserver.py", line 803, in write
    self._sock.sendall(b)
BrokenPipeError: [Errno 32] Broken pipe

0 个答案:

没有答案