Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to load resource: net::ERR_CONNECTION_RESET node js server

Tags:

Am using handlebars and doing a basic form GET to createnewpassword.hbs as below but am getting net::ERR_CONNECTION_RESET error in browser and fails to load the page. Am really stuck with this. Please suggest some pointers or any help will be appreciated.

form1.hbs

  <form name="form1" id="form1" action="/forgotpassword/createnewPassword" method="GET" >
    <input type="hidden" name="tk" id="tk" value="123456">
    <input type="submit" name="submitVals" / >
  </form>

And am listening the route on the nodejs like

app.js

app.get('/forgotpassword/createnewpassword', function(req,res){
    var context = {
      appTitle : "create new password"
     }
    res.render('/filepath/createnewpassword' , context);
});
like image 527
Waseem Avatar asked Jan 05 '17 10:01

Waseem


People also ask

What is the net :: Err_connection_reset 200 OK?

If you run into the “ERR_CONNECTION_RESET” error, it means that your browser can't establish a connection to the remote server. In most cases, it's due to a misconfiguration in your internet settings or something else that's blocking the connection.


1 Answers

This is a cookie problem and most often seen with chrome users

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

OR

Right Click > Inspect Element > Tab Resources > Cookie (Left Menu) > Select domain > Delete All cookie One By One (Right Menu)

refer here

like image 144
BhandariS Avatar answered Sep 24 '22 10:09

BhandariS