HTTP 500 Internal Server Error creating subscription

Greg Levine 25 Reputation points
2024-10-22T15:05:42.9333333+00:00

Trying to create subscriptions to a user's mailbox for emails and calendar events. It works in most cases, but there are a few users for whom a subscription cannot be created.

Send a POST request to /users/{user_id}/calendars/{calendar_id}/events or /users/{user_id}/messages using a Microsoft Graph API v1 client. These requests for certain users result in an HTTP 500 error.

One example with a request ID:

{
    "code": "ExtensionError",
    "message": "Operation: Create; Exception: [Status Code: InternalServerError; Reason: The requested resource does not exist on the server]",
    "innererror":
    {
        "client-request-id": "ef53ddb0-d55c-4b56-8f88-78cb1013b181",
        "date": "2024-10-21T00:20:07",
        "request-id": "ef53ddb0-d55c-4b56-8f88-78cb1013b181"
    }
}

There once was a subscription to this mailbox. It could not be renewed for some reason so we are trying to create a new subscription. What could cause it to fail all of a sudden? Cross-posted on Stack Overflow: https://stackoverflow.com/questions/79111372/http-500-internal-server-error-creating-subscription-on-microsoft-graph-api

Microsoft Security Microsoft Graph
{count} vote

Accepted answer
  1. Anonymous
    2024-10-23T02:57:35.03+00:00

    Hello Greg Levine,

    Thank you for reaching out to Microsoft Support!

    In Azure, check whether the MS 365 License of the user is valid, grant the License to the user again, and log in to the user's email to check.

    User's image

    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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.