Skip to content

html2pdf: update to the newer Chrome web driver API#1971

Merged
stanislaw merged 1 commit intomainfrom
stanislaw/html2pdf_fix
Nov 1, 2024
Merged

html2pdf: update to the newer Chrome web driver API#1971
stanislaw merged 1 commit intomainfrom
stanislaw/html2pdf_fix

Conversation

@stanislaw
Copy link
Copy Markdown
Collaborator

The HTML2PDF started failing with this message:

  File "/home/runner/work/strictdoc/strictdoc/strictdoc/export/html2pdf/html2pdf.py", line 155, in get_pdf_from_html
    result = send_devtools(driver, "Page.printToPDF", calculated_print_options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/strictdoc/strictdoc/strictdoc/export/html2pdf/html2pdf.py", line 117, in send_devtools
    url = driver.command_executor._url + resource
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ChromiumRemoteConnection' object has no attribute '_url'

The HTML2PDF started failing with this message:

```
  File "/home/runner/work/strictdoc/strictdoc/strictdoc/export/html2pdf/html2pdf.py", line 155, in get_pdf_from_html
    result = send_devtools(driver, "Page.printToPDF", calculated_print_options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/strictdoc/strictdoc/strictdoc/export/html2pdf/html2pdf.py", line 117, in send_devtools
    url = driver.command_executor._url + resource
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ChromiumRemoteConnection' object has no attribute '_url'
```
@stanislaw stanislaw added this to the 2024-Q4 milestone Nov 1, 2024
@stanislaw stanislaw added the Bug Something isn't working label Nov 1, 2024
@stanislaw stanislaw merged commit c57b841 into main Nov 1, 2024
@stanislaw stanislaw deleted the stanislaw/html2pdf_fix branch November 1, 2024 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant