Parse platform 解析服务器错误:代码=3840

Parse platform 解析服务器错误:代码=3840,parse-platform,parse-cloud-code,Parse Platform,Parse Cloud Code,我有一个由Sashido托管的带有解析服务器的应用程序。 我尝试使用以下云功能,以获得最高百分比的用户: Parse.Cloud.define(Constants.kParseFunctionGetPercentageOfUser, function(request, response) {   var userRankQuery = new Parse.Query(Parse.User);   userRankQuery.greaterThan(Constants.kClassUserKeyO

我有一个由Sashido托管的带有解析服务器的应用程序。
我尝试使用以下云功能,以获得最高百分比的用户:

Parse.Cloud.define(Constants.kParseFunctionGetPercentageOfUser, function(request, response) {
  var userRankQuery = new Parse.Query(Parse.User);
  userRankQuery.greaterThan(Constants.kClassUserKeyOverallLikes, request.params.likes);
  userRankQuery.count().then(function(count) {
    var rank = count + 1;
    console.info(Constants.kParseFunctionGetPercentageOfUser + " found rank: " + rank);
    var allUsersQuery = new Parse.Query(Parse.User);
    console.info("allUsersQuery: " + JSON.stringify(allUsersQuery));
    return allUsersQuery.count();
  }).then(function(nrAllUsers) {
    console.info("response.success: rank = " + rank + ", nrAllUsers = " + nrAllUsers);
    response.success(rank*100.0/nrAllUsers);
  }, function(error){
    console.info("response.error: " + error);
    response.error(Constants.kParseFunctionGetPercentageOfUser + " query failed: " + JSON.stringify(error));
  });
});  
我希望这个函数在语法上是正确的

但是,解析服务器只记录这两条语句

console.info(Constants.kParseFunctionGetPercentageOfUser + " found rank: " + rank);

然后好像挂了。至少,这可能需要30秒,在一些网络超时通知之后,我得到了错误:

errorError Domain=NSCocoaErrorDomain Code=3840 
"JSON text did not start with array or object and option to allow fragments not set."   
因此,我设想解析服务器挂起,在超时之后,我的应用程序会出现此错误


知道哪里出了问题吗?

嗨,你解决了吗?@Ronn:对不起,还没有。10天前我联系了Sashido支持部门(票证ID:84916893),但我还没有得到任何答复。。。
errorError Domain=NSCocoaErrorDomain Code=3840 
"JSON text did not start with array or object and option to allow fragments not set."