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.55k stars 229 forks source link

[Bug]: wechat4u 发送消息error情况 #401

Open SOl0QQ opened 1 year ago

SOl0QQ commented 1 year ago

Environment

wechaty                0.10.7
wechaty-grpc           0.20.19
wechaty-plugin-contrib 0.0.25
wechaty-puppet         0.4.23
wechaty-puppet-service 0.8.10
WECHATY_PUPPET="wechaty-puppet-wechat4u"
WECHATY_TOKEN="python-wechaty-{uuid}"  the uuid is generated by  "uuid.uuid4()"

the version of wechaty docker container: [0.65]

Description

使用wechaty4u协议,发送大于1条消息时,会捕获到error的事件记录
2023-05-17 16:55:20,214 - Wechaty - INFO - receive message <Message#message_type_text[🗣 Contact <@XXX> <XXX>    ding>
2023-05-17 16:55:20,214 - Message - INFO - say() <dong>
2023-05-17 16:55:20,681 - Wechaty - ERROR - internal error <>

问题1:error的事件记录是微信服务端发出的吗?是因为发送频率导致的吗?
问题2:事件捕获的处理代码是在什么位置,请麻烦指教
问题3:padlocal协议为什么发送大于1条消息时,没有得到以上这个错误

Minimum reproducible code

async def on_message(self, msg: Message) -> None:
    print(msg.text())
    if msg.text() == "ding":
        await msg.say("dong")
        await msg.say("I'm alive ...")
SOl0QQ commented 1 year ago

期待回复