我正在使用Graph API从我的office365帐户备份所有日历事件,并且在下载大小约为45MB的大itemAttachment时遇到问题。
它是Graph API的限制吗? 有什么办法可以解决这个问题?
这是详细的请求和响应。
项目附件信息
GET https://graph.microsoft.com/v1.0/users/{user_id}/events/{event_id}/attachments/{attachment_id}
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('{user_id}')/events('{event_id}')/attachments/$entity",
"@odata.type": "#microsoft.graph.itemAttachment",
"id": "{attachment_id}",
"lastModifiedDateTime": "2018-09-14T19:34:15Z",
"name": "XXXXXX",
"contentType": null,
"size": 47693785,
"isInline": false
}
展开itemAttachment
GET https://graph.microsoft.com/v1.0/users/{user_id}/events/{event_id}/attachments/{attachment_id}?$expand=microsoft.graph.itemattachment/item
{
"error": {
"code": "ErrorMessageSizeExceeded"
"message": "The message exceeds the maximum supported size., The message exceeds the maximum supported size.",
"innerError": {
"request_id": "bbc2b732-99f6-4cc5-8e75-c07b61efd0af",
"date": "2019-04-11T02:58:11"
}
}
}