dbx
dbx copied to clipboard
dbx sync failed with ClientConnectorCertificateError
trafficstars
Expected Behavior
dbx sync from local to dbfs
Current Behavior
raise a certificate Error
ClientConnectorCertificateError: Cannot connect to host xxxx.cloud.databricks.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)')]
Steps to Reproduce (for bugs)
dbx sync dbfs
Context
dbx tries to create https connection to the URL : "https://xxxx.cloud.databricks.com/api/2.0/dbfs/mkdirs"
│ 99 │ │ │ more_opts = {"ssl": ssl} if ssl is not None else {} │ │
│ 100 │ │ │ async with session.post(url=url, json=json_data, headers=headers, **more_opt │
│ 101 │ │ │ │ if resp.status in ok_status: │
│ 102 │ │ │ │ │ break ```
Test the same URL using curl -v works fine without certificate error.
## Your Environment
MacOS BigSur 11.6.8
Python 3.9.5
dbx==0.8.7
* dbx version used:
* Databricks Runtime version: 11.3