Subscription endpoint always return 500 for specific users

mickael ohlen 0 Reputation points
2024-12-24T02:59:55.8566667+00:00

Description: We are encountering a persistent issue when attempting to create a subscription using the Microsoft Graph API. Specifically, the endpoint always returns a 500 Internal Server Error for certain users. the same API call works perfectly fine for other users.

API Endpoint: POST https://graph.microsoft.com/v1.0/subscriptions/

Error Details:

{

Steps to Reproduce:

  1. Make a POST request to the https://graph.microsoft.com/v1.0/subscriptions/ endpoint.
  2. Include all necessary headers and body parameters as per Microsoft Graph Subscription Documentation.
  3. Attempt the request with the affected user token.
  4. Observe the response.

Expected Behavior: The subscription should be successfully created without any errors.

Actual Behavior: The API returns a 500 error with the above-mentioned ExtensionError for specific users.

Additional Information:

  • The issue is specific to certain users; the same API call works without issues for other users.
  • We have tried reconnecting the affected users to their calendars, but the issue persists.
  • All necessary permissions and configurations for the affected users have been verified.
  • The error message indicates "A task was canceled," but no further details are provided.
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,653 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 43,726 Reputation points
    2024-12-24T09:41:26.4833333+00:00

    Hi @mickael ohlen

    Check if there is any difference between the target user and other users. Are they in the same organization? Are they all work accounts? Are the affected users not hitting any API rate limits or quotas?

    Also, if this is just an occasional error, try implementing retry logic in the API call. Sometimes transient issues can cause 500 errors, and retrying the request after a short delay may help.

    If the above suggestions don't work, then open a support ticket with Microsoft Support to get help from the API owner.

    Hope this helps.

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

    0 comments No comments

Your answer

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