stefanzweifel / sidecar-browsershot

A Sidecar function to run Browsershot on Lambda.
https://stefanzweifel.dev/posts/2022/06/21/introducing-sidecar-browsershot
MIT License
196 stars 26 forks source link

For some reason Chrome did not write a file at `example.pdf` #123

Open blankRSD opened 6 months ago

blankRSD commented 6 months ago

Thank you for this awesome package.

The solution as mentioned here and here is to use a compatible version of node and puppeteer.

Changing the layer version for chrome-aws-lambda-layer in the config/sidecar-browsershot.php to the latest (in my case 45) worked out fine for my case.

Hope you can update the default version whenever you do a new release. Cheers.

stefanzweifel commented 6 months ago

Thanks for pinging this @blankRSD. The puppeteer version is usually linked to the sidecar-browsershot-layer version, which also needs an update. (Would also be great to automate that)

Will hopefully find the time to publish new versions in the next few days.