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]: #427

Open liyancai opened 1 month ago

liyancai commented 1 month ago

Environment

- wechaty:
- wechaty-puppet: 
- wechaty-puppet-service: 
- wechaty-plugin-contrib: 
- token type: padlocal|wxwork|xp
- the version of wechaty docker container: [0.65]

Description

Error: WatchdogAgent reset: lastFood: "{"data":"heartbeat@browserbridge ding","timeoutMilliseconds":60000}"

每隔一段时间以后,就会报这个错误,死掉了,只能手动重启服务。

Minimum reproducible code

const bot = WechatyBuilder.build({ name: 'wechat-bot-' + wechatBotId, puppet: 'wechaty-puppet-wechat', // 默认 wechaty-puppet-wechat puppetOptions: { uos: true // 开启uos协议 }, });

bot.on('scan', onScan) bot.on('login', onLogin) bot.on('logout', onLogout) bot.on('message', onMessage) bot.on('heartbeat', onHeartbeat) bot.on('error', onError)

bot.start() .then(() => { log.info('启动机器人:', 'Starter Bot Started.') }) .catch(e => { log.error('启动时异常:', e) })