未收到MSGraph订阅通知

时间:2017-03-21 11:02:21

标签: microsoft-graph

我们在移动应用中使用Graph API来订阅用户日历项目的更改。我们使用图形API的订阅功能和webhooks。但是我们注意到有些时候(大约10%)我的服务器webhook根本没有被调用。

进一步解决此问题的正确方法是什么? 我们有所有必要的细节,如SubscriptionID,EventID,Timestamp等,但不确定我们在哪里报告/检查这个?

我们非常感谢任何指针。

3 个答案:

答案 0 :(得分:0)

感谢@Cuong Pham的回复。请查找对您问题的回复

1. 10%的跌幅何时开始?它现在确定性地发生了吗?你是如何追踪的? 它在开发和测试时经常发生。当我们在outlook日历中快速创建/更新各种事件时,就会发生这种情况,服务器webhook没有为我们创建/更新的每个事件打电话。

  1. 您是否在10%的时间内检查了服务器是否健康? 是的,确实如此。

  2. 是发生在1次订阅还是多次订阅? 我一次测试了一个订阅并测试了许多测试帐户。

  3. 您是否可以在未收到通知时提供一些示例?

  4. 我们创建了以下活动 事件编号:AAMkADA5YTQ4MmJmLThmNDYtNDNhZS04OGE3LWViNWI5N2Y4MWMxYQBGAAAAAABWiqo4vozOQ419BdQEXTkJBwASuuWMQ-IATJZLWuErOR7oAAAAAAAAAAAuuMMQ-IATJZLWUErOR7oAAFWucx7AAA = 事件编号:AAMkADA5YTQ4MmJmLThmNDYtNDNhZS04OGE3LWViNWI5N2Y4MWMxYQBGAAAAAABWiqo4vozOQ419BdQEXTkJBwASuuWMQ-IATJZLWuErOR7oAAAAAAENAAASuuWMQ-IATJZLWUErOR7oAAFWucx8AAA = 事件ID:AAMkADA5YTQ4MmJmLThmNDYtNDNhZS04OGE3LWViNWI5N2Y4MWMxYQBGAAAAAABWiqo4vozOQ419BdQEXTkJBwASuuWMQ-IATJZLWuErOR7oAAAAAAENAAASuuWMQ-IATJZLWuErOR7oAAFWucx9AAA = 事件编号:AAMkADA5YTQ4MmJmLThmNDYtNDNhZS04OGE3LWViNWI5N2Y4MWMxYQBGAAAAAABWiqo4vozOQ419BdQEXTkJBwASuuWMQ-IATJZLWuErOR7oAAAAAAAAAAAuuMMQ-IATJZLWUErOR7oAAFWucx_AAA = 事件编号:AAMkADA5YTQ4MmJmLThmNDYtNDNhZS04OGE3LWViNWI5N2Y4MWMxYQBGAAAAAABWiqo4vozOQ419BdQEXTkJBwASuuWMQ-IATJZLWuErOR7oAAAAAAAAAAAuuMMQ-IATJZLWUErOR7oAAFWucx-AAA = 事件编号:AAMkADA5YTQ4MmJmLThmNDYtNDNhZS04OGE3LWViNWI5N2Y4MWMxYQBGAAAAAABWiqo4vozOQ419BdQEXTkJBwASuuWMQ-IATJZLWuErOR7oAAAAAAENAAASuuWMQ-IATJZLWUErOR7oAAFWucyAAAA =

    我们没有收到活动回调 事件ID:AAMkADA5YTQ4MmJmLThmNDYtNDNhZS04OGE3LWViNWI5N2Y4MWMxYQBGAAAAAABWiqo4vozOQ419BdQEXTkJBwASuuWMQ-IATJZLWuErOR7oAAAAAAENAAASuuWMQ-IATJZLWuErOR7oAAFWucx7AAA =

答案 1 :(得分:0)

感谢@Cuong Pham,我没有以前活动的订阅ID,但我可以复制该问题,以下是新活动的详细信息:

        Subscription ID : 9e7e7322-fee8-4469-a56f-549dea1337b9

活动实体ID:

AAMkAGVhOWJlM2Y2LTZmOTEtNDViYi1iY2YzLTFhNjNkMzRiYTRkYQBGAAAAAABoZF4uSbRpRLAH_xccvve-BwAE_Zle4YKZSbQenY2uRzHjAAAAAAEOAAAE_Zle4YKZSbQenY2uRzHjAAMoKFXgAAA =

