
Autorefresh of home page causes connection error
I have a website built with Django which generates reports. Whenever I click on a report, I always get a request for the main/home page 3-4 seconds later (note: main page is a redirect to a login page): [27/Aug/2021 10:39:04] INFO Requesting Report [27/Aug/2021 10:39:05] INFO Report generated [27/Aug/2021 10:39:05] "GET /report/ HTTP/1.1" 200 560729
- [27/Aug/2021 10:39:07] "GET / HTTP/1.1" 302 0
- [27/Aug/2021 10:39:07] "GET /login/ HTTP/1.1" 200 4395
That request is coming from Firefox (verified by Wireshark) but is not a problem because the report has already been displayed. However, when a report takes longer than 3-4 seconds, I get a connection error: [27/Aug/2021 10:39:09] INFO Requesting Report
- [27/Aug/2021 10:39:12] "GET / HTTP/1.1" 302 0
- [27/Aug/2021 10:39:14] "GET /login/ HTTP/1.1" 200 4395
[27/Aug/2021 10:39:26] INFO Report generated
Exception happened during processing of request from ('127.0.0.1', 50681) ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
I can also create this error by adding a 5 second sleep to any report. This does not happen in other browsers, and they do not have the main/home page refresh. The only solution I found online was to set accessibility.blockautorefresh to True. That did not help, the refresh still happens. Is there a way to stop the refresh? Thanks