wechaty / puppet-xp

Wechaty Puppet WeChat Windows Protocol
http://wechaty.js.org/docs/puppet-providers/xp
Apache License 2.0
471 stars 114 forks source link

Error TypeError: Cannot read property 'then' of null #60

Closed zhuangzihan closed 2 years ago

zhuangzihan commented 2 years ago

使用 npm start 时出现了以下错误,但是功能却正常,我尝试换一个微信号登录,发现没有遇到这种问题

> wechaty-puppet-xp@1.10.2 start:bot
> cross-env WECHATY_LOG=verbose NODE_OPTIONS="--no-warnings --loader=ts-node/esm" node examples/wechat-bot.ts

10:20:47 INFO Config registering process.on("unhandledRejection") for development/debug
10:20:47 VERB Config constructor()
10:20:47 VERB PoolifyMixin poolifyMixin(EventEmitter)
10:20:47 VERB WechatifyMixin wechatifyMixin(AbstractPoolifyMixin)
10:20:47 VERB ValidationMixin validationMixin(ContactMixin)
10:20:47 VERB ValidationMixin validationMixin(ContactImplBase)
10:20:47 VERB PoolifyMixin poolifyMixin(ContactImpl)
10:20:47 VERB ValidationMixin validationMixin(ContactSelfMixin)
10:20:47 VERB WechatifyMixin wechatifyMixin(EmptyBase)
10:20:47 VERB ValidationMixin validationMixin(FavoriteMixin)
10:20:47 VERB WechatifyMixin wechatifyMixin(EventEmitter)
10:20:47 VERB ValidationMixin validationMixin(FriendshipMixin)
10:20:47 VERB WechatifyMixin wechatifyMixin(EmptyBase)
10:20:47 VERB ValidationMixin validationMixin(ImageMixin)
10:20:47 VERB WechatifyMixin wechatifyMixin(EmptyBase)
10:20:47 VERB ValidationMixin validationMixin(LocationMixin)
10:20:54 VERB WechatifyMixin wechatifyMixin(EmptyBase)
10:20:54 VERB ValidationMixin validationMixin(UrlLinkMixin)
10:20:54 VERB WechatifyMixin wechatifyMixin(EmptyBase)
10:20:54 VERB ValidationMixin validationMixin(MiniProgramMixin)
10:20:54 VERB WechatifyMixin wechatifyMixin(EventEmitter)
10:20:54 VERB ValidationMixin validationMixin(MessageMixin)
10:20:54 VERB ValidationMixin validationMixin(MessageImplBase)
10:20:54 VERB WechatifyMixin wechatifyMixin(EmptyBase)
10:20:54 VERB ValidationMixin validationMixin(MomentMixin)
10:20:54 VERB WechatifyMixin wechatifyMixin(EmptyBase)
10:20:54 VERB ValidationMixin validationMixin(MoneyMixin)
10:20:54 VERB PoolifyMixin poolifyMixin(EventEmitter)
10:20:54 VERB WechatifyMixin wechatifyMixin(AbstractPoolifyMixin)
10:20:54 VERB ValidationMixin validationMixin(RoomMixin)
10:20:54 VERB WechatifyMixin wechatifyMixin(EmptyBase)
10:20:54 VERB ValidationMixin validationMixin(RoomInvitationMixin)
10:20:54 VERB WechatifyMixin wechatifyMixin(EmptyBase)
10:20:54 VERB PoolifyMixin poolifyMixin(AbstractWechatifyMixin)
10:20:54 VERB ValidationMixin validationMixin(TagMixin)
10:20:54 VERB WechatifyMixin wechatifyMixin(EmptyBase)
10:20:54 VERB ValidationMixin validationMixin(DelayMixin)
10:20:57 VERB WechatyGErrorMixin gErrorMixin(WechatySkeleton)
10:20:57 VERB WechatifyUserModuleMixin wechatifyUserModuleMixin(GErrorMixin)
10:20:57 VERB WechatyPluginMixin pluginMixin(WechatifyUserModuleMixin)
10:20:57 VERB WechatyPuppetMixin puppetMixin(PluginMixin)
10:20:57 VERB WechatyLoginMixin loginMixin(PuppetMixin)
10:20:57 VERB WechatyMiscMixin miscMixin(LoginMixin)
10:20:57 VERB WechatyIoMixin ioMixin(MiscMixin)
10:20:57 VERB ValidationMixin validationMixin(WechatyBase)
10:20:57 VERB ValidationMixin validationMixin(WechatyImplBase)
10:21:01 VERB wechaty-puppet-service monkeyPatchMetadataFromHttp2Headers()
10:21:05 VERB PuppetSkeleton constructor({})
10:21:05 VERB PuppetMemoryMixin constructor()
10:21:05 VERB PuppetLoginMixin constructor()
10:21:05 VERB PuppetCacheMixin constructor()
10:21:05 VERB PuppetCacheAgent constructor()
10:21:05 VERB PuppetContactMixin constructor()
10:21:05 VERB PuppetRoomMemberMixin constructor()
10:21:05 VERB PuppetRoomMixin constructor()
10:21:05 VERB PuppetFriendshipMixin constructor()
10:21:05 VERB PuppetTagMixin constructor()
10:21:05 VERB PuppetRoomInvitationMixin constructor()
10:21:05 VERB PuppetMessageMixin constructor()
10:21:05 VERB PuppetMiscMixin constructor()
10:21:05 VERB ServiceCtl<PuppetServiceMixin> constructor()
10:21:05 VERB StateSwitch constructor(PuppetServiceMixin, "{"log":{"enableTimestamp":true,"logLevel":4,"prefixFilter":{}}}")
10:21:05 VERB StateSwitch constructor(PuppetServiceMixinReset, "{"log":{"enableTimestamp":true,"logLevel":4,"prefixFilter":{}}}")
10:21:05 VERB PuppetServiceMixin constructor() #0
10:21:05 VERB PuppetWatchdogAgent constructor(050ff4bf-bde5-47ca-bfa0-6ce3f84ef969)
10:21:05 VERB PuppetWatchdogAgent constructor() timeout 60 seconds
10:21:05 VERB Puppet constructor({})
10:21:05 VERB PuppetXp constructor({})
10:21:05 VERB WechatyBuilder singleton()
10:21:05 VERB WechatyBuilder newInstance()
10:21:05 VERB WechatyIoMixin constructor()
10:21:05 VERB WechatyLoginMixin constructor()
10:21:05 VERB WechatyPuppetMixin construct()
10:21:05 VERB WechatifyUserModuleMixin constructor()
10:21:05 VERB WechatySkeleton constructor()
10:21:05 VERB StateSwitch constructor(WechatyReady, "{"log":{"enableTimestamp":true,"logLevel":4,"prefixFilter":{}}}")
10:21:05 VERB ServiceCtl<Wechaty> constructor()
10:21:05 VERB StateSwitch constructor(Wechaty, "{"log":{"enableTimestamp":true,"logLevel":4,"prefixFilter":{}}}")
10:21:05 VERB StateSwitch constructor(WechatyReset, "{"log":{"enableTimestamp":true,"logLevel":4,"prefixFilter":{}}}")
10:21:05 VERB Wechaty constructor()
10:21:05 VERB WechatySkeleton on(scan, listener) registering... listenerCount: 0
10:21:05 VERB WechatySkeleton on(login, listener) registering... listenerCount: 0
10:21:05 VERB WechatySkeleton on(logout, listener) registering... listenerCount: 0
10:21:05 VERB WechatySkeleton on(message, listener) registering... listenerCount: 0
10:21:05 VERB ServiceCtl<Wechaty> start()
10:21:05 VERB StateSwitch <Wechaty> active(pending) <- (false)
10:21:05 VERB ServiceCtl<Wechaty> start() super.start() ...
10:21:05 VERB WechatyIoMixin start()
10:21:05 VERB WechatyLoginMixin start()
10:21:05 VERB WechatyPuppetMixin start()
10:21:05 VERB WechatyPuppetMixin start() super.start() ...
10:21:05 VERB WechatyPluginMixin start()
10:21:05 VERB WechatifyUserModuleMixin start()
10:21:05 VERB WechatySkeleton start()
10:21:05 VERB WechatifyUserModuleMixin _wechatifyUserModules()
10:21:05 VERB WechatifyUserModuleMixin _wechatifyUserModules() initializing Wechaty User Module (WUM) ...
10:21:05 VERB WechatifyMixin wechatifyUserModule(ContactImpl)
10:21:05 VERB WechatifyMixin wechatifyUserModule(ContactImpl)(Wechaty#2dee9980-67e8-4860-ace1-f0324ea974c4<Puppet<PuppetXp>(NONAME)>(wechat-bot))
10:21:05 VERB WechatifyMixin wechatifyUserModule(ContactSelfImpl)
10:21:05 VERB WechatifyMixin wechatifyUserModule(ContactSelfImpl)(Wechaty#2dee9980-67e8-4860-ace1-f0324ea974c4<Puppet<PuppetXp>(NONAME)>(wechat-bot))
10:21:05 VERB WechatifyMixin wechatifyUserModule(DelayImpl)
10:21:05 VERB WechatifyMixin wechatifyUserModule(DelayImpl)(Wechaty#2dee9980-67e8-4860-ace1-f0324ea974c4<Puppet<PuppetXp>(NONAME)>(wechat-bot))
10:21:05 VERB WechatifyMixin wechatifyUserModule(FriendshipImpl)
10:21:05 VERB WechatifyMixin wechatifyUserModule(FriendshipImpl)(Wechaty#2dee9980-67e8-4860-ace1-f0324ea974c4<Puppet<PuppetXp>(NONAME)>(wechat-bot))
10:21:05 VERB WechatifyMixin wechatifyUserModule(ImageImpl)
10:21:05 VERB WechatifyMixin wechatifyUserModule(ImageImpl)(Wechaty#2dee9980-67e8-4860-ace1-f0324ea974c4<Puppet<PuppetXp>(NONAME)>(wechat-bot))
10:21:05 VERB WechatifyMixin wechatifyUserModule(LocationImpl)
10:21:05 VERB WechatifyMixin wechatifyUserModule(LocationImpl)(Wechaty#2dee9980-67e8-4860-ace1-f0324ea974c4<Puppet<PuppetXp>(NONAME)>(wechat-bot))
10:21:05 VERB WechatifyMixin wechatifyUserModule(MessageImpl)
10:21:05 VERB WechatifyMixin wechatifyUserModule(MessageImpl)(Wechaty#2dee9980-67e8-4860-ace1-f0324ea974c4<Puppet<PuppetXp>(NONAME)>(wechat-bot))
10:21:05 VERB WechatifyMixin wechatifyUserModule(MiniProgramImpl)
10:21:05 VERB WechatifyMixin wechatifyUserModule(MiniProgramImpl)(Wechaty#2dee9980-67e8-4860-ace1-f0324ea974c4<Puppet<PuppetXp>(NONAME)>(wechat-bot))
10:21:05 VERB WechatifyMixin wechatifyUserModule(RoomImpl)
10:21:05 VERB WechatifyMixin wechatifyUserModule(RoomImpl)(Wechaty#2dee9980-67e8-4860-ace1-f0324ea974c4<Puppet<PuppetXp>(NONAME)>(wechat-bot))
10:21:05 VERB WechatifyMixin wechatifyUserModule(RoomInvitationImpl)
10:21:05 VERB WechatifyMixin wechatifyUserModule(RoomInvitationImpl)(Wechaty#2dee9980-67e8-4860-ace1-f0324ea974c4<Puppet<PuppetXp>(NONAME)>(wechat-bot))
10:21:05 VERB WechatifyMixin wechatifyUserModule(TagImpl)
10:21:06 VERB WechatifyMixin wechatifyUserModule(TagImpl)(Wechaty#2dee9980-67e8-4860-ace1-f0324ea974c4<Puppet<PuppetXp>(NONAME)>(wechat-bot))
10:21:06 VERB WechatifyMixin wechatifyUserModule(UrlLinkImpl)
10:21:06 VERB WechatifyMixin wechatifyUserModule(UrlLinkImpl)(Wechaty#2dee9980-67e8-4860-ace1-f0324ea974c4<Puppet<PuppetXp>(NONAME)>(wechat-bot))
10:21:06 VERB WechatifyUserModuleMixin _wechatifyUserModules() initializing Wechaty User Module (WUM) ... done
10:21:06 VERB Wechaty init() Raven disabled (import("raven") failed)
10:21:06 VERB WechatyPluginMixin start() installing plugins(global/0, instance/0) ...
10:21:06 VERB WechatyPluginMixin start() installing plugins(global/0, instance/0) ... done
10:21:06 VERB WechatyPuppetMixin start() super.start() ... done
10:21:06 VERB WechatyPuppetMixin start() initializing puppet instance ...
10:21:06 VERB WechatyPuppetMixin __initPuppetInstance() Puppet<PuppetXp>(NONAME)
10:21:06 VERB WechatyPuppetMixin __initPuppetInstance() instanciating puppet instance ...
10:21:06 VERB PuppetManager resolve({puppet: Puppet<PuppetXp>(NONAME), puppetOptions: undefined})
10:21:06 VERB WechatyPuppetMixin __initPuppetInstance() instanciating puppet instance ... done
10:21:06 VERB WechatyPuppetMixin __initPuppetInstance() setting memory ...
10:21:06 VERB PuppetMemoryMixin setMemory(wechat-bot)
10:21:06 VERB WechatyPuppetMixin __initPuppetInstance() setting memory ... done
10:21:06 VERB WechatyPuppetMixin __initPuppetInstance() setting up events ...
10:21:06 VERB WechatyPuppetMixin __setupPuppetEvents(Puppet<PuppetXp>(wechat-bot))
10:21:06 VERB PuppetMixin __setupPuppetEvents() puppet.on(friendship) (listenerCount:0) registering...
10:21:06 VERB PuppetMixin __setupPuppetEvents() puppet.on(login) (listenerCount:0) registering...
10:21:06 VERB PuppetMixin __setupPuppetEvents() puppet.on(logout) (listenerCount:0) registering...
10:21:06 VERB PuppetMixin __setupPuppetEvents() puppet.on(message) (listenerCount:0) registering...
10:21:06 VERB PuppetMixin __setupPuppetEvents() puppet.on(room-invite) (listenerCount:0) registering...
10:21:06 VERB PuppetMixin __setupPuppetEvents() puppet.on(room-join) (listenerCount:0) registering...
10:21:06 VERB PuppetMixin __setupPuppetEvents() puppet.on(room-leave) (listenerCount:0) registering...
10:21:06 VERB PuppetMixin __setupPuppetEvents() puppet.on(room-topic) (listenerCount:0) registering...
10:21:06 VERB PuppetMixin __setupPuppetEvents() puppet.on(scan) (listenerCount:0) registering...
10:21:06 VERB PuppetMixin __setupPuppetEvents() puppet.on(dirty) (listenerCount:0) registering...
10:21:06 VERB PuppetMixin __setupPuppetEvents() puppet.on(dong) (listenerCount:0) registering...
10:21:06 VERB PuppetMixin __setupPuppetEvents() puppet.on(error) (listenerCount:0) registering...
10:21:06 VERB PuppetMixin __setupPuppetEvents() puppet.on(heartbeat) (listenerCount:0) registering...
10:21:06 VERB PuppetMixin __setupPuppetEvents() puppet.on(ready) (listenerCount:0) registering...
10:21:06 VERB PuppetMixin __setupPuppetEvents() puppet.on(reset) (listenerCount:0) registering...
10:21:06 VERB WechatyPuppetMixin __setupPuppetEvents() ... done
10:21:06 VERB WechatyPuppetMixin __initPuppetInstance() setting up events ... done
10:21:06 VERB WechatyPuppetMixin __initPuppetInstance() emitting "puppet" event ...
10:21:06 VERB WechatyPuppetMixin __initPuppetInstance() emitting "puppet" event ... done
10:21:06 VERB WechatyPuppetMixin start() initializing puppet instance ... done
10:21:06 VERB WechatyPuppetMixin start() starting puppet ...
10:21:06 VERB PuppetServiceMixin start()
10:21:06 VERB ServiceCtl<PuppetServiceMixin> start()
10:21:06 VERB StateSwitch <PuppetServiceMixin> active(pending) <- (false)
10:21:06 VERB ServiceCtl<PuppetServiceMixin> start() super.start() ...
10:21:06 VERB PuppetCacheMixin start()
10:21:06 VERB PuppetLoginMixin start()
10:21:06 VERB PuppetMemoryMixin start()
10:21:06 VERB PuppetSkeleton start()
10:21:06 VERB PuppetCacheAgent start()
10:21:06 VERB PuppetCacheAgent clear()
10:21:06 VERB PuppetCacheMixin start() "dirty" event listener added
10:21:06 VERB ServiceCtl<PuppetServiceMixin> start() super.start() ... done
10:21:06 VERB ServiceCtl<PuppetServiceMixin> start() this.onStart() ...
10:21:06 VERB PuppetXp onStart()
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
10:21:15 VERB PuppetXp login()
......
huan commented 2 years ago

I don't know what happened by just reading your log, but it's obviously related to the upstream package sidecar. Will investigate it when I got time, and please provide more details if you can. Thanks for the reporting!

zhuangzihan commented 2 years ago

@huan

环境配置

$ node -v
v16.13.2

$ npm -v
8.1.2

$ npm ls
+-- @chatie/eslint-config@1.0.4
+-- @chatie/git-scripts@0.6.2
+-- @chatie/semver@0.4.7
+-- @chatie/tsconfig@4.6.2
+-- @types/cuid@2.0.1
+-- @types/faker@5.5.9
+-- @types/node-schedule@1.3.2
+-- @types/xml2js@0.4.9
+-- axios@0.24.0
+-- cuid@2.1.8
+-- node-schedule@2.1.0
+-- sidecar@0.17.16
+-- tstest@1.0.1
+-- typed-emitter@1.4.0
+-- wechaty-puppet@1.10.2
+-- wechaty@1.10.4
`-- xml2js@0.4.23

操作系统

版本  Windows 11 家庭中文版
版本  21H2
安装日期    ‎2021/‎11/‎22
操作系统版本  22000.434
体验  Windows 功能体验包 1000.22000.434.0

微信版本号:3.3.0.115

huan commented 2 years ago

Wired, according to the below code, it should not happen:

zhuangzihan commented 2 years ago

Wired, according to the below code, it should not happen:

请问这个文件的位置在哪里?我找不到它。

binsee commented 2 years ago

I add log code to the code line:

https://github.com/wechaty/puppet-xp/blob/1fc85093d662f6acd75067374ab9ca2d22ea2c46/src/puppet-xp.ts#L140-L145

-->

          try {
            let ok = false
            setTimeout(() => {
              if (!ok) {
                log.warn('PuppetXp', 'loadRoomList() getChatroomMemberNickInfo( %s , %s )', roomId, memberId)
              }
            }, 1000)

            const memberNickName = await this.sidecar.getChatroomMemberNickInfo(memberId, roomId)
            ok = true
            const contact = {

output:

Puppet Version: 0.0.0

Please wait... I'm trying to login in...

Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
Error [TypeError]: cannot read property 'then' of null
    at <anonymous> (frida/runtime/message-dispatcher.js:14)
    at c (frida/runtime/message-dispatcher.js:23) {
  fileName: 'frida/runtime/message-dispatcher.js',
  lineNumber: 14
}
wxid_xxxxxxxx login
23:09:37 WARN PuppetXp loadRoomList() getChatroomMemberNickInfo( 25651788905@chatroom , wxid_5mt8sa309trl21 )
23:09:37 WARN PuppetXp loadRoomList() getChatroomMemberNickInfo( 25651788905@chatroom , 25984982822634748@openim )

Found from WeChat log:

[I][2022-02-06 +8.0 23:09:36.346][8340, 22636][MMPC_ContactStorage] ... [user not In db:wxi*l21~19
[I][2022-02-06 +8.0 23:09:36.350][8340, 22636][MMPC_ContactStorage] ... [user not In db:259*nim~24
ericcug commented 2 years ago

Fix confirmed