在为多个用户和过滤器表达式调用/ messages端点时,我们在MS GraphAPI中遇到了以下InternalServerError
。
例如,以下请求始终失败:
请求:
GET https://graph.microsoft.com/v1.0/users/{userPrincipalName}/messages?$top=100&$filter=isDraft eq false and createdDateTime ge 2017-06-09T05:11:58Z&$select=id,internetMessageId,from,sender,replyTo,subject,body,toRecipients,ccRecipients,bccRecipients,receivedDateTime,sentDateTime,createdDateTime,hasAttachments,parentFolderId,isDraft,isRead,changeKey,conversationId,parentFolderId
回复:
{
"error": {
"code": "InternalServerError",
"message": "Error while processing response.",
"innerError": {
"request-id": "b1ccb699-17da-4faf-9b8e-eba629be21e9",
"date": "2017-07-28T21:33:09"
}
}
}
重要的是要注意,如果修改过滤器表达式中的时间戳(例如,通过使用更晚的时间戳),则请求成功。
将$top
参数从100更改为10也会产生有效的200响应。
很遗憾,我不能在这篇文章中分享userPrincipalName
。
某些消息是否存在已知问题,可能会在检索邮件时导致内部错误? request-id
在回复中,所以希望这可以提供一些线索。
非常感谢任何帮助!
答案 0 :(得分:0)
我在此错误中遇到了同样的问题。
尝试缩小标题Prefer:odata.maxpagesize=200
或缩小热门查询
对我有用。