Getting error in console : Failed to load resource: net::ERR_CONNECTION_RESET
Asked Answered
S

11

43

I have refresh my application page and getting this error in console Failed to load resource: net::ERR_CONNECTION_RESET.

I have tried to re-install the XAMPP version but this doesnt work for me.

Simonton answered 24/7, 2014 at 10:45 Comment(2)
I have the same problem, what solution did solve your problem?Carpus
I had the same problem and used Laragon. In Laragon settings, I just changed the port from 80 to 8080 and the problem was solved.Pelorus
N
25

I think you are using chrome. The problem is the certificate mismatch or the expiration of the certificate.Check your certificate properly.

Just visit here for more information.

Nuts answered 24/7, 2014 at 10:48 Comment(8)
@ code Lover : but i am getting this error on Mozilla also. What you think its just a browser isuue?Simonton
@lakhan its because of the certificate mismatch as i saidNuts
i checked my certificate expiration is in 2015. as you said its about mismatch.how to check whether is mismatched or not...because my other sites are working fine...only the application i am running is not.Simonton
@lakhan see after searching about this i came into a conclusion that this can be cause dut to many reason ..it can be also due to the driver you are using ..maybe it will be fine if you update your network drivers to latest version..see here tomshardware.com/answers/id-1982982/…Nuts
Yes but this is only comming when i am running my application on my localhost... any idea in case of localhost comes in part.Simonton
@lakhan have you checked your attrbute tag??..#2025945Nuts
Yes this is not the issue...:(Simonton
@lakhan as i told you there are many problem which can cause this ..maybe a research can help you ..:) ..i have provided only some of the issue which can cause this but there are many issues ..Nuts
R
20

I'm using chrome too and facing same problem on my localhost. I did a lot of things like clear using CCleaner and restart OS. But my problem was solved with clearing cookie. In order to clear cookie:

  1. Go to Chrome settings > Privacy > Content Settings > Cookie > All cookie and Site Data > Delete domain problem

OR

  1. Right Click > Inspect Element > Tab Resources > Cookie (Left Menu) > Select domain > Delete All cookie One By One (Right Menu)
Ramie answered 13/5, 2015 at 18:10 Comment(2)
This is is actually the real answer, I have found some faulty database index of a site in cookies and this error disapered after I have deleted taht data base, thank you.Turkey
I have deleted the related domain's cookie but it did not help. I was working on localhost so I deleted the all cookie related with the localhost. Any idea? @TurkeyCarpus
A
9

I had a similar issue using Apache 2.4 and PHP 7.

My client sent a lot of requests when refreshing (hard reloading) my application page in the browser and every time some of the last requests resulted in this error in console:

GET http://example.com/api/v1/my/resource net::ERR_CONNECTION_RESET

It turned out that my client was reaching the maximum amount of threads that was allowed. The threads exceeding this configured ceiling are simply not handled by Apache at all resulting in the connection reset error response.

The amount of threads can be easily raised by setting the ThreadsPerChild value for the module in question.
The easiest way to make such change is to uncomment the Server-pool management config file conf/extra/httpd-mpm.conf and then editing the preset values in the file to desired values.

1) Uncomment the Server-pool management file

# Server-pool management (MPM specific)
Include conf/extra/httpd-mpm.conf

2) Open and edit the file conf/extra/httpd-mpm.conf and raise the amount of threads

In my case I had to change the threads for the mpm_winnt_module:

# raised the amount of threads for mpm_winnt_module to 250
<IfModule mpm_winnt_module>
    ThreadsPerChild        250
    MaxConnectionsPerChild   0
</IfModule>

A comprehensive explanation on these Server-pool management configuration settings can be found in this post on StackOverflow.

Aeroscope answered 30/3, 2017 at 14:8 Comment(0)
D
5

Try it with the browser in incognito mode first. If incognito works it's probably an extension or settings issue with the browser(s) and not a server issue. Hopefully this saves someone the headache I just went through.

Dixon answered 26/9, 2017 at 1:7 Comment(1)
This helped me figure out my issue too, was also my VPN like @user7630000 said. Just removed it from my Chrome browser and bam issue fixed.Wayland
J
2

I had the same error with Symfony on wamp and PHP 7.0.0.

symptoms

None of the JS and CSS dependencies was loaded on the "dev" environnement, with error Failed to load resource: net::ERR_CONNECTION_RESET

solution

It's effectively a certificate problem in php.ini. You need to set the property curl.cainfo to a valid certificate in the line :

curl.cainfo = C:\your\wamp\path\bin\cacert\cacert.pem
Jiffy answered 13/9, 2016 at 14:35 Comment(0)
T
2

Turning off my VPN resolved the issue.

Trichloroethylene answered 27/2, 2017 at 13:12 Comment(0)
M
1

For me, this error was happening on localhost, but it disappeared when routing it through ngrok and was replaced with a MUCH more helpful error (net::ERR_INCOMPLETE_CHUNKED_ENCODING) that led me here:

https://stackoverflow.com/a/29969400

Basically, the Kestrel server I was using was saying it was chunked output, but not terminating it properly. I double checked it with Fiddler which confirmed the error.

Micra answered 2/11, 2018 at 3:49 Comment(0)
W
1

In my case i have used .woff files from git repository, and i noticed git has changed my binary files. That with some null character at the file endings. I have rechanged to the orgnal .woff source files and it has corrected!

Also i have understood visual studio controller sending corrupted error like ERR_CONNECTION_RESET from the controller when it gots null character

I shared for all who live this problem

Wimberly answered 9/1, 2019 at 8:53 Comment(0)
M
0

(Short) In my case : My URL redirected to https://localhost instead of http://localhost Just try to click the first link and you will know about HOW?

(LONG) As extra, I add summary about this situation Based on Timing breakdown phases from developer.chrome.com eg:

  • Queueing
  • Stalled
  • DNS Lookup
  • Initial connection (TCP,SSL)
  • Request sent
  • ServiceWorker Preparation
  • Request to ServiceWorker
  • Waiting (TTFB)
  • Content Download
  • Receiving Push
  • Reading Push

How:

  1. Right click on page
  2. Click Inspect
  3. Clik Network
  4. Clik on your Trouble URL
  5. Clik Timing tab

Timing Tab

Click on Explanation, and there a solution based on your case.

In my case Stalled: and explained in that document:

Here its 2 phase for my case:

Queueing. The browser queues requests when:

  • There are higher priority requests.
  • There are already six TCP connections open for this origin, which is the limit. Applies to HTTP/1.0 and HTTP/1.1 only.
  • The browser is briefly allocating space in the disk cache

Stalled. The request could be stalled for any of the reasons described in Queueing.

Just read, information on that Timing Tab and I hope this can help anyone who experinced similar problem

Marten answered 10/9, 2021 at 11:11 Comment(0)
D
0

This error can also happen when the HTTP response contains a header which exceeds 16KB, which is the maximum the browser can handle (Chrome, Edge, Firefox).

It can be tested with Postman, where the request will complete without any error, but it will fail in the browser.

Delores answered 6/11, 2023 at 11:41 Comment(0)
I
0

In my case the problem was generated by too low values of the configuration of the php.ini file. Specifically with:
post_max_size and upload_max_filesize.

Inveigle answered 30/4, 2024 at 1:37 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.