I accidentally let my subscriptions expire last night. When I sat down at work this morning, graph notifications were not flowing into my application and GET https://graph.microsoft.com/v1.0/subscriptions/
returned no subscriptions. I created new subscriptions successfully, but am still not receiving notifications from Graph.
So, I am trying to cleanup the subscriptions I created this morning to troubleshoot. In doing so I reached a subscription that results in an error when deleting.
I first request GET https://graph.microsoft.com/v1.0/subscriptions/
to retrieve a list of active subscriptions. From that response, I get the id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
I then send a request to DELETE https://graph.microsoft.com/v1.0/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
This returns the following response
404 NOT FOUND
{
"error": {
"code": "ExtensionError",
"message": "Operation: Delete; Exception: [Status Code: NotFound; Reason: Not Found]",
"innerError": {
"request-id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"date": "2018-12-13T20:36:36"
}
}
}
In my research into this error, I came across this SO question: Deleting Microsoft graph fails with ExtensionError
The answer suggests that my subscription has been orphaned. Could this have been the original problem with the original expired subscriptions?
Any advice or experience in this matter?