AAMkAGVhOWJlM2Y2LTZmOTEtNDViYi1iY2YzLTFhNjNkMzRiYTRkYQBGAAAAAABoZF4uSbRpRLAH_xccvve-BwAE_Zle4YKZSbQenY2uRzHjAAAAAAEOAAAE_Zle4YKZSbQenY2uRzHjAAMoKFXhAAA =

AAMkAGVhOWJlM2Y2LTZmOTEtNDViYi1iY2YzLTFhNjNkMzRiYTRkYQBGAAAAAABoZF4uSbRpRLAH_xccvve-BwAE_Zle4YKZSbQenY2uRzHjAAAAAAEOAAAE_Zle4YKZSb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bQenY2uRzHjAAAAAAEOAAAE_Zle4YKZSbQenY2uRzHjAAMoKFXgAAA =

AAMkAGVhOWJlM2Y2LTZmOTEtNDViYi1iY2YzLTFhNjNkMzRiYTRkYQBGAAAAAABoZF4uSbRpRLAH_xccvve-BwAE_Zle4YKZSbQenY2uRzHjAAAAAAEOAAAE_Zle4YKZSbQenY2uRzHjAAMoKFXhAAA =

AAMkAGVhOWJlM2Y2LTZmOTEtNDViYi1iY2YzLTFhNjNkMzRiYTRkYQBGAAAAAABoZF4uSbRpRLAH_xccvve-BwAE_Zle4YKZSbQenY2uRzHjAAAAAAEOAAAE_Zle4YKZSbQenY2uRzHjAAMoKFXiAAA =

答案 2 :(得分:0)

以下是来自我们的日志 23 成功交付的时间戳(对于subscriptionId = 9e7e7322-fee8-4469-a56f-549dea1337b9,您的日志中的 17 即可。缺少的是粗体

2017-03-29T08:01:06.1406213Z
2017-03-29T08:00:56.9920774Z
2017-03-29T08:00:50.5326218Z
2017-03-29T08:00:46.3490796Z
2017-03-29T08:00:35.0256180Z
2017-03-29T08:00:26.6136959Z
2017-03-29T07:57:51.5231916Z
2017-03-29T07:57:46.7700422Z
2017-03-29T07:57:46.4581968Z
2017-03-29T07:57:45.7015587Z
2017-03-29T07:57:29.3896048Z
2017-03-29T07:57:26.4789135Z
2017-03-29T07:57:22.3782616Z
2017-03-29T07:57:15.3104371Z
2017-03-29T07:56:55.4591288Z
2017-03-29T07:56:34.2351871Z
2017-03-29T07:55:14.4247073Z
2017-03-29T07:55:00.7168798Z
2017-03-29T07:52:49.5553493Z
2017-03-29T07:52:49.5425219Z
2017-03-29T07:52:30.6057895Z
2017-03-29T07:52:30.0394213Z
2017-03-29T07:51:50.9999383Z

我还注意到subscriptionId = 18b97de5-235c-4238-b22d-6ccbd54de7f8 订阅了相同的资源,我们在上面的时间范围内记录了23次成功发送,而您的日志只记录 12 收到的通知与 17 相比,对于subscriptionId = 9e7e7322-fee8-4469-a56f-549dea1337b9

以下是我们日志中 23 成功投放的另一个时间戳(对于subscriptionId = 18b97de5-235c-4238-b22d-6ccbd54de7f8,您的日志中的 12 即可。请检查缺少的通知。

2017-03-29T07:51:48.6102665Z
2017-03-29T07:52:30.0238199Z
2017-03-29T07:52:30.6057895Z
2017-03-29T07:52:49.5425219Z
2017-03-29T07:52:49.5553493Z
2017-03-29T07:55:00.7168798Z
2017-03-29T07:55:14.4247073Z
2017-03-29T07:56:34.2351871Z
2017-03-29T07:56:55.2917099Z
2017-03-29T07:57:15.3104371Z
2017-03-29T07:57:22.3782616Z
2017-03-29T07:57:26.4789135Z
2017-03-29T07:57:29.3896048Z
2017-03-29T07:57:45.7015587Z
2017-03-29T07:57:46.7700422Z
2017-03-29T07:57:47.5393604Z
2017-03-29T07:57:48.8098106Z
2017-03-29T08:00:29.7353595Z
2017-03-29T08:00:35.0256180Z
2017-03-29T08:00:41.4958503Z
2017-03-29T08:00:50.5326218Z
2017-03-29T08:00:56.9920774Z
2017-03-29T08:01:06.1406213Z

如果它经常与您的webhook服务器重新编辑,那么我建议以受控方式检查您的服务器pub / sub以跟踪问题。我们可以从最终到交叉参考日志提供帮助。

希望这有帮助。