python版本3.6.6
django版本1.11
异常并不是每一次访问都会抛出,而且也并不是仅访问时会报错。
[21/Oct/2018 22:27:12] "GET /xadmin/ HTTP/1.1" 200 22523[21/Oct/2018 22:27:12] "GET /static/xadmin/css/xadmin.page.dashboard.css HTTP/1.1" 200 790Traceback (most recent call last): File "d:\python\Lib\wsgiref\handlers.py", line 138, in run self.finish_response() File "d:\python\Lib\wsgiref\handlers.py", line 180, in finish_response self.write(data) File "d:\python\Lib\wsgiref\handlers.py", line 274, in write self.send_headers() File "d:\python\Lib\wsgiref\handlers.py", line 332, in send_headers self.send_preamble() File "d:\python\Lib\wsgiref\handlers.py", line 255, in send_preamble ('Date: %s\r\n' % format_date_time(time.time())).encode('iso-8859-1') File "d:\python\Lib\wsgiref\handlers.py", line 453, in _write result = self.stdout.write(data) File "d:\python\Lib\socketserver.py", line 800, in write self._sock.sendall(b)ConnectionAbortedError: [WinError 10053] 你的主机中的软件中止了一个已建立的连接。 [21/Oct/2018 22:27:12] "GET /static/xadmin/css/xadmin.page.dashboard.css HTTP/1.1" 500 59----------------------------------------Exception happened during processing of request from ('127.0.0.1', 51728)Traceback (most recent call last): File "d:\python\Lib\wsgiref\handlers.py", line 138, in run self.finish_response() File "d:\python\Lib\wsgiref\handlers.py", line 180, in finish_response self.write(data) File "d:\python\Lib\wsgiref\handlers.py", line 274, in write self.send_headers() File "d:\python\Lib\wsgiref\handlers.py", line 332, in send_headers self.send_preamble() File "d:\python\Lib\wsgiref\handlers.py", line 255, in send_preamble ('Date: %s\r\n' % format_date_time(time.time())).encode('iso-8859-1') File "d:\python\Lib\wsgiref\handlers.py", line 453, in _write result = self.stdout.write(data) File "d:\python\Lib\socketserver.py", line 800, in write self._sock.sendall(b)ConnectionAbortedError: [WinError 10053] 你的主机中的软件中止了一个已建立的连接。 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "d:\python\Lib\wsgiref\handlers.py", line 141, in run self.handle_error() File "C:\Users\Administrator\Envs\mxonline\lib\site-packages\django\core\servers\basehttp.py", line 88, in handle_error super(ServerHandler, self).handle_error() File "d:\python\Lib\wsgiref\handlers.py", line 368, in handle_error self.finish_response() File "d:\python\Lib\wsgiref\handlers.py", line 180, in finish_response self.write(data) File "d:\python\Lib\wsgiref\handlers.py", line 274, in write self.send_headers() File "d:\python\Lib\wsgiref\handlers.py", line 331, in send_headers if not self.origin_server or self.client_is_modern(): File "d:\python\Lib\wsgiref\handlers.py", line 344, in client_is_modern return self.environ['SERVER_PROTOCOL'].upper() != 'HTTP/0.9'TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "d:\python\Lib\socketserver.py", line 651, in process_request_thread self.finish_request(request, client_address) File "d:\python\Lib\socketserver.py", line 361, in finish_request self.RequestHandlerClass(request, client_address, self) File "d:\python\Lib\socketserver.py", line 721, in __init__ self.handle() File "C:\Users\Administrator\Envs\mxonline\lib\site-packages\django\core\servers\basehttp.py", line 155, in handle handler.run(self.server.get_app()) File "d:\python\Lib\wsgiref\handlers.py", line 144, in run self.close() File "d:\python\Lib\wsgiref\simple_server.py", line 35, in close self.status.split(' ',1)[0], self.bytes_sentAttributeError: 'NoneType' object has no attribute 'split'----------------------------------------[21/Oct/2018 22:27:12] "GET /xadmin/jsi18n/ HTTP/1.1" 200 4828[21/Oct/2018 22:27:12] "GET /static/xadmin/vendor/font-awesome/fonts/fontawesome-webfont.woff?v=4.0.3 HTTP/1.1" 200 8192Traceback (most recent call last): File "d:\python\Lib\wsgiref\handlers.py", line 138, in run self.finish_response() File "d:\python\Lib\wsgiref\handlers.py", line 180, in finish_response self.write(data) File "d:\python\Lib\wsgiref\handlers.py", line 274, in write self.send_headers() File "d:\python\Lib\wsgiref\handlers.py", line 332, in send_headers self.send_preamble() File "d:\python\Lib\wsgiref\handlers.py", line 255, in send_preamble ('Date: %s\r\n' % format_date_time(time.time())).encode('iso-8859-1') File "d:\python\Lib\wsgiref\handlers.py", line 453, in _write result = self.stdout.write(data) File "d:\python\Lib\socketserver.py", line 800, in write self._sock.sendall(b)ConnectionAbortedError: [WinError 10053] 你的主机中的软件中止了一个已建立的连接。 [21/Oct/2018 22:27:12] "GET /static/xadmin/vendor/font-awesome/fonts/fontawesome-webfont.woff?v=4.0.3 HTTP/1.1" 500 59----------------------------------------Exception happened during processing of request from ('127.0.0.1', 51734)Traceback (most recent call last): File "d:\python\Lib\wsgiref\handlers.py", line 138, in run self.finish_response() File "d:\python\Lib\wsgiref\handlers.py", line 180, in finish_response self.write(data) File "d:\python\Lib\wsgiref\handlers.py", line 274, in write self.send_headers() File "d:\python\Lib\wsgiref\handlers.py", line 332, in send_headers self.send_preamble() File "d:\python\Lib\wsgiref\handlers.py", line 255, in send_preamble ('Date: %s\r\n' % format_date_time(time.time())).encode('iso-8859-1') File "d:\python\Lib\wsgiref\handlers.py", line 453, in _write result = self.stdout.write(data) File "d:\python\Lib\socketserver.py", line 800, in write self._sock.sendall(b)ConnectionAbortedError: [WinError 10053] 你的主机中的软件中止了一个已建立的连接。 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "d:\python\Lib\wsgiref\handlers.py", line 141, in run self.handle_error() File "C:\Users\Administrator\Envs\mxonline\lib\site-packages\django\core\servers\basehttp.py", line 88, in handle_error super(ServerHandler, self).handle_error() File "d:\python\Lib\wsgiref\handlers.py", line 368, in handle_error self.finish_response() File "d:\python\Lib\wsgiref\handlers.py", line 180, in finish_response self.write(data) File "d:\python\Lib\wsgiref\handlers.py", line 274, in write self.send_headers() File "d:\python\Lib\wsgiref\handlers.py", line 331, in send_headers if not self.origin_server or self.client_is_modern(): File "d:\python\Lib\wsgiref\handlers.py", line 344, in client_is_modern return self.environ['SERVER_PROTOCOL'].upper() != 'HTTP/0.9'TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "d:\python\Lib\socketserver.py", line 651, in process_request_thread self.finish_request(request, client_address) File "d:\python\Lib\socketserver.py", line 361, in finish_request self.RequestHandlerClass(request, client_address, self) File "d:\python\Lib\socketserver.py", line 721, in __init__ self.handle() File "C:\Users\Administrator\Envs\mxonline\lib\site-packages\django\core\servers\basehttp.py", line 155, in handle handler.run(self.server.get_app()) File "d:\python\Lib\wsgiref\handlers.py", line 144, in run self.close() File "d:\python\Lib\wsgiref\simple_server.py", line 35, in close self.status.split(' ',1)[0], self.bytes_sentAttributeError: 'NoneType' object has no attribute 'split'