TypeError: 'NoneType' object is not subscriptable
来源:14-1 elasticsearch介绍
慕斯卡9173574
2019-02-17
运行搜索的时候遇到这个问题[19/Feb/2019 16:07:20] “GET /static/img/timg.jpg HTTP/1.1” 200 8192
Traceback (most recent call last):
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py”, line 138, in run
self.finish_response()
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py”, line 180, in finish_response
self.write(data)
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py”, line 274, in write
self.send_headers()
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py”, line 332, in send_headers
self.send_preamble()
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py”, line 255, in send_preamble
(‘Date: %s\r\n’ % format_date_time(time.time())).encode(‘iso-8859-1’)
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py”, line 453, in _write
result = self.stdout.write(data)
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\socketserver.py”, line 775, in write
self._sock.sendall(b)
ConnectionAbortedError: [WinError 10053] 您的主机中的软件中止了一个已建立的连接。
[19/Feb/2019 16:07:20] “GET /static/img/timg.jpg HTTP/1.1” 500 59
Exception happened during processing of request from (‘127.0.0.1’, 58762)
Traceback (most recent call last):
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py”, line 138, in run
self.finish_response()
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py”, line 180, in finish_response
self.write(data)
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py”, line 274, in write
self.send_headers()
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py”, line 332, in send_headers
self.send_preamble()
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py”, line 255, in send_preamble
(‘Date: %s\r\n’ % format_date_time(time.time())).encode(‘iso-8859-1’)
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py”, line 453, in _write
result = self.stdout.write(data)
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\socketserver.py”, line 775, 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:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py”, line 141, in run
self.handle_error()
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\servers\basehttp.py”, line 86, in handle_error
super().handle_error()
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py”, line 368, in handle_error
self.finish_response()
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py”, line 180, in finish_response
self.write(data)
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py”, line 274, in write
self.send_headers()
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py”, line 331, in send_headers
if not self.origin_server or self.client_is_modern():
File “D:\Users\Administrator\AppData\Local\Programs\Python\Python36\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
1回答
-
bobby
2019-02-19
亲 能再截图看看你的错误异常吗? 将完成的其他的错误栈截图我看看 这个错误栈还无法排查是哪个地方的错误,你的对应的框架使用的版本是多少?
022019-02-21
相似问题