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.15k stars 600 forks source link

Session data most likely expired due to manual host account logout. Please re-authenticate this session. #2878

Closed shifoc closed 2 years ago

shifoc commented 2 years 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?

Business account

Mode

My own code

Current Behavior

I often get this error "Session data most likely expired due to manual host account logout. Please re-authenticate this session." after restarting

Expected Behavior

No response

Steps To Reproduce

Restart the bot

create() code OR full CLI command + CONFIG

No response

DEBUG INFO

{
  "WA_VERSION": "2.2232.8",
  "WA_AUTOMATE_VERSION": "4.46.2",
  "BROWSER_VERSION": "HeadlessChrome/100.0.4896.88",
  "START_TS": 1662713055307,
  "RAM_INFO": "Total: 1.01 GB | Free: 0.45 GB",
  "PPTR_VERSION": "15.0.0",
  "LATEST_VERSION": true,
  "CLI": false
}

Environment

- OS: Linux 5.15
- Node: 17.9.0
- npm: 8.5.5

Screenshots/Logs

No response

Anything else?

No response

shifoc commented 2 years ago

I think it's only happening when I restart the bot from crontab

smashah commented 2 years ago

please update to the latest version and try again. if it is still happening report back with more context.