Puppeteer and AWS Lambda not working after deployment

Hi All

I am buildinga a simple web Scraper that returns filmratings from various websites. I am using Puppeteer-core and Chrome-AWS-Lambda withh serverless functions. Everything works well when ran locally, but after deployment I receive a 502 ERROR

'"Failed to launch the browser process!\n/tmp/chromium: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or director’

It seems like Lambda is not able to open the headless browser while executing the serverless function on Netlify, but has no problem with it on my local computer. I am running out of ideas how to fix it.

Here is the url: https://film-meter.netlify.app/ . You can see the error after clicking the button.

And the repo: GitHub - CineTechno/Film-Meter-for-Netlify . Main function is in ‘function’ folder.

Appreciate any help!

Sounds like a Puppeteer issue: [Bug]: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory · Issue #9386 · puppeteer/puppeteer · GitHub