{"action":"opened","issue":{"url":"https://api.github.com/repos/OfficeDev/ews-managed-api/issues/107","repository_url":"https://api.github.com/repos/OfficeDev/ews-managed-api","labels_url":"https://api.github.com/repos/OfficeDev/ews-managed-api/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/OfficeDev/ews-managed-api/issues/107/comments","events_url":"https://api.github.com/repos/OfficeDev/ews-managed-api/issues/107/events","html_url":"https://github.com/OfficeDev/ews-managed-api/issues/107","id":208927034,"number":107,"title":"FileAttachment.Load() returns \"Internal Server Error\"","user":{"login":"donfmorrison","id":8751321,"avatar_url":"https://avatars.githubusercontent.com/u/8751321?v=3","gravatar_id":"","url":"https://api.github.com/users/donfmorrison","html_url":"https://github.com/donfmorrison","followers_url":"https://api.github.com/users/donfmorrison/followers","following_url":"https://api.github.com/users/donfmorrison/following{/other_user}","gists_url":"https://api.github.com/users/donfmorrison/gists{/gist_id}","starred_url":"https://api.github.com/users/donfmorrison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donfmorrison/subscriptions","organizations_url":"https://api.github.com/users/donfmorrison/orgs","repos_url":"https://api.github.com/users/donfmorrison/repos","events_url":"https://api.github.com/users/donfmorrison/events{/privacy}","received_events_url":"https://api.github.com/users/donfmorrison/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-20T16:26:38Z","updated_at":"2017-02-20T16:26:38Z","closed_at":null,"body":"I have a windows service that monitors an Office 365 email inbox for new mail and downloads any attachments. Service has been running successfully since Oct 2016.\r\n\r\nStarting Friday (Feb 17, 2017) afternoon I have been receiving an \"Internal Server Error\" when using EWS Managed API to download an attachment. All other interactions with the server via EWS API seem ok.\r\n\r\nThe issue seems to be when I call the FileAttachment.Load() method to actually download the contents of the attachment. The server returns \"HTTP/1.1 500 Internal Server Error\".\r\n\r\nI have turned tracing on within EWS API and here is the full request/response from Office 365 upon calling FileAttachment.Load() method:\r\n````xml\r\n<Trace Tag=\"EwsRequestHttpHeaders\" Tid=\"10\" Time=\"2017-02-20 15:51:14Z\">\r\nPOST /EWS/Exchange.asmx HTTP/1.1\r\nContent-Type: text/xml; charset=utf-8\r\nAccept: text/xml\r\nUser-Agent: ExchangeServicesClient/15.00.0847.030\r\nAccept-Encoding: gzip,deflate\r\n\r\n\r\n</Trace>\r\n<Trace Tag=\"EwsRequest\" Tid=\"10\" Time=\"2017-02-20 15:51:14Z\" Version=\"15.00.0847.030\">\r\n  <?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n  <soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:m=\"http://schemas.microsoft.com/exchange/services/2006/messages\" xmlns:t=\"http://schemas.microsoft.com/exchange/services/2006/types\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\r\n    <soap:Header>\r\n      <t:RequestServerVersion Version=\"Exchange2013_SP1\" />\r\n    </soap:Header>\r\n    <soap:Body>\r\n      <m:GetAttachment>\r\n        <m:AttachmentIds>\r\n          <t:AttachmentId Id=\"AAMkADBhZDI1YTM2LTY5MjMtNDJlMi1iZTJjLTNlMGU1OTIyMGZlNwBGAAAAAADf0dK6oM0vQKHH3XpoIDYvBwDChYzk0b/aQZmUSDWwklImAAAAAAEMAABOwtA8F96CTpAbhXR6AR97AABnH6LRAAABEgAQAAQBvdNdsNtNsr9mv/CDuS8=\" />\r\n        </m:AttachmentIds>\r\n      </m:GetAttachment>\r\n    </soap:Body>\r\n  </soap:Envelope>\r\n</Trace>\r\n<Trace Tag=\"EwsResponseHttpHeaders\" Tid=\"10\" Time=\"2017-02-20 15:51:16Z\">\r\nHTTP/1.1 500 Internal Server Error\r\nTransfer-Encoding: chunked\r\nrequest-id: 0e0d47ac-8202-412f-a878-a34e2bcd225c\r\nX-CalculatedBETarget: MWHPR02MB2877.namprd02.prod.outlook.com\r\nX-BackEndHttpStatus: 500\r\nX-DiagInfo: MWHPR02MB2877\r\nX-BEServer: MWHPR02MB2877\r\nX-FEServer: SN1PR12CA0005\r\nCache-Control: private\r\nContent-Type: text/xml; charset=utf-8\r\nDate: Mon, 20 Feb 2017 15:51:16 GMT\r\nSet-Cookie: exchangecookie=xxx; path=/\r\nServer: Microsoft-IIS/8.5\r\nX-AspNet-Version: 4.0.30319\r\nX-Powered-By: ASP.NET\r\n\r\n\r\n</Trace>\r\n<Trace Tag=\"EwsResponse\" Tid=\"10\" Time=\"2017-02-20 15:51:16Z\" Version=\"15.00.0847.030\">\r\n  <?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n  <s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\">\r\n    <s:Body>\r\n      <s:Fault>\r\n        <faultcode xmlns:a=\"http://schemas.microsoft.com/exchange/services/2006/types\">a:ErrorInternalServerError</faultcode>\r\n        <faultstring xml:lang=\"en-US\">An internal server error occurred. The operation failed.</faultstring>\r\n        <detail>\r\n          <e:ResponseCode xmlns:e=\"http://schemas.microsoft.com/exchange/services/2006/errors\">ErrorInternalServerError</e:ResponseCode>\r\n          <e:Message xmlns:e=\"http://schemas.microsoft.com/exchange/services/2006/errors\">An internal server error occurred. The operation failed.</e:Message>\r\n        </detail>\r\n      </s:Fault>\r\n    </s:Body>\r\n  </s:Envelope>\r\n</Trace>\r\n````"}}
{"actor":{"display_login":"donfmorrison"}}