1
我试图通过Outlook/Office 365邮件API检索附件。我从Google发送一封电子邮件到我的Office 365帐户,并以.eml作为附件。当我检索电子邮件时,我得到一个内部服务器错误作为回应。我已经尝试使用API的2.0和Beta版本。是否有可能检索.eml附件?Outlook 365 Mail Rest API:检索.eml附件时收到内部服务器错误
请求: https://outlook.office365.com/api/v2.0/me/messages/{message_id}/attachments
响应:
{
"error": {
"code": "ErrorInternalServerError"
"message": "Unable to cast object of type 'Microsoft.Exchange.Services.Core.Types.ItemAttachmentType'
to type'Microsoft.Exchange.Services.Core.Types.FileAttachmentType'."
}-
}
对不起,请让我看看并回复您为什么收到此错误。 –
谢谢@ VenkatAyyadevara-MSFT期待听到您的回复! –
刚发布了一个答案。我们发现了服务中的一个错误,并在修复中进行了检查。谢谢你的耐心。 –