title: Parse Failed with: TypeError: Cannot read property 'success' of undefined
body: <p>I keep getting this error Failed with: TypeError: Cannot read property 'success' of undefined which i cannot figure out the problem</p>
  
  <pre><code>Parse.Cloud.httpRequest(
  {
      url:url,
      success:function(httpResponse)
      {
        var Day = Parse.Object.extend("TestDay");
        var queryToday = new Parse.Query(Day);
        queryToday.equalTo("dayday", day);
        queryToday.equalTo("daymonth", month);
        queryToday.equalTo("dayyear", year);
        queryToday.equalTo("owner", theUser);
        queryToday.first().then(function(dayObject)  &lt;---line 662
        {
           if(dayObject == undefined)
           {
             console.log("not found");
           }
           else
           {
             console.log(dayObject);
           }
  
        }, function(error)
        {
  
            console.log("first failed");
        });
      }
   });
  </code></pre>
  
  <p>Failed with: TypeError: Cannot read property 'success' of undefined
      at Object.b.Query.first (Parse.js:1:57000)
      at Object.Parse.Cloud.httpRequest.success (main.js:662:48)</p>