getting-started icon indicating copy to clipboard operation
getting-started copied to clipboard

wechaty login and logout repeatedly, after logout, wechaty can't listen messages

Open freecto opened this issue 5 years ago • 1 comments

Important:Please file the issue follow the template, or we won't help you to solve the problem.

0. Report Issue Guide

  1. Please run the following command and check whether the problem has been fixed:
rm -rf package-lock.json
rm -rf node_modules
npm install
  1. Please search in FAQ List first, and make sure your problem has not been solved before.

  2. Please search in the issue first, and make sure your problem had not been reported before

1. Versions

  • What is your wechaty version? Answer: 0.50.4

  • Which puppet are you using for wechaty? (padchat/puppeteer/padpro/...) Answer: PuppetHostie

  • What is your wechaty-puppet-XXX(padchat/puppeteer/) version? Answer: PuppetHostie

  • What is your node version? (run node --version) Answer: v12.16.3

  • What os are you using Answer: mac

2. Describe the bug

after run "npm start" and start wechaty, it will login , after 1 minute, it will logout automatically. after wechaty logout, wechaty can't listen the messages of wxwork wechat groups. after 1 minute, wechaty will login automatically, and wechaty can listen the messages of wxwork wechat groups. but after 1 minute, it will logout and miss messages. why login and logout ...

3. To Reproduce

export WECHATY_PUPPET=wechaty-puppet-hostie export WECHATY_PUPPET_HOSTIE_TOKEN='puppet_wxwork_72a25.......' //here input your token npm start

Steps to reproduce the behavior:

  1. run 'npm start'

4. Expected behavior

wechaty should not logout.

5. Actual behavior

image

image

6. Full Output Logs

Set env WECHATY_LOG=silly in order to set log level to silly, then we can get the full log (If you dosen't set log env, log level is info as default, we cannot get the full log)

We need full log instead of log screenshot or log fragments!

Show Logs
$ WECHATY_LOG=silly node yourbot.js

Question: Paste your FULL(DO NOT ONLY PROVIDE FRAGMENTS) log messages
Answer:

7. Additional context

111 [bug]

freecto avatar Nov 13 '20 08:11 freecto

When you receive logout event, there will be a reason parameter in the event, could you please also print that?

And what's your PuppetHostie version? You could check this by entering npm ls wechaty-puppet-hostie in console.

windmemory avatar Nov 13 '20 08:11 windmemory