Closed curtischolon closed 4 years ago
ConnectionResetError
are not uncommon - they are caused by the remote server killing the TCP session for some reason. That can happen for a lot of reasons.
The recommended solution is to either handle this yourself in your own code, or to define a retry policy as described in https://github.com/ecederstrand/exchangelib#setup-and-connecting
Thanks, explicitly setting a retry policy worked.
Hi,
I'm running into an issue with previously working code, I was able to successfully connect to and iterate through messages on O365, however suddenly I'm receiving the following error:
requests.exceptions.ChunkedEncodingError: ("Connection broken: ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)", ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
The offending code is here, but as I mentioned, it previously worked and has all of a sudden started with this behavior. I did reach through other similar issues raised but did not see any specific resolution.
Traceback: