Hi, I'm trying to subscribe to the calendar events to listen when user create or update an event. Just calling POST on https://graph.microsoft.com/v1.0/subscriptions with the following body
{
"changeType": "created,updated",
"notificationUrl": "https://mi-domain/calendar/microsoft/",
"resource": "me/events",
"expirationDateTime": "2024-03-26T18:23:45.9356913Z",
"clientState": "state-token"
}
Currently the expirationDateTime is respecting the maximum limit of 3 days, I'm using 2 days.
When I run this on my service in Python or using the Graph Explorer get this error
{
"error": {
"code": "ExtensionError",
"message": "Operation: Create; Exception: [Status Code: ServiceUnavailable; Reason: Target resource '0003bffd-6271-34ad-0000-000000000000' hosted on database '86eaab21-15e5-4e4b-9d1c-2342c9c45663' is currently on backend 'Unknown']",
"innerError": {
"date": "2024-03-25T06:20:57",
"request-id": "811d03f8-1898-4c04-afe6-c64866c7de25",
"client-request-id": "14a6b561-a648-d16a-66bf-b896c4627c5d"
}
}
}
Currently the access token that I'm using has the following scopes
Calendars.Read Calendars.ReadBasic Calendars.Read.Shared
I have been reading about this problem but there is not a concrete solution or explanation about the errors that I can be making during the request.