Skip to content

Failed To Launch Browser Process #76

@zpottie

Description

@zpottie

Hi there,

Apologies if I'm polluting your issues, but just wanted to put this here in case it helps someone else, as I came looking here first as we use your library.

Redeployed our code today and PDF generation broke. Looks like it may be a bug introduced by Chrome?
chrome-php/chrome#649

Uncaught PHP Exception Spiritix\Html2Pdf\ConverterException: "Binary error: file:///PATH/TO/PROJECT/vendor/spiritix/php-chrome-html2pdf/node_modules/@puppeteer/browsers/lib/esm/launch.js:301
    reject(new Error([                        
        ^  Error: Failed to launch the browser process! chrome_crashpad_handler: --database is required Try 'chrome_crashpad_handler --help' for more information. [1796849:1796849:1008/000936.708637:ERROR:socket.cc(120)] recvmsg: Connection reset by peer (104)   TROUBLESHOOTING: https://pptr.dev/troubleshooting      at Interface.onClose (file:///PATH/TO/PROJECT/vendor/spiritix/php-chrome-html2pdf/node_modules/@puppeteer/browsers/lib/esm/launch.js:301:24)     at Interface.emit (node:events:529:35)     at Interface.close (node:internal/readline/interface:534:10)     at Socket.onend (node:internal/readline/interface:260:10)     at Socket.emit (node:events:529:35)     at endReadableNT (node:internal/streams/readable:1400:12)     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)  Node.js v18.20.4 " at Converter.php line 271...

Hope this helps someone else!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions