OfficeDev / ews-managed-api

Other
584 stars 318 forks source link

Frequently receive Internal Server error while getting item #171

Open joewutaiwan opened 6 years ago

joewutaiwan commented 6 years ago

Hi,

My system using EWS managed API to download eml items, but keeps receiving 500 Internal Server

Is any way to intimate this problem?

Or could you please give me the recommended throttle time

Thank you very much!

oranasraf commented 6 years ago

Hi. Is it your own server or are you using Office 365?

For my experience i'm using Office 365 and i get error 500 from time to time. Just add a retry function for your code with a little bit of time span per retry and it will work again.

davster commented 6 years ago

If this was related to throttling, you would have a SOAP fault with a backoff time in the fault body. There are a number of reasons you could get a 500, load balancing/fail over being one of them. A retry mechanism is likely the best way to go here.

joewutaiwan commented 6 years ago

Hi, @oranasraf and @davster

Thank you for the reply, I will refer the backoff time to implement throttle.