I need to try run my app node with WhatsAppweb.js but I have problems with puppeteer

My error is Error: Failed to launch the browser process I read the documentación so I need install in the image of server dependencies of Linux
7 Replies
Percy
Percy2y ago
Project ID: 230216de-37a9-4a3f-a2aa-fcb46207d900
Percy
Percy2y ago
It seems that the issue is related to running the app as root user without the --no-sandbox flag. You can try troubleshooting the issue by following the instructions in the Puppeteer documentation (https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md).
⚠️ experimental feature
mr.luis27
mr.luis27OP2y ago
Project id 230216de-37a9-4a3f-a2aa-fcb46207d900
Brody
Brody2y ago
simply add
args: ['--no-sandbox']
args: ['--no-sandbox']
to your puppeteer.launch options. without that arg i get the same error as you, with that arg added my page.screenshot demo works
mr.luis27
mr.luis27OP2y ago
That's right I have the same thing in my app but I'm still having problems, it still has problems trying to launch the browser
mr.luis27
mr.luis27OP2y ago
Adam
Adam2y ago
@Mr. Luis Mentioned this in #❓|quick-qs but i’ll say it again here for visibility. Whatsapp bots are not allowed on Railway as they are classified as user bots
Want results from more Discord servers?
Add your server