-
Notifications
You must be signed in to change notification settings - Fork 260
Description
Describe the bug
Sometimes when updating subscription to resource of teams presence we get response:
Microsoft.Graph.Models.ODataErrors.ODataError: Operation: Update; Exception: [A task was canceled.]
This happens once or twice a day. Requests in those incidents seem to be taking from 20 sec to 60 sec. Normally it is ~1sec.
Subscription refresh is triggered by lifetime route.
This results in no presence changed event coming to us before another of lifetime event comes in (which happens after 40-60 minutes lates).
Expected behavior
Presence subscription should be refreshed without throwing error.
How to reproduce
Create subscription to presence resource and refresh it when hit by subscription lifetime event.
Subscription is made this way with delegate connection client:
var subscriptionModel = new Subscription
{
ExpirationDateTime = DateTimeOffset.UtcNow.AddHours(1)
};
await client.Subscriptions[subscriptionId].PatchAsync(subscriptionModel);
SDK Version
No response
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_