Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PuppetPad Keep logging in and out #1488

Closed
suntong opened this issue Jul 17, 2018 · 5 comments
Closed

PuppetPad Keep logging in and out #1488

suntong opened this issue Jul 17, 2018 · 5 comments

Comments

@suntong
Copy link
Contributor

suntong commented Jul 17, 2018

Provide Your Network Information

  1. Where is the location of your server? (i.e. City, or In/Out China) Canada
  2. Which cloud platform(AliYun/Qcloud/DigitalOcean/etc) are you using? Home Internet -- Bell

I don't have the details now, but keep this as a placeholder for the problem that people have been seeing.

The old log that I had:

When it happens, it seems that the communication with sever is extremely difficult. For e.g., the syncContactsAndRooms request should be sent right after login, but it'll take 5 minutes after login to fail:

22:20:03 INFO Wechaty start() v0.17.117 is starting...
22:20:03 INFO Wechaty initPuppet() using puppet: padchat
Contact<me> login
22:25:36 WARN PuppetPadchatManager syncContactsAndRooms() cannot get array result: {"message":"不支持的请求","status":-19}

Moreover, after such warning, no WX message can be received, and after 2 hours (20:19 ~ 22:19), it error out:

20:19:13 WARN PuppetPadchatManager syncContactsAndRooms() cannot get array result: {"message":"不支持的请求","status":-19}
22:19:02 WARN PadchatRpc initWebSocket() ws.on(close) 1006
22:19:02 WARN PuppetPadchat startManager() manager.on(reset) for ws.on(close, 1006. Restarting PuppetPadchat ... 
Contact<me> logout
22:19:02 WARN PuppetPadchatManager startCheckScan() checkScanLoop() exception: Error: WebSocket is not open: readyState 3 (CLOSED)
22:19:02 WARN PuppetPadchat startManager() manager.on(reset) for startCheckScan() checkScanLoop() exception. Restarting PuppetPadchat ... 
22:19:02 WARN PadchatRpc initWebSocket() ws.on(error) Error: connect ECONNREFUSED 54.223.73.175:8788
Error: Error: connect ECONNREFUSED 54.223.73.175:8788

Lots of WX messages should have been logged to the console during this period.

Such logging in and out went on and on until I broke it out in the morning, after the whole night not getting any normal wx message logged.

To duplicate:

I was just using the vanilla https://github.com/Chatie/wechaty-getting-started/blob/master/examples/starter-bot.js with PuppetPadchat.

@huan
Copy link
Member

huan commented Jul 18, 2018

It will be easy to debug if you could enable WECHATY_LOG=silly for your program for detailed log messages.

@suntong
Copy link
Contributor Author

suntong commented Jul 18, 2018

Yeah, I know, that's why I said, "I don't have the details now, but keep this as a placeholder".

I'll have a new phone in a week or so, then I can give it another go.

@huan
Copy link
Member

huan commented Aug 19, 2018

@suntong Hello, can you reproduce it with the latest version of wechaty@0.20 and wechaty-puppet-padchat@0.14?

@suntong
Copy link
Contributor Author

suntong commented Aug 27, 2018

I was about to give it a try again when I saw a flurry of reports in the wechat group claiming that the latest code is still having the same problem. So I think I'd better defer to their detailed bug reports instead.

@huan
Copy link
Member

huan commented Mar 22, 2021

Close this issue because the padchat has been deprecated already.

@huan huan closed this as completed Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants