title: Parse [Error]: success/error was not called (Code: 141, Version: 1.9.0)
body: <p>I am trying to write a Cloud Code function that will allow me to edit the data of another user as I cannot do that in the application it self. What the code does (I should say tries to do as I don't know JS) is fetch a User object and a Group (a class I created) object using two separate queries based on the two object IDs inputed. Here is my code </p>
  
  <pre><code>Parse.Cloud.define("addInvite", function(request, response) { 
  Parse.Cloud.useMasterKey();
  
  var userID = request.params.user;
  var groupID = request.params.group;
  
  var user;
  var group;
  
  
  var userQuery = new Parse.Query(Parse.User);
  userQuery.equalTo("objectId", userID);
  
  
  return userQuery.first
  ({
      success: function(userRetrieved)
      {
          user = userRetrieved;    
      },
      error: function(error)
      {
          response.error(error.message);
      }
  });
  
  
  
  var groupObject = Parse.Object.extend("Group");
  var groupQuery = new Parse.Query(groupObject);
  groupQuery.equalTo("objectId", groupID);
  
  
  return groupQuery.first
  ({
      success: function(groupRetrieved)
      {
          group = groupRetrieved;    
      },
      error: function(error)
      {
          response.error(error.message);
      }
  });
  var relations = user.relation("invited");
  relations.add(group);
  
  user.save();
  response.success(); 
  </code></pre>
  
  <p><code>});</code></p>
  
  <p>Every time I execute the method I get the error:
  <strong><em>[Error]: success/error was not called (Code: 141, Version: 1.9.0)</em></strong></p>
  
  <p>Can anyone help with this? Thanks.</p>