2014-04-04 35 views
0

这不是用户浏览器中可见,但在终端我看到:当你取消一个网页,其中仍在加载为什么pip打破?开发服务器上的Django测试

[04/Apr/2014 11:32:52] "GET /admin/core_backend/exhibitor/ HTTP/1.1" 200 15568 
Traceback (most recent call last): 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 86, in run 
    self.finish_response() 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 128, in finish_response 
    self.write(data) 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 212, in write 
    self.send_headers() 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 270, in send_headers 
    self.send_preamble() 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 194, in send_preamble 
    'Date: %s\r\n' % format_date_time(time.time()) 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 324, in write 
    self.flush() 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 303, in flush 
    self._sock.sendall(view[write_offset:write_offset+buffer_size]) 
error: [Errno 32] Broken pipe 

[04/Apr/2014 11:32:52] "GET /admin/core_backend/exhibitor/ HTTP/1.1" 500 59 
---------------------------------------- 
Exception happened during processing of request from ('127.0.0.1', 57862) 
Traceback (most recent call last): 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 593, in process_request_thread 
    self.finish_request(request, client_address) 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 334, in finish_request 
    self.RequestHandlerClass(request, client_address, self) 
    File "/Users/andi/.virtualenvs/daftdjango/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 126, in __init__ 
    super(WSGIRequestHandler, self).__init__(*args, **kwargs) 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 651, in __init__ 
    self.finish() 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 710, in finish 
    self.wfile.close() 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 279, in close 
    self.flush() 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 303, in flush 
    self._sock.sendall(view[write_offset:write_offset+buffer_size]) 
error: [Errno 32] Broken pipe 
---------------------------------------- 
[04/Apr/2014 11:32:52] "GET /admin/core_backend/exhibitor/ HTTP/1.1" 200 15568 

回答

2

这些错误通常发生 - 通常是通过导航离开。停止页面加载会中断图像和其他资源的下载。这通常不是问题,但从技术上讲它是一个错误,因为流(管道)被中断。

相关问题