Microsoft graph api Microsoft图形消息api中经常出现504网关超时错误

Microsoft graph api Microsoft图形消息api中经常出现504网关超时错误,microsoft-graph-api,Microsoft Graph Api,我几乎每次提出请求都会得到这些: com.microsoft.graph.http.GraphFatalServiceException: Unexpected exception returned from the service.GET https://graph.microsoft.com/v1.0/users/me/messages?$filter=IsDraft+eq+false+and+ReceivedDateTime+ge+2017-09-06T12%3a02%3a26.608Z&

我几乎每次提出请求都会得到这些:

com.microsoft.graph.http.GraphFatalServiceException: Unexpected exception returned from the service.GET https://graph.microsoft.com/v1.0/users/me/messages?$filter=IsDraft+eq+false+and+ReceivedDateTime+ge+2017-09-06T12%3a02%3a26.608Z&$orderby=ReceivedDateTime+desc&$expand=SingleValueExtendedProperties(%24filter%3did+eq+%27String+0x7D%27)%2cattachments&$select=conversationId%2cchangeKey%2csentDateTime%2creceivedDateTime%2cisRead%2chasAttachments%2cinternetMessageHeaders%2csender%2cfrom%2ctoRecipients%2cccRecipients%2cbccRecipients%2csubject%2cinternetMessageId%2cbody%2cattachments&$top=100&$skip=6426
SdkVersion : graph-java-v0.2.0
Authorization : Bearer eyJ0eXAiOiJKV1QiLCJub25jZSI[...]
client-request-id : 38246tl5hwutoukh6qb

504 : Gateway Timeout

有没有可能解决这个问题?

嗨,多尔,你能提供你的自定义属性吗?目前,我无法用你提供的信息重现这个问题。Thanks@kikang您所说的自定义属性是什么意思?我很抱歉,经过再三考虑,我们应该尝试将您的邮件拆分,并在添加越来越多的邮件时对其进行故障排除。至于现在,我们不能用你提供的信息来重现这个问题。我很怀疑你多久会犯一次504错误。当您成功运行它时,消息与失败的消息有什么不同。我将$top降低到50,这降低了错误频率,但它们仍然会发生。例如,此请求始终返回504个错误:/users/me/messages?$filter=IsDraft+eq+false+和+ReceivedDateTime+ge+2017-09-26T12%3a40%3a15.691Z&$orderby=ReceivedDateTime+desc&$expand=SingleValueExtendedProperties(%24filter%3did+eq+%27String+0x7D%27)%2cattachments&$select=conversationId%2cchangeKey%2csentDateTime%2creceivedDateTime%2cisRead%2chasAttachments%2cinternetMessageHeaders%2csender%2cfrom%2ctoRecipients%2CCCReceipts%2cinternetMessageId%2cbody%2cattachments&$top=50&$skip=2339在您的请求中,您已经在选择参数中添加了附件和正文,当您在邮件中有一些较大的附件时,它将有一个较大的响应。因此,您可以尝试删除请求url中的附件