Share via

Subscription Graph API giving Extension Error

Anonymous
2025-03-05T09:25:53.1766667+00:00

When creating/updating a subscription for outlook notifications, sometimes the request takes >25 seconds and we see the error "InternalServerError". The strange thing is that most of the time it runs without problems and this error is coming for a specific account. Does anybody know what the problem is? Or how I can analyze the problem?

API URL: https://graph.microsoft.com/v1.0/subscriptions

Request body:

{
  "changeType": "created,updated,deleted",
  "notificationUrl": "<some prod url>",
  "lifecycleNotificationUrl": "<some prod url>",
  "resource": "/me/calendars/<outlook_id>/events",
  "expirationDateTime": "<some future date>",
  "clientState": "<calendar id>"
}

The exception returned is:

{
  "error": {
    "code": "ExtensionError",
    "message": "Operation: Create; Exception: [A task was canceled.]",
    "innerError": {
      "date": "<expiration date time passed in request>",
      "request-id": "<request id>",
      "client-request-id": "<request id>"
    }
  }
}
Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. RajatVashisthaMSFT-7255 1,780 Reputation points
    2025-04-03T15:28:42.1433333+00:00

    Hi Tarun Agarwal,

    Thanks for reaching out to Microsoft!

    Regarding the issue related to specific accounts, please ensure that the affected users have valid licenses and confirm that they can successfully access the calendar through the UI.

    If the problem persists despite these checks, I recommend raising a support case with Microsoft Graph. By sharing the latest client ID and request ID, a Support Engineer will be able to investigate the issue further and provide assistance. You can raise support ticket from New support request - Microsoft Entra admin center or https://admin.microsoft.com/#/support/requests.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.