open-wa / wa-automate-nodejs

💬 🤖 The most reliable tool for chatbots with advanced features. Be sure to 🌟 this repository for updates!
https://docs.openwa.dev/
Other
3.11k stars 591 forks source link

Stuck Finalizing client... #3165

Closed fire17 closed 7 months ago

fire17 commented 7 months ago

Are you using the latest version of the library?

What type of session are you experiencing this issue on?

Multi-device and I have set multiDevice to true in my config OR am using the --multi-device flag

What type of host account are you experiencing this issue on?

Personal account (normal)

Mode

EASY API/CLI

Current Behavior

Getting stuck at Finalizing client...

image

Expected Behavior

No response

Steps To Reproduce

My computer got stuck, hard restarted, not sure if it is related, but now i cannot use openwa

create() code OR full CLI command + CONFIG

No response

DEBUG INFO

{
  "WA_VERSION": "2.2404.0",
  "WA_AUTOMATE_VERSION": "4.67.0",
  "BROWSER_VERSION": "HeadlessChrome/112.0.5614.0",
  "START_TS": 1706100063099,
  "RAM_INFO": "Total: 13.32 GB | Free: 11.66 GB",
  "PPTR_VERSION": "19.11.1",
  "LATEST_VERSION": true,
  "CLI": true
}

Environment

- OS: Linux 5.10
- Node: 18.17.1
- npm: 9.6.7

Screenshots/Logs

image (this is after a long hang)

Anything else?

Can you recommend how to get it back to working? it was just working before, not sure what to do Thanks a lot and all the best!

fire17 commented 7 months ago

Luckly The problem was the node version use nvm 20.11 fixed the issue also had to remove ~/.cache/puppeteer, session.data.json, node_modules and ~/.npm/_npx/*

Now it's working again, Maybe will be usefull for someone else with similar issue All the best!

fire17 commented 7 months ago

for now the only thing that seems to work is delete session file rm -rf ~/.bun/install/cache/puppeteer* rm -rf /tmp/@open-wa mv ~/.cache/puppeteer ~/.cache/x_puppeteer_xxxx use bunx instead of npx