title: node.js request module giving error for http call [Error: Invalid protocol: null]
body: <p>I am using request module for node.js to make HTTP GET call to an api having address like: <code>http://x.x.xxx.xx:8000/names</code> but the call is returning an error <code>[Error: Invalid protocol: null]</code>. </p>
  
  <p>My api call looks like this:</p>
  
  <pre><code>request.get({
      uri: 'http://x.x.xxx.xx:8000/names'
  }, function(err, res, body){
      if(err == null){
          res.status(200).send(data);
      }else{
          console.log(err);
      }});
  </code></pre>
  
  <p>Note: I have used proxies for npm through "npm config set proxy" and "npm config set https proxy" . Removing them is also not solving the problem.</p>
  
  <p>Thanks</p>