OfficeDev / ews-managed-api

Other
585 stars 317 forks source link

EWS managed API: intermittently returns no response #280

Open billrider85 opened 2 years ago

billrider85 commented 2 years ago

We have created a custom .NET Core application to connect to exchange via oauth token to read contents of a specific mailbox, perform actions on specific mail items, and them move them to another folder to prevent reprocessing. This application is launched via schedule every 5 mins, every day. At various times throughout the day, the response body is blank but we receive a response header via trace listener and writing output to log file. We have worked with MS support, attached the process via proxy to Fiddler but can see a response body return, however, we cannot get any results from the FindFoldersResults collection. Have tried both FindFolders and Folder.Bind to the root (MsgFolderRoot) with similar results. Our process does complete successfully if the FindFoldersResults collection can be parsed from the response body but we are stumped to determine why the response cannot be handled consistently. Any help and/or ideas would be greatly appreciated.