wangrongding / wechat-bot

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

之前成功了,现在使用报错不出现二维码,提示uncaughtException AssertionError [ERR_ASSERTION]: 1102 == 0 #141

Open sseventeen opened 1 year ago

sseventeen commented 1 year ago

wechat-bot@1.0.0 dev node ./index.js

Start to log in wechat... uncaughtException AssertionError [ERR_ASSERTION]: 1102 == 0 at Object.equal (D:\wechatbot\wechat-bot-main\wechat-bot-main\node_modules\wechat4u\lib\util\global.js:69:24) at D:\wechatbot\wechat-bot-main\wechat-bot-main\node_modules\wechat4u\lib\core.js:227:24 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { code: 2, details: 'AssertionError [ERR_ASSERTION]: 1102 == 0\n' + ' at Object.equal (D:\wechatbot\wechat-bot-main\wechat-bot-main\node_modules\wechat4u\lib\util\global.js:69:24)\n' + ' at D:\wechatbot\wechat-bot-main\wechat-bot-main\node_modules\wechat4u\lib\core.js:227:24\n' + ' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)' }

sseventeen commented 1 year ago

有没有大神知道怎么解决?求助求助

lijxug commented 1 year ago

有没有大神知道怎么解决?求助求助

你解决了吗?怎么解决的?求教

wangrongding commented 3 months ago

删除项目目录下的临时文件 WechatEveryDay.memory-card.json 即可

tmKnight01 commented 2 months ago

没有用 删除之后还是会自动生成

onScan: https://api.qrserver.com/v1/create-qr-code/?data= Waiting 2 11:58:38 INFO onScan: 3(undefined) Scanned bot error❌: AssertionError [ERR_ASSERTION]: 1 == 0 at Object.equal (/Users/xin/Desktop/wechatGPT/wechat-bot/node_modules/wechat4u/lib/util/global.js:69:24) at /Users/xin/Desktop/wechatGPT/wechat-bot/node_modules/wechat4u/lib/core.js:229:24 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { code: 2, details: 'AssertionError [ERR_ASSERTION]: 1 == 0\n' + ' at Object.equal (/Users/xin/Desktop/wechatGPT/wechat-bot/node_modules/wechat4u/lib/util/global.js:69:24)\n' + ' at /Users/xin/Desktop/wechatGPT/wechat-bot/node_modules/wechat4u/lib/core.js:229:24\n' + ' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)' }

wangrongding commented 2 months ago

肯定会自动生成的,我的意思是出问题的原因是你这个文件有问题,删除重新启动服务即可