
Is it possible to run Puppeteer within a function? I keep getting a server error. By default Puppeteer installs a browser binary to use, but I am not sure if appwrite allows for such a scenario. I am an Appwrite newbie😅 .
My environment is node v16.0.0

You could try including the binary in your function upload and referencing it that way.
You might want to 👍🏼 this issue: https://github.com/appwrite/appwrite/issues/1037

The binary bloats the tar file which exceeds the upload limit. The proposal to configure your own docker image would be a great addition, that way I could have an environment that already has a browser binary. The weird thing is I've tried using Browserless which doesn't require a binary and the function still fails.

I did it :appwriterocket: I figured it out using Browserless as suggested by @rohit.sangwan01 Thanks a bunch💯 I had to switch to Python though, running Puppeteer with node has some issues on Appwrite. The setup that worked for me is Python x Selenium xBrowserless. https://www.browserless.io/

[SOLVED] Running Puppeteer with Appwrite function

Dart also works good with browserless puppeteer , i have tried this in my library for whatsapp bot in dart: https://pub.dev/packages/whatsapp_bot_flutter#web-setup


Good stuff💯

You can create your own runtimes if needs, look here : https://github.com/open-runtimes/open-runtimes/tree/main/runtimes
Or have chromium worker outside appwrite, and call it from function
or call API sure, #1 is Zyte (scrapinghub), better proxy is bright data
Recommended threads
- Sharing cookies
Hi, I’m using Appwrite Cloud, and I have a setup where my Appwrite backend is hosted on a subdomain (e.g., api.example.com), while my frontend (Next.js app) and...
- Organization not exists anymore
Hello! We have a problem with a cloud database. We are on the Free plan, but after a refresh the site wants me to create a new organisation, and I not see the c...
- JSON and Object Support in Collection do...
I am working with Next.Js and Appwrite Cloud, I am relatively New to Appwrite but i have noticed there is no direct support of JSON and Object support in attrib...
