wechaty / puppet-whatsapp

Wechaty Puppet for Whatsapp
https://npmjs.com/package/wechaty-puppet-whatsapp
Apache License 2.0
24 stars 17 forks source link

The QR Code will not emit when there's a existing invalid `.memory-card.json` data. #347

Open huan opened 2 years ago

huan commented 2 years ago

Sometimes Friday BOT will lost the session of the WhatsApp and it does not emit scan event anymore.

After delete the existing invalid xxx.memory-card.json file, it can emit scan event again.

Need to be investigated / fixed.

su-chang commented 2 years ago

Thank you for your feedback, I will check it later.

huan commented 2 years ago

You are welcome. I believe this should be treated as a major issue because it will block production usage and prevent the wechaty from self-recovering.

su-chang commented 2 years ago

You are welcome. I believe this should be treated as a major issue because it will block production usage and prevent the wechaty from self-recovering.

It seems that this case related to: https://github.com/wechaty/puppet-whatsapp/issues/331 or not?

huan commented 2 years ago

No, I think this case is not related to #331

For the latest version, I have ran into a very similar issue:

If I logged in a Wechaty program on WhatsAppfollowed by:

  1. Ctrl+C
  2. deleted the MemoryCard data file, and
  3. logged the WhatsApp session out from my Phone App
  4. Restart the Wechaty program

Then the program will not be able to emit the QR Code anymore.