Create Subscription /me/events failed with ExtensionError

屈晓龙 16 Reputation points
2022-09-21T03:32:13.93+00:00

I'm trying creating a subscription for /me/events, bug failed with ExtensionError.
How can i fix it?

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

{"changeType":"created,updated,deleted","clientState":"secretTextHere","expirationDateTime":"2022-09-24T01:34:07.696416Z","includeResourceData":false,"latestSupportedTlsVersion":"v1_2","notificationUrl":"https://domain/notification","resource":"me/calendars/{calendarID}/events"}  

Response

{"error":{"code":"ExtensionError","message":"Operation: Create; Exception: [Status Code: ServiceUnavailable; Reason: Target resource '0003bffd-3e87-8bf9-0000-000000000000' hosted on database '29332807-e2aa-455f-a370-5cff4f6c677b' is currently on backend 'Unknown']","innerError":{"date":"2022-09-21T03:04:28","request-id":"d25f42bf-bb93-4b49-aba9-3d36618ffbdd","client-request-id":"d25f42bf-bb93-4b49-aba9-3d36618ffbdd"}}}  
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,448 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shivam Dhiman 5,951 Reputation points
    2022-09-21T03:53:16.037+00:00

    Hi @屈晓龙

    Hope you are doing well.

    One of our Customer had a similar issue "Status Code: ServiceUnavailable" while creating subscription.
    This issue has been resolved after removing the "clientState" property from request body. Please do verify the same at your end.

    Hope this helps,

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