[Bug]:
liyancai opened this issue · 0 comments
liyancai commented
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)
})