requests-html
requests-html copied to clipboard
Certificate verify failed
Hi, using requests-html in a Debian Docker container I get:
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='storage.googleapis.com', port=443): Max retries exceeded with url: /chromium-browser-snapshots/Linux_x64/575458/chrome-linux.zip (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))
I'm setting session = HTMLSession(verify=False)
but it seems that it don't takes in consideration this parameter.
Versions: Python 3.6.8 requests-html0.10
I'm having similar issues...
python -c 'import pyppeteer; pyppeteer.chromium_downloader.download_chromium()'
run this code ,this issue will be fixed.
Thanks @soundaraj this fixed my issue
Thanks to @soundaraj
Same error. No Docker, Python 3.7, Ubuntu.
The hack by @soundaraj helps, but...
[W:pyppeteer.chromium_downloader] start chromium download.
Download may take a few minutes.
...
"/web/lib/python3.7/site-packages/pyppeteer/chromium_downloader.py", line 136, in download_chromium
extract_zip(download_zip(get_url()), DOWNLOADS_FOLDER / REVISION)
...
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='storage.googleapis.com', port=443): Max retries exceeded with url: /chromium-browser-snapshots/Linux_x64/575458/chrome-linux.zip (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))
@vladiscripts : try do downgrade urlib to a version below 1.25 (source: https://github.com/miyakogi/pyppeteer/issues/258#issuecomment-539588857)
It solved the issue for me.