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.

paaacman
  • 3,012
  • 1
  • 20
  • 18
DLV
  • 553
  • 2
  • 6
  • 17

9 Answers9

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.

Community
  • 1
  • 1
Avinash Babu
  • 6,171
  • 3
  • 21
  • 26
  • 1
    @ code Lover : but i am getting this error on Mozilla also. What you think its just a browser isuue? – DLV Jul 24 '14 at 11:01
  • 1
    @lakhan its because of the certificate mismatch as i said – Avinash Babu Jul 24 '14 at 11:03
  • 1
    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. – DLV Jul 24 '14 at 11:08
  • @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 http://www.tomshardware.com/answers/id-1982982/err-connection-reset-error-chrome.html – Avinash Babu Jul 24 '14 at 11:16
  • Yes but this is only comming when i am running my application on my localhost... any idea in case of localhost comes in part. – DLV Jul 24 '14 at 11:27
  • @lakhan have you checked your attrbute tag??..http://stackoverflow.com/questions/2025445/javascript-failed-to-load-source-for-http-localhost-js-m-js – Avinash Babu Jul 24 '14 at 11:35
  • Yes this is not the issue...:( – DLV Jul 24 '14 at 11:40
  • @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 .. – Avinash Babu Jul 24 '14 at 11:44
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)
hatef
  • 5,491
  • 30
  • 43
  • 46
Willy Anjaya
  • 201
  • 2
  • 5
  • 1
    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. – user164863 May 17 '15 at 11:36
  • 1
    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? @user164863 – Hilal Dec 14 '18 at 13:01
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.

Community
  • 1
  • 1
Wilt
  • 41,477
  • 12
  • 152
  • 203
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.

emanresu
  • 141
  • 2
  • 5
  • 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. – DeathGrip Feb 10 '18 at 02:39
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
paaacman
  • 3,012
  • 1
  • 20
  • 18
2

Turning off my VPN resolved the issue.

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.

Drew Delano
  • 1,421
  • 16
  • 21
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

Hamit YILDIRIM
  • 4,224
  • 1
  • 32
  • 35
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

sukalogika
  • 603
  • 4
  • 11
  • 18