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

Function Image fails to launch the browser process #1

Open
SGiumelli opened this issue Sep 30, 2022 · 1 comment
Open

Function Image fails to launch the browser process #1

SGiumelli opened this issue Sep 30, 2022 · 1 comment

Comments

@SGiumelli
Copy link

SGiumelli commented Sep 30, 2022

What happens :
No image is returned

Version:

  • node 16
  • aws node 16
Sep 29, 10:07:58 PM: cdfdb004 INFO   Error: Failed to launch the browser process!
Sep 29, 10:07:58 PM: cdfdb004 INFO   /tmp/chromium: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
Sep 29, 10:07:58 PM: cdfdb004 INFO   TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
Sep 29, 10:07:58 PM: cdfdb004 INFO       at onClose (/var/task/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:197:20)
Sep 29, 10:07:58 PM: cdfdb004 INFO       at Interface.<anonymous> (/var/task/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:187:68)
Sep 29, 10:07:58 PM: cdfdb004 INFO       at Interface.emit (node:events:539:35)
Sep 29, 10:07:58 PM: cdfdb004 INFO       at Interface.close (node:readline:586:8)
Sep 29, 10:07:58 PM: cdfdb004 INFO       at Socket.onend (node:readline:277:10)
Sep 29, 10:07:58 PM: cdfdb004 INFO       at Socket.emit (node:events:539:35)
Sep 29, 10:07:58 PM: cdfdb004 INFO       at endReadableNT (node:internal/streams/readable:1345:12)
Sep 29, 10:07:58 PM: cdfdb004 INFO       at processTicksAndRejections (node:internal/process/task_queues:83:21)
Sep 29, 10:07:58 PM: cdfdb004 Duration: 45.40 ms	Memory Usage: 379 MB

to reproduce

  • use template
  • clone repo
  • push and deploy to Netlfy
  • request any image (demo included)

(this resocio is a very nice thing btw, i love it ❤️ )

@SGiumelli
Copy link
Author

Atm i managed to make it work by setting ENV in netlify :
AWS_LAMBDA_JS_RUNTIME=nodejs14.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant