Celso
Celso

Reputation: 127

Internal server error on POST to /subscriptions

I'm trying to create a subscription to changes on the Inbox email folder.

The POST content is:

{
  "changeType": "created,updated,deleted",
  "notificationUrl":"https://private_webhook_url",
  "resource":"/me/mailFolders('inbox')/messages",
  "expirationDateTime":"2018-12-22T12:08:59Z",
  "clientState":"a_client_state"
}

The result I get is a 500 Server Error with the following response body:

{
  "error": {
    "code": "ExtensionError",
    "message": "Operation: Create; Exception: [Status Code: InternalServerError; Reason: Internal Server Error]",
    "innerError": {
      "request-id": "5f581bcb-db5c-4842-b408-ee58d614cf98",
      "date": "2018-12-19T13:39:01"
    }
  }
}

I wonder if I'm doing something wrong or if this is a problem with the Graph API. Is anyone able to help me?

Thanks in advance.

Upvotes: 0

Views: 203

Answers (1)

Meetali Goel
Meetali Goel

Reputation: 78

Does your clientState have CRLF characters because that is the error we see on the server side? Can you please try with a different value of clientState and confirm if it is working?

Upvotes: 3

Related Questions