danielcardeenas / sulla

👩🏻‍🔬 Javascript Whatsapp api library for chatbots
MIT License
1.26k stars 272 forks source link

Error: Failed to launch chrome! #80

Closed AndikaTanpaH closed 4 years ago

AndikaTanpaH commented 4 years ago
⠋ Initializing whatsapp(node:18119) UnhandledPromiseRejectionWarning: Error: Failed to launch chrome!
/wabot/node_modules/puppeteer/.local-chromium/linux-674921/chrome-linux/chrome: 1: /wabot/node_modules/puppeteer/.local-chromium/linux-674921/chrome-linux/chrome: Syntax error: Unterminated quoted string

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

    at onClose (/wabot/node_modules/puppeteer/lib/Launcher.js:349:14)
    at Interface.helper.addEventListener (/wabot/node_modules/puppeteer/lib/Launcher.js:338:50)
    at emitNone (events.js:111:20)
    at Interface.emit (events.js:208:7)
    at Interface.close (readline.js:368:8)
    at Socket.onend (readline.js:147:10)
    at emitNone (events.js:111:20)
    at Socket.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
(node:18119) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:18119) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Im use Ubuntu 16.04 32bit node v8.16.1 npm 6.11.3

where I must fix it? It's not support 32bit?

Mrjavaci commented 4 years ago

Google ended Chrome&Chromium support for 32-bit linux at 2012. Sulla is using Chrome.

AndikaTanpaH commented 4 years ago

@Mrjavaci no, chromium is still support for 32bit until now but if using chrome, then is not working for my machine or 32bit linux. thanks for this info

robertsLando commented 4 years ago

@danielcardeenas Is this related to https://github.com/danielcardeenas/sulla/issues/229?

danielcardeenas commented 4 years ago

If I understand correctly, it sounds like I need to add a flag to force it to use chromium then. Let me quick fix it

danielcardeenas commented 4 years ago

Should be fixed here: https://github.com/danielcardeenas/sulla/pull/232

Now you can specify useChrome to force Chromium

const client = await create('session', undefined, {
  useChrome: false,
});

If your environment does not support any of those, then you cannot use sulla