title: Google Cloud Functions - Nodejs error , forever loading
body: <pre><code>const request = require('request');
  
  exports.helloWorld = function helloWorld(req, res) {
      var headers = {
      'scheme': 'https',
      'authorization': 'Token 123',
      'user-agent': 'mobile'
      };
      var options = {
          url: 'https://url',
          headers: headers
      };
      function callback(error, response, body) {
      if (!error &amp;&amp; response.statusCode == 200) {
          console.log(body);
          res.status(200).send(response.body);
          }
      }
      request(options, callback);
  };
  </code></pre>
  
  <p>I can submit a request without issue, but once i start doing a request with headers and options , i cant get it to work properly on Google Cloud Function.</p>
  
  <p>Please advice on my mistake</p>
  
  <p>Trigger type
  : HTTP trigger</p>