Error reason:
This is an SSL certificate validation error. When an HTTPS site is requested, but the certificate validation error occurs, such an error will be reported.
Solution:
Just add the following two lines to the code to skip the certificate check and successfully access the web page.
# Global removal of certificate validation
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
Read More:
- [Solved] urllib.error.URLError: urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]
- [Solved] urllib.error.URLError: <urlopen error [SSL: WRONG_VERSION_NUMBER] wrong version number
- [Solved] Pytorch Download CIFAR1 Datas Error: urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certi
- urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
- [Solved] raise ContentTooShortError(urllib.error.ContentTooShortError: <urlopen error retrieval incomplete:
- [Solved] Pyg load dataset Error: attributeerror [pytorch geometry]
- SSL error of urllib3 when Python uploads files using Minio
- [Solved] mmdetection benchmark.py Error: RuntimeError: Distributed package doesn‘t have NCCL built in
- Python 3 urllib has no URLEncode attribute
- Using Python error urlopen error unknown URL type: the solution of HTTPS
- urllib.error.HTTPError: HTTP Error 403: Forbidden [How to Solve]
- python chatterbot [nltk_data] Error loading stopwords: <urlopen error [Errno 11004]
- [Solved]AttributeError: module ‘urllib’ has no attribute ‘quote’
- urllib.error.HTTPError http error 403 forbidden
- urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host=‘localhost‘, port=8097): Max retries excee
- Python error: urllib.error.HTTPError : http Error 404: not found
- Python Error: certificate verify failed: certificate has expired
- Solution to [SSL: certificate_verify_failed] when you get downloads video