Problem deploying my project.

urupool
HOBBY

a year ago

/app/nodemodules/whatsapp-web.js/nodemodules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:241

reject(new Error([

^

Error: Failed to launch the browser process!

[0216/123712.741379:ERROR:zygotehostimpl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

at onClose (/app/nodemodules/whatsapp-web.js/nodemodules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:241:20)

at Interface. (/app/nodemodules/whatsapp-web.js/nodemodules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:231:68)

at Interface.emit (node:events:529:35)

at Interface.close (node:internal/readline/interface:534:10)

at Socket.onend (node:internal/readline/interface:260:10)

at Socket.emit (node:events:529:35)

at endReadableNT (node:internal/streams/readable:1368:12)

at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Node.js v18.18.2

Solved

3 Replies

a year ago

Have you tried adding the --no-sandbox flag like the error hinted?

Also, whatsapp-web.js is not allowed on Railway since it's considered a user bot ( https://railway.app/legal/fair-use )


Status changed to Solved railway[bot] over 1 year ago


urupool
HOBBY

a year ago

i dont know how to do that, "Have you tried adding the --no-sandbox flag like the error hinted?"


a year ago

In your puppeteer config, but please do note that whatsapp-web.js is against Railway ToS


Problem deploying my project. - Railway Help Station