我有一个简单的服务,使用实时身份验证令牌进行简单登录,该令牌在大多数时间。但是,有时这一行:
MobileServiceUser loginResult = await MobileService.LoginWithMicrosoftAccountAsync(token);
抛出一堆 WebExceptions 和 MobileServiceInvalidOperationException 。我收到的消息是
Operation could not be completed. ()
这让我有点困惑。通常这会禁止登录几分钟。在应用程序中有一个允许我重试连接的重新连接按钮最终会让我进入。但是,由于其他客户端能够登录(运行相同的软件),这真的很奇怪。
[edit]问题又出现了,所以这里有更多的数据
这是来自MobileService.LoginWithMicrosoftAccountAsync(令牌)发送的请求;
{Method: POST, RequestUri: '', Version: 1.1, Content: System.Net.Http.StringContent, Headers:
{
X-ZUMO-INSTALLATION-ID: some longish installation id
X-ZUMO-APPLICATION: some longish app id
Accept: application/json
User-Agent: ZUMO/1.0
User-Agent: (lang=Managed; os=Windows Phone; os_version=8.0.0.10211; arch=Win32NT; version=1.0.20324.0)
X-ZUMO-VERSION: ZUMO/1.0 (lang=Managed; os=Windows Phone; os_version=8.0.0.10211; arch=Win32NT; version=1.0.20324.0)
Content-Type: application/json; charset=utf-8
Content-Length: 420
}}
回复:
{StatusCode: 404, ReasonPhrase: '', Version: 0.0, Content: System.Net.Http.StreamContent, Headers:
{
Content-Length: 0
}}