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\\"\]}\\r\\nActivityId: 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>"}}}