Headless Chromium Puppeteer

I have spent the better part of a day trying to get Chromium trying to work on the Functions. There is a lot of talk out there about how this is now possible on Netlify. I even forked the repo you have and tried running that and it won’t work ( https://github.com/netlify-labs/netlify-functions-headless-chrome )

I’ve seen a lot of errors:

Most recent coming off this repo is:

Error: Failed to launch chrome!
/tmp/chromium: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

But I have also seen: Error: spawn ETXTBSY

What am I missing here? Do I need to upgrade or something?

Hmm, I’ve heard of a few folks having trouble with that repo but don’t see any issues filed yet - mind creating one here? https://github.com/netlify-labs/netlify-functions-headless-chrome/issues/new

We don’t provide official support for that but the author may notice and update things if he can see an easy way :slight_smile:

@sublet did you get it working in the end? I never did (and got similar errors) :cry:

I did! I’ll get a PR into that repo in the next day or so.


@sublet that would be great to see.