MaxMelcher / AzureDevOps.WikiPDFExport

Export Azure DevOps Wiki to PDF
MIT License
186 stars 62 forks source link

Getting a strange exception all of a sudden #136

Closed jkellywilkerson closed 1 year ago

jkellywilkerson commented 1 year ago

AzureDevOps_WikiExport_Error

This error appears when running the .exe from the Releases (latest version) as well as from a new Rebuild from source.

MaxMelcher commented 1 year ago

What parameters do you use? The error indicates that the headless chrome installation is broken/missing.

jkellywilkerson commented 1 year ago

No parameter...pure double-click execution from Windows Explorer. It worked well like that back in December and stopped working suddenly. I've tried it on several different machines and not sure what else to try.

jkellywilkerson commented 1 year ago

Chrome is installed and set as the default browser. Not sure how to install/repair a "headless" version. But will see what Google says.

jkellywilkerson commented 1 year ago

Headless Chrome does work on the machine in question, but I still get the same error. This command does produces the expected PDF: chrome --headless --disable-gpu --print-to-pdf="C:\ChromeStatus.pdf" https://www.chromestatus.com/

Anything additional I can try?

jkellywilkerson commented 1 year ago

Pointing the executable directly to Chrome using the --chrome-path="" worked. Not sure what changed in the environment that would cause the "headless" option to stop working, but this appears to work:

azuredevops-export-wiki.exe --chrome-path="C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"

MaxMelcher commented 1 year ago

it might also work if you delete the Win64-901912... folder that stores the google chrome headless copy. the converter downloads a fresh copy and the issue should go away. Thanks for letting me know!

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.