fastbook icon indicating copy to clipboard operation
fastbook copied to clipboard

Chapter2: CertificateError while trying to download bear images on Colab

Open eyeke04 opened this issue 4 years ago • 1 comments

Hi guys, I tried to run the download_url command in chapter 2 after fetching the search results from the bing image search but I keep getting the certificate result below. I've tried googling the error but I can't find a solution. Can someone please help. (Worth mentioning that this happens on some urls but not on others and I'm not sure why it's like that)

`CertificateError: hostname 'images.gearjunkie.com' doesn't match either of '*.s3.amazonaws.com', 's3.amazonaws.com' During handling of the above exception, another exception occurred:

MaxRetryError Traceback (most recent call last) MaxRetryError: HTTPSConnectionPool(host='images.gearjunkie.com', port=443): Max retries exceeded with url: /uploads/2015/07/Grizzly-Bear.jpg (Caused by SSLError(CertificateError("hostname 'images.gearjunkie.com' doesn't match either of '*.s3.amazonaws.com', 's3.amazonaws.com'",),))

During handling of the above exception, another exception occurred:

SSLError Traceback (most recent call last) /usr/local/lib/python3.6/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 512 if isinstance(e.reason, _SSLError): 513 # This branch is for urllib3 v1.22 and later. --> 514 raise SSLError(e, request=request) 515 516 raise ConnectionError(e, request=request)

SSLError: HTTPSConnectionPool(host='images.gearjunkie.com', port=443): Max retries exceeded with url: /uploads/2015/07/Grizzly-Bear.jpg (Caused by SSLError(CertificateError("hostname 'images.gearjunkie.com' doesn't match either of '*.s3.amazonaws.com', 's3.amazonaws.com'",),))`

eyeke04 avatar Dec 19 '20 15:12 eyeke04

Me too.

codemee avatar Dec 31 '20 10:12 codemee