I am using django with postgresql, whenever I try to save or delete anything, this error occurs -
Traceback (most recent call last):
File \"c:\\program file
I was making a web application and was facing the same issue in windows 10, python 3.7.6, django 3.0.8. I tried a lot of stuff and i finally found a fix.
I was using a form which called a js function onsubmit which in turn sent a REST call which was getting canceled with the '[WinError 10053] An established connection was aborted by the software in your host machine' error in command prompt.
I added the parameter method='post' and used jQuery.ajax in the js function and i added the event.preventDefault() as well in the function as well as some success and fail callbacks. I don't understand why but now i am not getting the error.
Hope this help anyone using js along with HTML forms until a the issue is root-caused and fixed.
This Github bug is tracking the issue
I had the same error: ConnectionAbortedError: [WinError 10053]. Python version: 3.8.1
I restarted my computer and the error disappeared
I have checked in a fix for this in Python: https://github.com/python/cpython/pull/9713
It will be available in the next version of Python 3.7 and later.
this happened to me in the past: In my case: I opened it in firefox first and faced this error. then I opened it in Microsoft edge and the error was gone. try this: open the server URL in a different browser, and see the result must be normal.
I was running into this error even with Python 3.6.5 and django 2.0
I noticed 301 redirects in the network tab of the browser debugger. When I fixed them by appending trailing backslashes to all url/api calls in my html/js, this problem went away. The urlconf must have trailing backslashes as well.