Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use Browsershot rendering driver in Laravel #3

Open
medilies opened this issue Aug 5, 2023 · 1 comment
Open

Unable to use Browsershot rendering driver in Laravel #3

medilies opened this issue Aug 5, 2023 · 1 comment
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@medilies
Copy link
Member

medilies commented Aug 5, 2023

What happened?

{
    "message": "The command \"node \"C:\\Dev\\row-bloom-app\\vendor\\spatie\\browsershot\\src/../bin/browser.cjs\" \"{\"\"url\"\":\"\"file:\/\/C:\\\\Users\\\\ilies\\\\AppData\\\\Local\\\\Temp\\\\2083680388-0911245001691514906\\\\index.html\"\",\"\"action\"\":\"\"pdf\"\",\"\"options\"\":{\"\"args\"\":[],\"\"viewport\"\":{\"\"width\"\":800,\"\"height\"\":600},\"\"displayHeaderFooter\"\":true,\"\"width\"\":\"\"210mm\"\",\"\"height\"\":\"\"297mm\"\",\"\"landscape\"\":false,\"\"margin\"\":{\"\"top\"\":\"\"25.4mm\"\",\"\"right\"\":\"\"25.4mm\"\",\"\"bottom\"\":\"\"25.4mm\"\",\"\"left\"\":\"\"25.4mm\"\"},\"\"headerTemplate\"\":\"\"\"\",\"\"footerTemplate\"\":\"\"\"\",\"\"printBackground\"\":true,\"\"scale\"\":1}}\"\" failed.\n\nExit Code: 1(General error)\n\nWorking directory: C:\\Dev\\row-bloom-app\\public\n\nOutput:\n================\n\n\nError Output:\n================\n'node' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n",
    "exception": "Symfony\\Component\\Process\\Exception\\ProcessFailedException",
    "file": "C:\\Dev\\row-bloom-app\\vendor\\spatie\\browsershot\\src\\Browsershot.php",
    "line": 953,
    "trace": [
        {
            "file": "C:\\Dev\\row-bloom-app\\vendor\\spatie\\browsershot\\src\\Browsershot.php",
            "line": 658,
            "function": "callBrowser",
            "class": "Spatie\\Browsershot\\Browsershot",
            "type": "->"
        },
        {
            "file": "C:\\Dev\\row-bloom-app\\vendor\\elaborate-code\\row-bloom\\src\\Renderers\\BrowsershotRenderer.php",
            "line": 60,
            "function": "base64pdf",
            "class": "Spatie\\Browsershot\\Browsershot",
            "type": "->"
        },
        {
            "file": "C:\\Dev\\row-bloom-app\\vendor\\elaborate-code\\row-bloom\\src\\RowBloom.php",
            "line": 58,
            "function": "render",
            "class": "ElaborateCode\\RowBloom\\Renderers\\BrowsershotRenderer",
            "type": "->"
        },
        {
            "file": "C:\\Dev\\row-bloom-app\\vendor\\elaborate-code\\row-bloom\\src\\RowBloom.php",
            "line": 44,
            "function": "render",
            "class": "ElaborateCode\\RowBloom\\RowBloom",
            "type": "->"
        },
        {
            "file": "C:\\Dev\\row-bloom-app\\app\\Http\\Controllers\\RenderController.php",
            "line": 46,
            "function": "get",
            "class": "ElaborateCode\\RowBloom\\RowBloom",
            "type": "->"
        },
        {"...": "..."}
    ]
}

How to reproduce the bug

Use the package in Laravel

Package Version

0.2.0-beta

PHP Version

8.1.7

Laravel Version

10.18

Which operating systems does with happen with?

Windows

@medilies medilies added the bug Something isn't working label Aug 5, 2023
@medilies medilies self-assigned this Aug 5, 2023
@medilies medilies added the help wanted Extra attention is needed label Aug 5, 2023
@medilies medilies changed the title fix Browsershot dependancy to puppeteer Unable to use Browsershot rendering driver in Laravel Aug 8, 2023
@medilies
Copy link
Member Author

medilies commented Sep 6, 2023

Might be related to web server process user and OS permissions

spatie/browsershot#771

@medilies medilies added the documentation Improvements or additions to documentation label Oct 26, 2023
@medilies medilies transferred this issue from row-bloom/row-bloom Oct 28, 2023
@medilies medilies moved this from In Progress to In Review in Open source Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
Status: In Review
Development

No branches or pull requests

1 participant