Skip to content

Conversation

@lifan-yuan
Copy link

This update aims to solve the certificate verification problem in data downloading.
Currently, when automatically downloading data using DataManager, there raises an URL error:
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)>
This is caused by

with urllib.request.urlopen(remote_url) as fin:

When opening an https, urllib.request.urlopen automatically verifies the SSL certificate and then cause the error. This can be solved with help of the ssl library.

solving the certificate verification problem in data downloading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant