wechaty / python-wechaty

Python Wechaty is a Conversational RPA SDK for Chatbot Makers written in Python
https://wechaty.readthedocs.io/zh_CN/latest/
Apache License 2.0
1.62k stars 234 forks source link

请教。一段时间没有人说话(包括群)后。脚本就和服务器失联了。请问如何解决? #280

Closed ashen001 closed 1 year ago

ashen001 commented 2 years ago

有人频繁说话时没有这个问题。当一段时间没有人说话(包括群)后。脚本就似乎和服务器失联了。。需要停掉脚本然后重新启动2次。 第一次会卡在 2021-12-11 22:49:11,440 - Wechaty - INFO - starting puppet ... 2021-12-11 22:49:11,440 - HostiePuppet - INFO - init puppet 2021-12-11 22:49:11,447 - HostiePuppet - INFO - starting the puppet ... 停掉后再启动就正常了。。 谢谢。

我用的是padlocal的token。。谢谢。

ashen001 commented 2 years ago

主要是失联的问题非常头疼。我尝试使用 asyncioscheduler 也没有解决。脚本并没有停止运行和报错,但是无法收到服务器推送过来的消息。 非常感谢您的帮助。

wj-Mcat commented 2 years ago

Yes, I believe it should a bug in python-wechaty. We will try to track this problem in next days. Thanks for your posting about this problem.

ashen001 commented 2 years ago

thx