【发布时间】:2011-06-10 16:58:11
【问题描述】:
使用开发服务器时,我收到此错误:
Validating models...
0 errors found
Django version 1.3 beta 1, using settings 'book_scouts.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Traceback (most recent call last):
File "C:\Python26\lib\site-packages\django\core\servers\basehttp.py", line 283
, in run
self.finish_response()
File "C:\Python26\lib\site-packages\django\core\servers\basehttp.py", line 323
, in finish_response
self.write(data)
File "C:\Python26\lib\site-packages\django\core\servers\basehttp.py", line 402
, in write
self.send_headers()
File "C:\Python26\lib\site-packages\django\core\servers\basehttp.py", line 467
, in send_headers
self._write(str(self.headers))
File "C:\Python26\lib\socket.py", line 318, in write
self.flush()
File "C:\Python26\lib\socket.py", line 297, in flush
self._sock.sendall(buffer(data, write_offset, buffer_size))
error: [Errno 10053] An established connection was aborted by the software in yo
ur host machine
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 2426)
Traceback (most recent call last):
File "C:\Python26\lib\SocketServer.py", line 283, in _handle_request_noblock
self.process_request(request, client_address)
File "C:\Python26\lib\SocketServer.py", line 309, in process_request
self.finish_request(request, client_address)
File "C:\Python26\lib\SocketServer.py", line 322, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Python26\lib\site-packages\django\core\servers\basehttp.py", line 569
, in __init__
BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
File "C:\Python26\lib\SocketServer.py", line 618, in __init__
self.finish()
File "C:\Python26\lib\SocketServer.py", line 661, in finish
self.wfile.flush()
File "C:\Python26\lib\socket.py", line 297, in flush
self._sock.sendall(buffer(data, write_offset, buffer_size))
error: [Errno 10053] An established connection was aborted by the software in yo
ur host machine
我无法将其归结为任何单一来源。这似乎是随机发生的,afaik。它会导致我正在测试的页面加载很长时间,并且页面加载正常。
使用 Django 1.3 Beta 1
更新:我现在正在使用 Opera/Firefox 进行测试,从那以后问题就没有出现过。我害怕在 Chrome 中再试一次。
【问题讨论】:
-
是什么请求触发的?在请求完成之前,您不会在浏览器中按 Escape,对吗?因为这就是你这样做时的样子——浏览器关闭连接,你得到
connection was aborted。 -
您在使用 Chrome 吗?我得到了相当多的错误。在 Chrome 中,几乎有一半的时间我刷新页面以查看我的更改,它会这样做,我必须刷新两次。在FF中似乎没有发生。我认为这是 Chrome 积极缓存处理中的一些错误。
-
@AndiDog 不按任何东西@Dan 是的。使用铬。刚刚在 Opera 上试了下,还没有出现问题。我会留意的。谢谢!
-
它在 Opera 中似乎运行良好,但是当我在 Chrome 中再次尝试时,Opera 也受到影响。我会继续测试。
-
Chrome 有可能会挂起开发服务器,因此如果您的下一个请求是在另一个浏览器上,您也会在那里遇到异常。我一无所知...
标签: django