Exception happened during processing of request from ...

1,488 views
Skip to first unread message

Jon bae

unread,
Jan 31, 2019, 10:52:38 AM1/31/19
to Django users
Hello,
I'm running here django 2.1.5 with python 3.7.2 (installed with homebrew) on a macOS (mojave).

On a regular basis I get this error message:

Exception happened during processing of request from ('127.0.0.1', 54882)
Traceback (most recent call last):
 
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py", line 650, in process_request_thread
   
self.finish_request(request, client_address)
 
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py", line 360, in finish_request
   
self.RequestHandlerClass(request, client_address, self)
 
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py", line 720, in __init__
   
self.handle()
 
File "/Users/User/DEV/gogs/TV-Webpage/venv/lib/python3.7/site-packages/django/core/servers/basehttp.py", line 171, in handle
   
self.handle_one_request()
 
File "/Users/User/DEV/gogs/TV-Webpage/venv/lib/python3.7/site-packages/django/core/servers/basehttp.py", line 179, in handle_one_request
   
self.raw_requestline = self.rfile.readline(65537)
 
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socket.py", line 589, in readinto
   
return self._sock.recv_into(b)
ConnectionResetError: [Errno 54] Connection reset by peer
----------------------------------------

It comes for example when I open the admin page, but not always.


Have you any idea how I can fix that?

Have a nice day!

Jonathan

Pedram Badakhchani

unread,
Feb 8, 2019, 7:24:01 AM2/8/19
to Django users
I am getting similar errors, also running Django 2.15 with python 3.72, would be very interested if you have found a solution

Jon bae

unread,
Feb 11, 2019, 8:25:05 AM2/11/19
to Django users


Am Freitag, 8. Februar 2019 13:24:01 UTC+1 schrieb Pedram Badakhchani:
I am getting similar errors, also running Django 2.15 with python 3.72, would be very interested if you have found a solution

No, sadly I did not found a solution. Maybe django is not 100% compatible with python 3.7.2. At the moment I hope that my project runs later on the target (Linux) system, with a lower python version, normal...

Alfredo Silveira

unread,
Dec 29, 2019, 7:04:17 PM12/29/19
to Django users
This is happen to me with django 3 and python 3.7, I just need to update python to version 3.8 and works well
Reply all
Reply to author
Forward
0 new messages