wangrongding / wechat-bot

🤖一个基于 WeChaty 结合 OpenAi ChatGPT / Kimi / 讯飞等Ai服务实现的微信机器人 ,可以用来帮助你自动回复微信消息,或者管理微信群/好友,检测僵尸粉等...
MIT License
5.16k stars 730 forks source link

npm run dev报错 #137

Closed Michelangelo-li closed 6 months ago

Michelangelo-li commented 1 year ago

10:34:07 ERR PuppetWeChatBridge start() exception: TimeoutError: Navigation timeout of 60000 ms exceeded 10:34:07 ERR PuppetWeChat initBridge() exception: Navigation timeout of 60000 ms exceeded 10:34:07 WARN PuppetWeChatBridge stop() page.close() exception: Error: Protocol error: Connection closed. Most likely the page has been closed. 是因为什么!

QiuYeHong90 commented 1 year ago

我也是这个问题

sharq34 commented 1 year ago

我也是这个问题,怎么解决

totoleon commented 1 year ago

+1

ParadiseH commented 1 year ago

+1

waseemcn commented 1 year ago

+1

xiaotisos commented 1 year ago

+1

waseemcn commented 1 year ago

解决办法:src/wechaty/index.js 注释: puppet: 'wechaty-puppet-wechat', puppetOptions: { uos: true, ...CHROME_BIN },

linbaochuan commented 1 year ago

执行以下命令: npm i wechaty-puppet-wechat4u@1.13.12

并且结合楼上的方法, 打开src/wechaty/index.js 将56行的注释取消掉,改成注释57行:

export const bot = WechatyBuilder.build({ name: 'WechatEveryDay', puppet: 'wechaty-puppet-wechat4u', // 如果有token,记得更换对应的puppet //puppet: 'wechaty-puppet-wechat', // 如果 wechaty-puppet-wechat 存在问题,也可以尝试使用上面的 wechaty-puppet-wechat4u ,记得安装 wechaty-puppet-wechat4u puppetOptions: { uos: true, ...CHROME_BIN }, })