same exact problem started around 10/4/21. I've worked around the problem for now by implementing a "retry" process if there is an error. Sometimes get the error 2-3 times in a row but always successful within 5 attempts, sometimes just one retry and it works...
Intermittent error when creating a Graph subscription
I have an application for creating a Graph subscription but lately I have started getting intermittent errors when creating the subscription.
The subscription can fail 3-4 times in a row and on the next attempt I get a correct response. And sometimes it work on first attempt.
No difference if the post is to beta or v1.0.
This is my payload and response to https://graph.microsoft.com/v1.0/subscriptions (or https://graph.microsoft.com/beta/subscriptions)
(the start of the id is changed to xxxxxxx)
{
"changeType": "updated",
"notificationUrl": "https://myservice.myserver.com/tmpc/api/notifications",
"resource": "/communications/presences?$filter=id in ('xxxxxxxx-1f78-4731-93c9-7e3ffe2c83ad','xxxxxxxx-667b-4600-9846-282f80b4dcb3','xxxxxxxx-edc4-44ab-a4e1-1b24c9c0c647','xxxxxxxxx-3a8f-45e0-b387-9a5d97e56d75','xxxxxxxx-abce-4a9d-bb84-614f47ecb57e','xxxxxxxx-7182-4aa5-ab7a-8c76af65123c')",
"expirationDateTime":"2021-10-15T22:34:22.0000000Z",
"clientState":"secretClientState"
}
And the response when failing:
{"error":{"code":"ExtensionError","message":"Operation: Create; Exception: [Status Code: InternalServerError; Reason: Subscription failed for some users. Remove the failing users and retry. (xxxxxxxx-1f78-4731-93c9-7e3ffe2c83ad, xxxxxxxx-667b-4600-9846-282f80b4dcb3, xxxxxxxx-edc4-44ab-a4e1-1b24c9c0c647, xxxxxxxx-3a8f-45e0-b387-9a5d97e56d75, xxxxxxxx-abce-4a9d-bb84-614f47ecb57e, xxxxxxxx-7182-4aa5-ab7a-8c76af65123c)]","innerError":{"date":"2021-10-15T21:32:09","request-id":"a8399eb5-cf14-46f6-9ec4-d51b66da6224","client-request-id":"206d4c37-a1d5-48b9-aa40-0dfedeb8617a"}}}
After the subscription post my notification web server receives the following:
validationToken=Validation%3a+Testing+client+application+reachability+for+subscription+Request-Id%3a+a8399eb5-cf14-46f6-9ec4-d51b66da6224
And my web server sends 200 Ok response as it is supposed to.
Any idea why it is failing or what I can do to solve the problem except retrying again and again?
I feel the error message is a bit misleading. If I try to subscribe to a disabled or deleted user I get the same error message and then the "Remove the failing users and retry" message is relevant but here is make no sense to me.
6 answers
Sort by: Most helpful
-
-
Baoxin BX6 Li 11 Reputation points
2021-10-20T01:46:35.407+00:00 same issue, i re-subscript many times.
-
Marius Fjeld 11 Reputation points
2021-10-22T12:55:15.843+00:00 We have also seen the same problem. Hope this will be fixed soon.
-
Macias, Horaci (Horaci) 6 Reputation points
2021-10-31T10:08:45.857+00:00 same here... I thought it was something to do with my application but looks like it's a general issue. I couldn't see any difference between resubscriptions failing and working. Retrying seems to workaround this.
-
Pablo Martinez 6 Reputation points
2021-11-02T13:13:14.473+00:00 Re-try doesn't guarantee anything. I think that Microsoft should improve it, provide more datails and a way to see the status of the API endpoints.