Can';t在Azure移动服务中进行google身份验证后将项目插入表中

Can';t在Azure移动服务中进行google身份验证后将项目插入表中,azure,azure-mobile-services,Azure,Azure Mobile Services,我正在测试Azure移动服务站点的示例代码。这是iOS的待办事项应用程序。Azure站点中有一个按钮可用于为此应用程序创建表。该应用程序运行良好 但当我在站点中打开了谷歌认证选项后,我无法从Azure服务器插入或获取TODO。我通过应用程序登录谷歌,MSClient:loginWithProvider成功 [self.todoService.client loginWithProvider:@"google" controller:self animated:YES completion

我正在测试Azure移动服务站点的示例代码。这是iOS的待办事项应用程序。Azure站点中有一个按钮可用于为此应用程序创建表。该应用程序运行良好

但当我在站点中打开了谷歌认证选项后,我无法从Azure服务器插入或获取TODO。我通过应用程序登录谷歌,MSClient:loginWithProvider成功

    [self.todoService.client loginWithProvider:@"google" controller:self animated:YES completion:^(MSUser * _Nullable user, NSError * _Nullable error) {
        if (error==nil) {
            // obviously successful
            NSLog(@"login success %@", user.userId);
        }

        [self dismissViewControllerAnimated:YES completion:nil];
    }];
但每当我插入新的todo时,我都会出现这个错误

2016-02-03 00:15:52.311 TryMobileApp[7432:1327892] Error Domain=com.Microsoft.MicrosoftAzureMobile.ErrorDomain Code=-1201 "The server did not return the expected item." UserInfo={NSLocalizedDescription=The server did not return the expected item., com.Microsoft.MicrosoftAzureMobile.ErrorRequestKey=<NSMutableURLRequest: 0x7c258d90> { URL: http://thehome.azurewebsites.net/tables/TodoItem }, com.Microsoft.MicrosoftAzureMobile.ErrorResponseKey=<NSHTTPURLResponse: 0x7ae095e0> { URL: https://thehome.azurewebsites.net/tables/TodoItem } { status code: 200, headers {
"Cache-Control" = "no-cache";
"Content-Encoding" = gzip;
"Content-Length" = 326;
"Content-Type" = "application/json; charset=utf-8";
Date = "Tue, 02 Feb 2016 16:15:51 GMT";
Etag = "W/\"186-ChUpLnifKBz6ME0BS21A5w\"";
Expires = 0;
Pragma = "no-cache";
Server = "Microsoft-IIS/8.0";
Vary = "Accept-Encoding";
"X-Powered-By" = "Express, ASP.NET";
2016-02-03 00:15:52.311 TryMobileApp[7432:1327892]Error Domain=com.Microsoft.MicrosoftAzureMobile.ErrorDomain code=-1201“服务器未返回预期项目。”UserInfo={NSLocalizedDescription=服务器未返回预期项目,com.Microsoft.MicrosoftAzureMobile.ErrorRequestKey={URL:http://thehome.azurewebsites.net/tables/TodoItem },com.Microsoft.MicrosoftAzureMobile.ErrorResponseKey={URL:https://thehome.azurewebsites.net/tables/TodoItem }{状态代码:200,标题{
“缓存控制”=“无缓存”;
“内容编码”=gzip;
“内容长度”=326;
“内容类型”=“应用程序/json;字符集=utf-8”;
日期=“2016年2月2日星期二16:15:51 GMT”;
Etag=“W/\”186-ChUpLnifKBz6ME0BS21A5w\”;
Expires=0;
Pragma=“无缓存”;
Server=“Microsoft IIS/8.0”;
Vary=“接受编码”;
“X-Powered-By”=“Express,ASP.NET”;
}}}

如果我关闭Azure站点中的身份验证选项,它会再次正常工作


有什么建议吗?

根据错误消息,服务器返回了200(成功)响应。您如何调用
MSTable
对象上的
insert
方法?服务器端是否有脚本/自定义逻辑?错误消失了。我不知道发生了什么。我删除了一个应用程序并创建了一个新的,然后它就可以工作了!