Skip to content

修复 web 版协议账号挂掉 #24

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

Closed
3 of 4 tasks
MarkShawn2020 opened this issue May 11, 2024 · 3 comments
Closed
3 of 4 tasks

修复 web 版协议账号挂掉 #24

MarkShawn2020 opened this issue May 11, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@MarkShawn2020
Copy link
Member

MarkShawn2020 commented May 11, 2024

导致挂掉的一些问题

  • 可能的自动断线(后续检测,优先级降低)
  • quote parse(不会挂,因为做了user判断,优先级降低)
  • invitee(在需要被同意时,web端会挂掉,已加入error-handler)
  • 可能其他的问题,待补充
@MarkShawn2020 MarkShawn2020 changed the title 【急】修改 web 版协议 quote parse 时导致账号挂掉的问题 【急】修复 web 版协议 quote parse 时导致账号挂掉的问题 May 11, 2024
@MarkShawn2020 MarkShawn2020 added the bug Something isn't working label May 11, 2024
@MarkShawn2020
Copy link
Member Author

MarkShawn2020 commented May 14, 2024

todo: wechat4u 不支持获取 topic of room-invitation

[14:36:46.615] INFO (default/1634243): onRoomInvite
Error: Wechaty Puppet Unsupported API Error. Learn More At https://github.com/wechaty/wechaty-puppet/wiki/Compatibility
at Module.throwUnsupportedError (/home/ubuntu/@cs-magic/coding/codebase/node_modules/wechaty/node_modules/wechaty-puppet/src/throw-unsupported-error.ts:4:9)
at PuppetWechat4u.roomInvitationRawPayload (/home/ubuntu/@cs-magic/coding/codebase/node_modules/wechaty/node_modules/wechaty-puppet-wechat4u/src/puppet-wechat4u.ts:872:19)
at PuppetWechat4u.roomInvitationPayload (/home/ubuntu/@cs-magic/coding/codebase/node_modules/wechaty/node_modules/wechaty-puppet/src/mixins/room-invitation-mixin.ts:92:37)
at WechatifiedUserClass.topic (/home/ubuntu/@cs-magic/coding/codebase/node_modules/wechaty/src/user-modules/room-invitation.ts:165:47)
at handleRoomInvite (/home/ubuntu/@cs-magic/coding/codebase/packages-core/wechaty/handlers/handle-room-invite.ts:20:42)
at WechatyImpl. (/home/ubuntu/@cs-magic/coding/codebase/packages-core/wechaty/handlers/index.ts:46:13)
at WechatyImpl.emit (node:events:514:28)
at WechatyImpl.emit (node:domain:489:12)
at WechatyImpl.emit (/home/ubuntu/@cs-magic/coding/codebase/node_modules/wechaty/src/wechaty-mixins/gerror-mixin.ts:44:22)
at PuppetWechat4u. (/home/ubuntu/@cs-magic/coding/codebase/node_modules/wechaty/src/wechaty-mixins/puppet-mixin.ts:327:20)
at PuppetWechat4u.emit (node:events:514:28)
at PuppetWechat4u.emit (node:domain:489:12)
at PuppetWechat4u.emit (/home/ubuntu/@cs-magic/coding/codebase/node_modules/wechaty/node_modules/wechaty-puppet/src/puppet/puppet-skeleton.ts:117:20)
at Wechat. (/home/ubuntu/@cs-magic/coding/codebase/node_modules/wechaty/node_modules/wechaty-puppet-wechat4u/src/puppet-wechat4u.ts:432:16)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[14:36:46.615] INFO (default/1634243):
roomId: "7002221024767979545"

@MarkShawn2020 MarkShawn2020 changed the title 【急】修复 web 版协议 quote parse 时导致账号挂掉的问题 【急】修复 web 版协议账号挂掉 May 14, 2024
@MarkShawn2020
Copy link
Member Author

invitee

[00:29:03.587] DEBUG (default/1216484): . [00:29:10.109] ERROR (default/1216484): query must provide at least one key. current query is empty. 00:29:10 ERR Contact this.wechaty.puppet.contactFindAll() rejected: query must provide at least one key. current query is empty. [00:29:10.109] ERROR (default/1216484): query must provide at least one key. current query is empty. [00:29:10.119] INFO (default/1216484): invitees has self: false Error: Wechaty Puppet Unsupported API Error. Learn More At https://github.com/wechaty/wechaty-puppet/wiki/Compatibility at Module.throwUnsupportedError (/home/ubuntu/@cs-magic/coding/codebase/node_modules/wechaty/node_modules/wechaty-puppet/src/throw-unsupported-error.ts:4:9) at PuppetWechat4u.roomAnnounce (/home/ubuntu/@cs-magic/coding/codebase/node_modules/wechaty/node_modules/wechaty-puppet-wechat4u/src/puppet-wechat4u.ts:994:19) at WechatifiedUserClass.announce (/home/ubuntu/@cs-magic/coding/codebase/node_modules/wechaty/src/user-modules/room.ts:863:54) at handleRoomJoin (/home/ubuntu/@cs-magic/coding/codebase/packages-core/wechaty/handlers/handle-room-join.ts:42:33) at WechatyImpl. (/home/ubuntu/@cs-magic/coding/codebase/packages-core/wechaty/handlers/index.ts:58:7) 2

目前测试没下来,不会挂掉,只会报 error:

11:30:16 ERR Contact this.wechaty.puppet.contactFindAll() rejected: query must provide at least one key. current query is empty.
[11:30:16.064] ERROR (default/1501335): query must provide at least one key. current query is empty.
[11:30:16.064] ERROR (default/1501335): query must provide at least one key. current query is empty.
[11:30:16.065] ERROR (default/1501335): no inviter found for id: undefined
[11:30:16.065] ERROR (default/1501335): no inviter found for id: undefined
[11:30:29.256] DEBUG (default/1501335): .

@MarkShawn2020 MarkShawn2020 changed the title 【急】修复 web 版协议账号挂掉 修复 web 版协议账号挂掉 May 14, 2024
@MarkShawn2020
Copy link
Member Author

通过加入error-handler,确保所有函数都不会挂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant