strictdoc icon indicating copy to clipboard operation
strictdoc copied to clipboard

HTML2PDF: Issue downloading chromedriver behind a proxy

Open npalluat opened this issue 1 year ago • 0 comments

Hello,

As informed in Discord, I can't use the functionality HTML2PDF as the chromedriver software can't be downloaded automatically by strictdoc.

The first error obtained is:

AssertionError: ('HTML2PDF_HTTPClient: unknown exception', SSLError(MaxRetryError("HTTPSConnectionPool(host='googlechromelabs.github.io', port=443): Max retries exceeded with url: /chrome-for-testing/latest-patch-versions-per-build.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1124)')))"))) PDFPrintDriver: printing HTML to PDF using HTML2PDF and Chrome Driver 16.86s

The other errors seem to be a consequence of this first one. I am on Windows 10 laptop and behind a proxy, since I use strictdoc for my work.

By reverse engineering, I could download the correct version of chromedriver and put it correctly in my temp directory, that makes it a temporary solution. An update of google chrome will invalidate the process, and only few of my colleagues would follow the process.

Regards, Nicolas

npalluat avatar Apr 15 '24 21:04 npalluat