lcjqyml / wechatbot

A chatbot for wechat.
GNU Affero General Public License v3.0
250 stars 40 forks source link

[BUG] 扫码后报错uncaughtException AssertionError [ERR_ASSERTION]: 1 == 0 #2

Closed Pretend-to closed 1 year ago

Pretend-to commented 1 year ago

提交 issue 前,请先确认:

表现
描述 BUG 的表现情况

运行环境:

复现步骤
描述你是如何触发这个 BUG 的 手机扫码确认后这个报错

wechatbot_1 | uncaughtException AssertionError [ERR_ASSERTION]: 1 == 0 wechatbot_1 | at Object.equal (/app/node_modules/wechat4u/src/util/global.js:53:14) wechatbot_1 | at /app/node_modules/wechat4u/src/core.js:194:16 wechatbot_1 | at processTicksAndRejections (node:internal/process/task_queues:96:5) { wechatbot_1 | code: 2, wechatbot_1 | details: 'AssertionError [ERR_ASSERTION]: 1 == 0\n' + wechatbot_1 | ' at Object.equal (/app/node_modules/wechat4u/src/util/global.js:53:14)\n' + wechatbot_1 | ' at /app/node_modules/wechat4u/src/core.js:194:16\n' + wechatbot_1 | ' at processTicksAndRejections (node:internal/process/task_queues:96:5)' wechatbot_1 | }

Pretend-to commented 1 year ago

补充docker版本Docker version 23.0.3, build 3e7cbfd 另外服务器是在国外,不知是否有关

wangji1231234 commented 1 year ago

centos7.9上运行也是这样,本人在江苏,服务器是浙江的 image

lcjqyml commented 1 year ago

这个是微信的一些配置不全引起的,不影响使用。如果介意,可以尝试:

  1. 完成实名认证。
  2. 点微信我的->服务->钱包->身份信息,完善个人信息。
liu2-3zhi commented 1 year ago

不实名就会马上掉线,还是得实名才能使用。我已经使用config.yaml的示例文件进行修改使用了,但是除非实名,仍然无法使用。

RickWang000 commented 1 year ago

现在就算实名绑银行卡也会报错: uncaughtException AssertionError [ERR_ASSERTION]: 1102 == 0 at Object.equal (/app/node_modules/wechat4u/src/util/global.js:53:14) at /app/node_modules/wechat4u/src/core.js:194:16 at processTicksAndRejections (node:internal/process/task_queues:96:5) { code: 2, details: 'AssertionError [ERR_ASSERTION]: 1102 == 0\n' + ' at Object.equal (/app/node_modules/wechat4u/src/util/global.js:53:14)\n' + ' at /app/node_modules/wechat4u/src/core.js:194:16\n' + ' at processTicksAndRejections (node:internal/process/task_queues:96:5)' } 好几天找不出什么原因

zsanjin-p commented 1 year ago

我直接被冻结了