Reputation: 305
I just tried this request according to the documentation here
The message ID in this URL is the id
of an email that I just retrieved from GET /me/messages
POST https://graph.microsoft.com/v1.0/me/messages/{id}/createReplyAll
Content-Type: application/json
Authorization: Bearer eyJ0eXSiOBJiV1QiLCJub25jZSI6Ik{....}
This is what comes back:
"error": {
"code": "InternalServerError",
"message": "Object reference not set to an instance of an object.",
"innerError": {
"request-id": "a4c28622-0914-44da-8e67-6eb7ee59dc84",
"date": "2017-10-09T19:07:00"
}
}
I'm left to guess whether this is
500
error doesn't seem to imply that)The same happens for /createReply
endpoint as well
Upvotes: 1
Views: 109
Reputation: 336
Thanks; that header had been left in there as an oversight. FYI I removed the header in the 3 topics for createForward, createReply, and createReplyAll in v1.0 of Microsoft Graph. The updates will be live within 24 hours.
Upvotes: 0
Reputation: 17702
I just reproduced this as well. Remove the Content-Type
header to fix this. It seems the server is running into a bad error case when you say there's JSON in the body, but the body is empty :). This is definitely a bug in that we should never return a 500.
And I see that the Graph docs say that the header is required, even though there's no body. That seems like a doc bug to me.
I'll report up to the right folks.
Upvotes: 1