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

When trying the ding-dong-bot, many ThpeError repeats but the program seems not be broken #37

Closed
liuhewei opened this issue Oct 26, 2021 · 6 comments

Comments

@liuhewei
Copy link

liuhewei commented Oct 26, 2021

set WECHATY_PUPPET=wechaty-puppet-xp
npm start

> [email protected] start
> cross-env NODE_OPTIONS="--no-warnings --loader=ts-node/esm" node examples/ding-dong-bot.ts


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
}
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
}
liuhewei1115 login
------------------------------
@atorber
Copy link
Collaborator

atorber commented Oct 26, 2021

This seems to be because xp is not support Wechaty Token Gateway,reference resources #38

You can run this demo ——https://github.com/atorber/wechaty-puppet-xp-demo

@liuhewei
Copy link
Author

liuhewei commented Oct 26, 2021

@atorber Tried, the same error reported...

(base) D:\xxx\Code\wechaty-puppet-xp-demo>npm list
[email protected] D:\liuhewei\Code\wechaty-puppet-xp-demo
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]

(base) D:\xxx\Code\wechaty-puppet-xp-demo>npm run start
> [email protected] start
> node main.js

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
}
18:17:23 INFO TestBot Contact<xxx> login
18:17:23 INFO TestBot started.
----------------------------------------

@atorber
Copy link
Collaborator

atorber commented Oct 26, 2021

Check the nodejs version is v16 and the wechat-client version is WeChatSetup-v3.3.0.115,then run npm uninstall and npm install

@liuhewei
Copy link
Author

@atorber WeChat is downloaded from the repo, I just checked it's v3.3.0.115. The node version is v16.11.1.

@atorber
Copy link
Collaborator

atorber commented Oct 26, 2021

Is your wechat in login status?Code scanning login is not supported yet.

@binsee
Copy link
Contributor

binsee commented Feb 9, 2022

Fixes by #68

@atorber atorber closed this as completed Jun 17, 2022
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

3 participants