Error occured while trying to proxy to: localhost:8080/
来源:9-4 用户个人信息修改
慕慕7077877
2020-02-29
在修改个人信息时浏览器返回了下面的错误Error occured while trying to proxy to: localhost:8080/
pycharm后台输出了
[29/Feb/2020 16:52:41] "PATCH /users/1/ HTTP/1.1" 200 100
Traceback (most recent call last):
File "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\wsgiref\handlers.py", line 138, in run
self.finish_response()
File "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\wsgiref\handlers.py", line 180, in finish_response
self.write(data)
File "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\wsgiref\handlers.py", line 274, in write
self.send_headers()
File "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\wsgiref\handlers.py", line 332, in send_headers
self.send_preamble()
File "C:\Users\xiao_\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 "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\wsgiref\handlers.py", line 453, in _write
result = self.stdout.write(data)
File "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\socketserver.py", line 775, in write
self._sock.sendall(b)
ConnectionAbortedError: [WinError 10053] 你的主机中的软件中止了一个已建立的连接。
[29/Feb/2020 16:52:41] "PATCH /users/1/ HTTP/1.1" 500 59
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 61786)
Traceback (most recent call last):
File "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\wsgiref\handlers.py", line 138, in run
self.finish_response()
File "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\wsgiref\handlers.py", line 180, in finish_response
self.write(data)
File "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\wsgiref\handlers.py", line 274, in write
self.send_headers()
File "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\wsgiref\handlers.py", line 332, in send_headers
self.send_preamble()
File "C:\Users\xiao_\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 "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\wsgiref\handlers.py", line 453, in _write
result = self.stdout.write(data)
File "C:\Users\xiao_\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 "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\wsgiref\handlers.py", line 141, in run
self.handle_error()
File "C:\Users\xiao_\Envs\mxshop\lib\site-packages\django\core\servers\basehttp.py", line 116, in handle_error
super().handle_error()
File "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\wsgiref\handlers.py", line 368, in handle_error
self.finish_response()
File "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\wsgiref\handlers.py", line 180, in finish_response
self.write(data)
File "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\wsgiref\handlers.py", line 274, in write
self.send_headers()
File "C:\Users\xiao_\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 "C:\Users\xiao_\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
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\socketserver.py", line 639, in process_request_thread
self.finish_request(request, client_address)
File "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\socketserver.py", line 361, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\socketserver.py", line 696, in __init__
self.handle()
File "C:\Users\xiao_\Envs\mxshop\lib\site-packages\django\core\servers\basehttp.py", line 171, in handle
self.handle_one_request()
File "C:\Users\xiao_\Envs\mxshop\lib\site-packages\django\core\servers\basehttp.py", line 194, in handle_one_request
handler.run(self.server.get_app())
File "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\wsgiref\handlers.py", line 144, in run
self.close()
File "C:\Users\xiao_\Envs\mxshop\lib\site-packages\django\core\servers\basehttp.py", line 111, in close
super().close()
File "C:\Users\xiao_\AppData\Local\Programs\Python\Python36\Lib\wsgiref\simple_server.py", line 35, in close
self.status.split(' ',1)[0], self.bytes_sent
AttributeError: 'NoneType' object has no attribute 'split'
----------------------------------------
刷新用户详情页面刚修改的数据也加载回来,不知道这个报错是什么原因。请老师指点
写回答
2回答
-
慕慕7077877
提问者
2020-03-20
添加订单的时候也会报错
072020-03-30 -
bobby
2020-03-15
只有修改个人信息才报这个错吧 其他情况下有没有这个问题?
032020-05-06
Python前后端分离开发Vue+Django REST framework实战
Django REST framework课程视频,RESTFul API前后端分离开发
2873 学习 · 2457 问题
相似问题