Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

登录成功之后,报错 #55

Open
sinajia opened this issue Apr 25, 2023 · 1 comment
Open

登录成功之后,报错 #55

sinajia opened this issue Apr 25, 2023 · 1 comment

Comments

@sinajia
Copy link

sinajia commented Apr 25, 2023

2023-04-25 21:54: 21:54:24 WARN PuppetWechat4u contactRawPayload(AssertionError [ERR_ASSERTION]: 1205 == 0) wechat4u.batchGetContact() exception: undefined
2023-04-25 21:54: AssertionError [ERR_ASSERTION]: 1205 == 0
2023-04-25 21:54: at Object.equal (/yj/prj/wechatbot/node_modules/wechat4u/lib/util/global.js:69:24)
2023-04-25 21:54: at /yj/prj/wechatbot/node_modules/wechat4u/lib/core.js:324:24
2023-04-25 21:54: at processTicksAndRejections (node:internal/process/task_queues:96:5)
2023-04-25 21:54: at async Promise.all (index 1) {
2023-04-25 21:54: code: 2,
2023-04-25 21:54: details: 'AssertionError [ERR_ASSERTION]: 1205 == 0\n' +
2023-04-25 21:54: ' at Object.equal (/yj/prj/wechatbot/node_modules/wechat4u/lib/util/global.js:69:24)\n' +
2023-04-25 21:54: ' at /yj/prj/wechatbot/node_modules/wechat4u/lib/core.js:324:24\n' +
2023-04-25 21:54: ' at processTicksAndRejections (node:internal/process/task_queues:96:5)\n' +
2023-04-25 21:54: ' at async Promise.all (index 1)'
2023-04-25 21:54: }

@sinajia
Copy link
Author

sinajia commented Apr 26, 2023

看了一下代码,是warn提示,这个warn可以如下修改去掉

process.env['WECHATY_LOG'] = 'error'
await import('./src/wechaty/index.js')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant