Closed Tsamsiyu1 closed 1 year ago
Can not read property of null, means Whatsapp Client is not even initialise yet (client is null). Try to restart complete flow or complete node-red once if possible.
Till I'll see what change require in code to solve the problem.
this is right after a restart of node red. I can´t initialize a whatsapp client at all.
I have this running on a linux server (without gui) within PM2.
Hi, Simply restart of node-red will work, that problem was occur due to delay in connecting with whatsapp. Please wait after restart (at QR stage).
Using restart
command multiple time crashes the whatsapp-node. It is fixed but not perfectly :smile: working on it :+1:
ok i will try this now
Ok this is still not working but i get an other error now.
Error: Failed to launch the browser process! 0|node-red | /home/marcel/.node-red/node_modules/puppeteer/.local-chromium/linux-982053/chrome-linux/chrome: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory 0|node-red | TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md 0|node-red | at onClose (/home/marcel/.node-red/node_modules/puppeteer/src/node/BrowserRunner.ts:268:9) 0|node-red | at Interface.<anonymous> (/home/marcel/.node-red/node_modules/puppeteer/src/node/BrowserRunner.ts:254:50) 0|node-red | at Interface.emit (node:events:539:35) 0|node-red | at Interface.emit (node:domain:475:12) 0|node-red | at Interface.close (node:internal/readline/interface:529:10) 0|node-red | at Socket.onend (node:internal/readline/interface:258:10) 0|node-red | at Socket.emit (node:events:539:35) 0|node-red | at Socket.emit (node:domain:475:12) 0|node-red | at endReadableNT (node:internal/streams/readable:1342:12) 0|node-red | at processTicksAndRejections (node:internal/process/task_queues:83:21)
this means i need pupeteer if i read this correct. will try this now
OK not installing puppeteer fixes it but installing some dependencies.
i installed pupperteer new again and after that didn´t helt this fixed it:
apt-get install libnss3 libxss1 libasound2 libatk-bridge2.0-0 libgtk-3-0 libgbm-dev
hi its me again^^ i try and try but i can´t generate a QR code. in nodered it stays on Connecting... and in the terminal it says this:
I´m just sending the string restart in msg.payload.