Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

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

Open
maxynandy opened this issue Apr 8, 2021 · 0 comments

Comments

@maxynandy
Copy link

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 result = service.findItems(folder, view);

@maxynandy maxynandy changed the title The request failed. The request failed. The remote server returned an error: (401)Unauthorized ( Intermittently) The request failed. The remote server returned an error: (401)Unauthorized ( Intermittently) Apr 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant