【问题标题】:Xamarin.Android & Azure Push Notifications Internal Server ErrorXamarin.Android 和 Azure 推送通知内部服务器错误
【发布时间】:2016-12-03 06:44:45
【问题描述】:

我正在遵循https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-xamarin-android-get-started-push 的指南(以及似乎抄袭的原始 Xamarin 指南),但我在注册我的客户时遇到了问题。

在设置推送通知服务之前,我已成功登录用户。

GcmClient.CheckDevice(...)GcmClient.CheckManifest(...) 都成功了,我的 PushHandlerService 正在被调用。

我的 PushHandlerService 中的 Push.RegisterAsync(...) 抛出 MobileServiceInvalidOperationException,因为它从服务接收到 HTTP 500 内部服务器错误。

查看 FREB 日志,似乎“错误”实际上应该是成功的,有趣的是与 EasyAuthModule 有某种关系:

  1. NOTIFY_MODULE_COMPLETION ModuleName="EasyAuthModule_64bit", Notification="AUTHENTICATE_REQUEST", fIsPostNotificationEvent="true", CompletionBytes="297", ErrorCode="操作成功完成。 (0x0)" 05:51:01.092

  2. Module_set_response_error_status 警告 ModuleName="EasyAuthModule_64bit", Notification="AUTHENTICATE_REQUEST", HttpStatus="500", HttpReason="Internal Server Error", HttpSubStatus="79", ErrorCode="未指定错误 (0x80004005)", ConfigExceptionInfo="" 05:51:01.092

  3. NOTIFY_MODULE_COMPLETION ModuleName="EasyAuthModule_64bit", Notification="AUTHENTICATE_REQUEST", fIsPostNotificationEvent="true", CompletionBytes="0", ErrorCode="操作成功完成。 (0x0)" 05:51:01.092

【问题讨论】:

    标签: azure xamarin.android google-cloud-messaging azure-mobile-services


    【解决方案1】:

    我认为当您致电client.GetPush().RegisterAsync() 时发生错误?这是当前的一个问题,我们正在 Azure 端部署一个修复程序来解决这个问题。在此期间,您可以在此处查看解决方法:https://adrianhall.github.io/develop-mobile-apps-with-csharp-and-azure/chapter5/android/

    【讨论】:

    • 就是这样,谢谢!我可以在任何地方了解 azure fix 吗?对于遇到此问题的任何其他人,this, from the same book 是我所需要的。这是一个新的数据协定和一个常规的 InvokeAsync,而不是 RegisterAsync 调用。
    • 无处可循。不过,我们现在正在推出该修复程序,并预计该修复程序将在 12 月 16 日之前在全球范围内提供。
    猜你喜欢
    • 1970-01-01
    • 2015-12-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-12-23
    • 2019-10-17
    相关资源
    最近更新 更多