sublet
December 23, 2019, 1:06pm
1
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 ( GitHub - netlify-labs/netlify-functions-headless-chrome: Run headless chrome in Netlify functions )
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?
fool
December 25, 2019, 8:38pm
2
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
@sublet did you get it working in the end? I never did (and got similar errors)
I’ll check the docs, but is there a way netlify-dev can tell you?
sublet
January 16, 2020, 2:54pm
4
I did! I’ll get a PR into that repo in the next day or so.
2 Likes
@sublet that would be great to see.
@sublet sorry to ask again, but I’ve had a quick look in GitHub and see you updated the dependencies in your package in the fork of the puppeteer repo; was this all you did to get it to work? Comparing netlify-labs:master...sublet:master · netlify-labs/netlify-functions-headless-chrome · GitHub