question

KristianHalvorsen-5072 avatar image
4 Votes"
KristianHalvorsen-5072 asked VinnikovValeri-7025 commented

Subscriptions to communications/presences is highly unstable

We've had real trouble handling subscriptions to communications/presences the last few days. The errors varies, a sample of them are listed below.

Regarding the "Subscription failed for some users"; it is not consistent which users causes this. Could fail one time but succeed the next time, so we don't think it's related to the users.

Could you verify if there are generic issues with subscriptions for presence, or do you think this is related to our implementation or tenant in any way?


  • Failed to create a subscription
    Request URL: https://graph.microsoft.com/v1.0/subscriptions
    Request Method: POST
    Status Code: 500 Internal Server Error
    Remote Address: 20.190.160.25:443
    {"error":{"code":"ExtensionError","message":"Operation: Create; Exception: [Status Code: InternalServerError; Reason: Subscription failed for some users. Remove the failing users and retry. (<user>)]","innerError":{"date":"2021-10-14T11:50:14","request-id":"<request-id>","client-request-id":"<client-request-id>"}}}

  • Failed to get subscriptions
    Request URL: https://graph.microsoft.com/v1.0/subscriptions
    Request Method: GET
    Status Code: 503 Service Unavailable
    Remote Address: 20.190.160.25:443
    {"error":{"code":"StoreBadRequest","message":"The store is busy.","innerError":{"date":"2021-10-14T12:00:24","request-id":"<request-id>","client-request-id":"<client-request-id>"}}}

  • Failed to delete a subscription:
    Request URL: https://graph.microsoft.com/v1.0/subscriptions
    Request Method: GET
    Status Code: 200 OK
    Remote Address: 20.190.160.25:443
    {"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#subscriptions","value":[{"id":"ed7ec4c4-159c-42db-9da7-54083eb7ffbd","resource":"communications/presences?$filter=id in ('<user>')","applicationId":"<applicationId>","changeType":"updated","clientState":null,"notificationUrl":"<notificationUrl>","notificationQueryOptions":null,"lifecycleNotificationUrl":null,"expirationDateTime":"2021-10-14T12:15:29.705Z","creatorId":"<creatorId>","includeResourceData":null,"latestSupportedTlsVersion":"v1_2","encryptionCertificate":null,"encryptionCertificateId":null,"notificationUrlAppId":null}]}

Request URL: https://graph.microsoft.com/v1.0/subscriptions/ed7ec4c4-159c-42db-9da7-54083eb7ffbd
Request Method: DELETE
Status Code: 503 Service Unavailable
{"error":{"code":"StoreBadRequest","message":"Message: {\"Errors\":[\"Request rate is large. More Request Units may be needed, so no changes were made. Please retry this request later. Learn more: http://aka.ms/cosmosdb-error-429"]}rnActivityId: 9edff5af-6689-439b-8b33-08a700232efd, Request URI: <Request URI>, RequestStats: \r\nRequestStartTime: 2021-10-14T12:01:37.0326598Z, Number of regions attempted: 1\r\nResponseTime: 2021-10-14T12:01:37.0482883Z, StoreReadResult: StorePhysicalAddress: <StorePhysicalAddress>, LSN: 426000722, GlobalCommittedLsn: 426000720, PartitionKeyRangeId: , IsValid: True, StatusCode: 429, IsGone: False, IsNotFound: False, IsInvalidPartition: False, RequestCharge: 0.38, ItemLSN: -1, SessionToken: , ResourceType: Document, OperationType: Read\r\nResponseTime: 2021-10-14T12:01:37.0482883Z, StoreReadResult: StorePhysicalAddress: <StorePhysicalAddress>, LSN: 426000722, GlobalCommittedLsn: 426000720, PartitionKeyRangeId: 77, IsValid: True, StatusCode: 200, IsGone: False, IsNotFound: False, IsInvalidPartition: False, RequestCharge: 1.14, ItemLSN: 426000488, SessionToken: <SessionToken>, ResourceType: Document, OperationType: Read\r\n, SDK: documentdb-dotnet-sdk/2.1.1 Host/64-bit MicrosoftWindowsNT/10.0.17763.0","innerError":{"date":"2021-10-14T12:01:37","request-id":"<request-id>","client-request-id":"<client-request-id>"}}}

Request URL: https://graph.microsoft.com/v1.0/subscriptions/ed7ec4c4-159c-42db-9da7-54083eb7ffbd
Request Method: DELETE
Status Code: 404 Not Found
Remote Address: 20.190.160.25:443
{"error":{"code":"ExtensionError","message":"Operation: Delete; Exception: [Status Code: NotFound; Reason: The subscription was not found.]","innerError":{"date":"2021-10-14T12:01:41","request-id":"<request-id>","client-request-id":"<client-request-id>"}}}

microsoft-graph-notificationsmicrosoft-graph-change-notifications
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

We are having similar issues with getting subscriptions. 500 Internal server error and "Object reference not set to an instance of an object."

1 Vote 1 ·

I also have faced with similar issue. I try to create subscription for 40 users and receive "500 Internal server error" response which contains all that 40 users in <user> section (see template).

Temlate of response:
{
"error": {
"code": "ExtensionError",
"message": "Operation: Create; Exception: [Status Code: InternalServerError; Reason: Subscription failed for some users. Remove the failing users and retry. (<user>)]",
"innerError": {
"date": "2021-10-14T11:50:14",
"request-id": "<request-id>",
"client-request-id": "<client-request-id>"
}
}
}

0 Votes 0 ·

I also have problem with subscription and renewal of existing subscription but it is minor problem because application can try it several times and finally succeed before it expires. Much bigger problem is that notifications not always sent after a user presence changes. You can do nothing about that.. In the Past during 2 months I used this feature everything was working perfectly.
Best regards

0 Votes 0 ·

0 Answers