Microsoft Graph订阅ExtensionError-删除/更新 [英] Microsoft Graph Subscription ExtensionError - Delete / Update

查看:95
本文介绍了Microsoft Graph订阅ExtensionError-删除/更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 我目前有一个Azure Active Directory应用程序,该应用程序具有一个Microsoft Graph Webhook订阅,用于侦听指定邮箱中的新电子邮件(消息).
  • 订阅具有计划的任务,该任务通过更新请求来更新订阅的到期日期.订阅使用其MS Graph提供的ID作为目标.
  • 对此特定订阅的任何DELETE或UPDATE请求都将失败. (请参见下面的错误响应".)
  • I currently have an Azure Active Directory Application that has a Microsoft Graph Webhook Subscription listening for new emails (messages) in a specified mailbox.
  • The subscription has a scheduled task that renews the subscription's expiration date via an Update request. The subscription is targeted using its MS Graph Provided ID.
  • Any DELETE or UPDATE request against this specific subscription fails. (See 'Error Response' below.)
  • 我意识到这可能是与此处提出的问题相同的问题/错误: https://stackoverflow.com/a/53111286/7902641
  • 对此是否有任何修复/解决方案或解决方法?
  • 如果已解决或完全不同的问题,我该怎么做才能解决此特定问题?
  • 谢谢!
  • I realize that this may be the same issue / bug as the question presented here: https://stackoverflow.com/a/53111286/7902641
  • Has there been any fix / resolution / or workaround for this?
  • If there has been a fix or this is a different problem altogether, what can I do to resolve this specific issue?
  • Thanks!
{
  "error": {
    "code": "ExtensionError",
    "message": "Operation: Delete; Exception: [Status Code: NotFound; Reason: The subscription with Id 'Q0IzOUZCMTYtMTk4OC00OEZDLUFFQjQtNzI4NTU1MDREMkVDXzQ5RDk2MzI3LUFDRDEtNEE2QS05QTQ1LUYwQ0ZGQjgwNEQ0Qg==' is not found.]",
    "innerError": {
      "request-id": "e83fe463-....-....-....-76eb35e2e697",
      "date": "2019-03-22T02:35:14"
    }
  }
}


其他信息

  • 订阅的Microsoft Graph ID是否以某种方式进行了转换?原始订阅ID为(528b79f1 -....-....-....- 360c0e1149e9),返回的目标ID为:(Q0IzOUZ ... NEQ0Qg == ).
  • 正在执行的UPDATE请求是使用Microsoft Graph SDK(C#)来自ASP.NET CORE应用程序的.
    • https://github.com/microsoftgraph/msgraph-sdk-dotnet

    • Extra Info

      • Somehow the Microsoft Graph ID for the subscription is...transformed? The original subscription ID is ( 528b79f1-....-....-....-360c0e1149e9 ) and the returned target ID is: ( Q0IzOUZ ... NEQ0Qg== ) .
      • The executing UPDATE request originates from an ASP.NET CORE application, using the Microsoft Graph SDK (C#).
        • https://github.com/microsoftgraph/msgraph-sdk-dotnet
          • 应用程序:
            • 注册的Azure Active Directory守护程序应用程序
            • Application:
              • Registered Azure Active Directory Daemon Application
              • ASP.NET CORE(2.1)-Web Api
              • 使用MS Graph SDK(上面发布了Github链接)
              • ASP.NET CORE (2.1) - Web Api
              • Using MS Graph SDK (Github link posted above)
              • 相关订阅已过期,并从我的应用程序的订阅列表中消失了(时间戳,PST:3/22/2019 8:45:22 AM).
              • 我将无法再对其进行测试(抱歉,S.O.后代!).
              • 但是,好消息是:既然问题子(订阅)已消失,我就可以创建新的订阅并重新启动受影响的服务.我能够针对任何新创建的订阅成功提交获取/更新/删除请求.
              • The subscription in question has now expired and disappeared from my application's subscriptions list (timestamp, PST: 3/22/2019 8:45:22 AM).
              • I will no longer be able to test against it (sorry S.O. posterity!).
              • However, good news: now that the problem child (subscription) in question is gone, I was able to create a new subscription and restart my affected service. I am able to successfully submit get / update / delete requests against any newly created subscriptions.

              推荐答案

              ==更新==

              • 相关订阅现已过期,并且从我的应用程序的订阅列表中消失(时间戳,PST:3/22/2019 8:45:22 ).

              == Update ==

              • The subscription in question has now expired and disappeared from my application's subscriptions list (timestamp, PST: 3/22/2019 8:45:22 AM).

              我将无法再对其进行测试(抱歉,S.O.后代!).

              I will no longer be able to test against it (sorry S.O. posterity!).

              但是,好消息是:既然所讨论的问题子(订阅)消失了,我可以创建一个新的订阅并重新启动 我受影响的服务.我能够成功提交获取/更新/ 删除针对任何新创建的订阅的请求.

              However, good news: now that the problem child (subscription) in question is gone, I was able to create a new subscription and restart my affected service. I am able to successfully submit get / update / delete requests against any newly created subscriptions.

              由于此帖子已使用了将近一年,并且很可能已通过MSFT的修复(在我们的实现中没有可行的修复)得到解决,因此我将此帖子标记为已回答".

              As this post is almost a year old and was most likely resolved via a fix by MSFT (no actionable fixes in our implementations), I am marking this post as "answered".

              @baywet 谢谢您的建议.

              这篇关于Microsoft Graph订阅ExtensionError-删除/更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