ews-java-api icon indicating copy to clipboard operation
ews-java-api copied to clipboard

The request failed. The remote server returned an error: (401)Unauthorized ( Intermittently)

Open maxynandy opened this issue 4 years ago • 0 comments

Hi ,I am trying to read emails using this ews-java-api every 5 mins using a batch process and it completes in 1 min max as we just read first 10 emails. In a day we can see average 3 to 5 times intermittent error "The request failed. The request failed. The remote server returned an error: (401)Unauthorized".

It occurs when we call below highlighted line: Mailbox mb = new Mailbox(emailAddress); FolderId folder = new FolderId(WellKnownFolderName.Inbox, mb); FindItemsResults<Item> result = service.findItems(folder, view);

maxynandy avatar Apr 08 '21 01:04 maxynandy