N
N
Nodir Malikov2021-03-29 19:22:41
Django
Nodir Malikov, 2021-03-29 19:22:41

Why such an exception: ConnectionResetError?

I did a task manager on Django, everything works fine, but when I exit the browser on both the computer and the phone, an exception is displayed in the console:
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

Full text of the error

Exception occurred during processing of request from ('192.168.1.101', 55129)
Traceback (most recent call last):
File "C:\Users\Нодир\AppData\Local\Programs\Python\Python39\lib\socketserver.py", line 650, in process_request_thread
self.finish_request(request, client_address)
File "C:\Users\Нодир\AppData\Local\Programs\Python\Python39\lib\socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Users\Нодир\AppData\Local\Programs\Python\Python39\lib\socketserver.py", line 720, in __init__
self.handle()
File "C:\Users\Нодир\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\servers\basehttp.py", line 174, in handle
self.handle_one_request()
File "C:\Users\Нодир\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\servers\basehttp.py", line 182, in handle_one_request
self.raw_requestline = self.rfile.readline(65537)
File "C:\Users\Нодир\AppData\Local\Programs\Python\Python39\lib\socket.py", line 704, in readinto
return self._sock.recv_into(b)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
----------------------------------------


Isn't it bad? But at the same time, the application continues to work without problems.

Link to github

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question