huaweicloud-sdk-python-obs icon indicating copy to clipboard operation
huaweicloud-sdk-python-obs copied to clipboard

Python 3.12: TypeError: HTTPSConnection.__init__() got an unexpected keyword argument 'check_hostname'

Open davidboweninrupt opened this issue 1 year ago • 5 comments

Hi,

I'm unable to use the OBS client in Python 3.12 because this line of code is using the check_hostname argument which was removed in Python 3.12.

This is hard-coded to None in client.py. Could it please be removed?

Thanks

davidboweninrupt avatar Nov 16 '23 23:11 davidboweninrupt

If ssl checking is not necessary, consider setting is_secure=False when initializing the client. eg .

self.obsClient = ObsClient(access_key_id=self.obs_ak, secret_access_key=self.obs_sk, server=self.obs_server,
                                   is_secure=False)

onecer avatar Feb 19 '24 12:02 onecer

Thanks for the suggestion @onecer but SSL checking is always required to ensure we are connecting to the correct server.

davidboweninrupt avatar Feb 19 '24 12:02 davidboweninrupt

same problem, we need python3.12 because CVE-2023-27043 and CVE-2023-24329, but obs sdk run error on python3.12

zw999 avatar Mar 28 '24 07:03 zw999

same error, we had to rollback our entire airflow cluster

mattholy avatar Apr 16 '24 11:04 mattholy

same error here. Need to switch back to python 3.10

dhanyn10singapay avatar Jun 07 '24 07:06 dhanyn10singapay