Parse Server: User beforeSave(查询用户结果报错)

Parse Server: User beforeSave (querying user results in error)

我正在尝试将我的 Parse 应用程序迁移到 Parse Server。我收到以下错误(在 Parse.User.beforeSave

Received an error with invalid JSON from Parse: Cannot POST /classes/_User

if (user.get('family')) {
    var query = new Parse.Query('_User');
    query.equalTo('family', user.get('family')); // got here ...
    return query.count() // appears to fail here
        .then(function(count) { 
            if (count < 10) {
                return Parse.Promise.as();
            } else {
                return Parse.Promise.error('Family size cannot exceed 10.')
            }
        })
        .fail(function(err) {
            console.log('family size', err.message);
            return Parse.Promise.error(err.message);
        });
}
return Parse.Promise.as();

它为什么要尝试 POST?

好的,我想我需要将解析挂载点添加到 serverURL。示例应用程序应该做到了......