You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with the exchangelib (v5.4) library.
A couple of days ago I noticed that in the Docker container exchangelib started complaining with an error ValueError: Cannot set verify_mode to CERT_NONE when check_hostname is enabled.
Exchangelib tries to connect to a local server with a low security level via a custom adapter with this lines
fromrequests.adaptersimportHTTPAdapterclassCustomHttpAdapter(HTTPAdapter):
"""Transport adapter that allows us to use custom ssl_context."""def__init__(self, ssl_context=None, **kwargs):
self.ssl_context=ssl_contextsuper().__init__(**kwargs)
definit_poolmanager(self, connections, maxsize, block=False, **kwargs):
self.ssl_context=ssl.SSLContext(ssl.PROTOCOL_TLSv1)
self.ssl_context.set_ciphers('DEFAULT:@SECLEVEL=0')
self.ssl_context.check_hostname=Falseself.poolmanager=urllib3.poolmanager.PoolManager(
num_pools=connections, maxsize=maxsize,
block=block, ssl_context=self.ssl_context, ssl_version=ssl.PROTOCOL_TLSv1)
With this exchangelib shows an error:
File "/usr/local/lib/python3.11/site-packages/cached_property.py", line 70, in __get__
2024-05-23T11:53:23.558367392Z return obj_dict[name]
2024-05-23T11:53:23.558368832Z ~~~~~~~~^^^^^^
2024-05-23T11:53:23.558370213Z KeyError: \'calendar\'
But if I change the version of requests package from 2.32.0 to 2.31.0, connection and information exchange occurs normally.
I'm working with the exchangelib (v5.4) library.
A couple of days ago I noticed that in the Docker container exchangelib started complaining with an error
ValueError: Cannot set verify_mode to CERT_NONE when check_hostname is enabled
.Exchangelib tries to connect to a local server with a low security level via a custom adapter with this lines
With this exchangelib shows an error:
But if I change the version of requests package from 2.32.0 to 2.31.0, connection and information exchange occurs normally.
System Information
The text was updated successfully, but these errors were encountered: