title: Error: socket hang up in Node JS using request-promise module
body: <p>I am getting socket hang up eror message while sending request. As per observation request is getting processed but at the time of sending response, I am getting below response:</p>
  
  <pre><code> {
     "success":false,
     "error":{
       "name":"RequestError","message":"Error: socket hang up","cause":{"code":"ECONNRESET"},
       "error":{"code":"ECONNRESET"},
       "options":{"uri":"request url","simple":true,"resolveWithFullResponse":false,"transform2xxOnly":false}
     }
  }
  </code></pre>
  
  <p>I am using below code:</p>
  
  <pre><code>var options = {
    uri: 'request url',
  };
  request(options).then(function(data) {
      res.json({
        success: true,
        data: data
      });     
   })
   .catch(function (err) {
      res.json({
        success: false,
        error: err,
      });
  });
  </code></pre>