小编典典

Django + WebKit = Broken pipe

django

我正在运行Django 1.2开发服务器,每当我使用Chrome或Safari从其中加载页面时,都会收到这些Broken Pipe错误消息。当我从他的开发服务器加载页面时,我的同事也遇到了错误。使用Opera或Firefox时,我们没有这些错误。

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/core/servers/basehttp.py", line 281, in run self.finish_response()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/core/servers/basehttp.py", line 321, in finish_response self.write(data)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/core/servers/basehttp.py", line 417, in write self._write(data)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/socket.py", line 300, in write self.flush()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/socket.py", line 286, in flush self._sock.sendall(buffer)
error: [Errno 32] Broken pipe

谁能帮我吗?我为此感到疯狂!


阅读 403

收藏
2020-04-02

共1个答案

小编典典

这不是Django问题。你的浏览器最有可能做错了事。

这是常见错误,只要在开发服务器仍在忙于发送数据时浏览器关闭连接,就会发生此错误。

2020-04-02