requests-html icon indicating copy to clipboard operation
requests-html copied to clipboard

Certificate verify failed

Open arkkanoid opened this issue 5 years ago • 8 comments

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

arkkanoid avatar Jul 03 '19 14:07 arkkanoid

I'm having similar issues...

mendelmaleh avatar Jul 15 '19 21:07 mendelmaleh

python -c 'import pyppeteer; pyppeteer.chromium_downloader.download_chromium()' run this code ,this issue will be fixed.

soundaraj avatar Sep 24 '19 12:09 soundaraj

Thanks @soundaraj this fixed my issue

davidjb99 avatar Oct 07 '19 14:10 davidjb99

Thanks to @soundaraj

binit-singh avatar Dec 04 '19 11:12 binit-singh

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 avatar Feb 06 '20 06:02 vladiscripts

@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.

t-chab avatar Feb 09 '20 09:02 t-chab