title: Parse.Cloud.httpRequest not returning response
body: <p>I am trying to make a Parse.Cloud.httpRequest call, the job executes successfully but i am not getting any response. If i run the request on a RestClient it executes fine but for some reason it's not working in Parse Cloud Code. What am i doing wrong?</p>
  
  <pre><code>Parse.Cloud.job("Loader", function(request, status) {
  
  var xmlreader = require('cloud/xmlreader.js');
  var moment  = require('cloud/moment.js');
  
  var query = new Parse.Query("Codes");
  query.each(function(a) {
    var curDateMonth = moment().date();
    var curMonth = moment().add(1, 'months').month();
    var curYear = moment().year();
  
    Parse.Cloud.httpRequest({
    url: 'https://.....'
  }).then(function(httpResponse) {
    console.log(httpResponse.text); 
  }, function(httpResponse) {
    console.error('Request failed with response code ' + httpResponse.status);
  });
  
  }).then(function() {
      // Set the job's success status
  status.success("Saved successfully.");
  }, function(error) {
  // Set the job's error status
  status.error("Uh oh, something went wrong.");
   });
  });
  </code></pre>