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

Message ready() payload.talkerId not exist #287

Open
ShipinZ opened this issue Mar 29, 2023 · 1 comment
Open

Message ready() payload.talkerId not exist #287

ShipinZ opened this issue Mar 29, 2023 · 1 comment

Comments

@ShipinZ
Copy link

ShipinZ commented Mar 29, 2023

Important:Please file the issue follow the template, or we won't help you to solve the problem.

0. Report Issue Guide

  1. Please run the following command and check whether the problem has been fixed:
rm -rf package-lock.json
rm -rf node_modules
npm install
  1. Please search in FAQ List first, and make sure your problem has not been solved before.

  2. Please search in the issue first, and make sure your problem had not been reported before

1. Versions

  • What is your wechaty version?
    Answer: 1.18.1

  • Which puppet are you using for wechaty? (padchat/puppeteer/padpro/...)
    Answer: wechaty-puppet-wechat

  • What is your wechaty-puppet-XXX(padchat/puppeteer/) version?
    Answer: 1.18.1

  • What is your node version? (run node --version)
    Answer: v18.15.0

  • What os are you using
    Answer: window10

2. Describe the bug

Give a clear and concise description of what the bug is.

3. To Reproduce

I tried using the steps in the tutorial

npm install
set WECHATY_LOG=verbose
set WECHATY_PUPPET=wechaty-puppet-wechat
npm start

After the startup was successful, I used A wechat code scan to log in successfully, and then I tried to use B wechat signal to send A message, and then the console threw the following error message

15:00:49 INFO StarterBot Starter Bot Started.
15:00:50 INFO StarterBot Contact<@d9a9efd5f8cefbf7319d15086ede1ebbadf36c6178ce56eecf8cdf513fee477a> login
15:00:51 WARN Message ready() payload.talkerId not exist! See: https://github.com/wechaty/puppet/issues/187
Puppet: wechaty-puppet-wechat4u<wechaty-puppet>@1.11.1<1.20.2>
Error
    at WechatifiedUserClass.ready (file:///D:/workspace/git-repo/getting-started/node_modules/wechaty/src/user-modules/message.ts:818:21)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 0)
    at async Function.findAll (file:///D:/workspace/git-repo/getting-started/node_modules/wechaty/src/user-modules/message.ts:137:7)
    at async Function.find (file:///D:/workspace/git-repo/getting-started/node_modules/wechaty/src/user-modules/message.ts:110:25)
    at async PuppetWechat4u.<anonymous> (file:///D:/workspace/git-repo/getting-started/node_modules/wechaty/src/wechaty-mixins/puppet-mixin.ts:275:29)
15:00:51 WARN Message ready() payload.listenerId should be set! See: https://github.com/wechaty/puppet/issues/187
Puppet: wechaty-puppet-wechat4u<wechaty-puppet>@1.11.1<1.20.2>
Error
    at WechatifiedUserClass.ready (file:///D:/workspace/git-repo/getting-started/node_modules/wechaty/src/user-modules/message.ts:832:21)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 0)
    at async Function.findAll (file:///D:/workspace/git-repo/getting-started/node_modules/wechaty/src/user-modules/message.ts:137:7)
    at async Function.find (file:///D:/workspace/git-repo/getting-started/node_modules/wechaty/src/user-modules/message.ts:110:25)
    at async PuppetWechat4u.<anonymous> (file:///D:/workspace/git-repo/getting-started/node_modules/wechaty/src/wechaty-mixins/puppet-mixin.ts:275:29)
15:00:51 WARN Message talker() payload.talkerId not exist! See: https://github.com/wechaty/puppet/issues/187
Puppet: wechaty-puppet-wechat4u<wechaty-puppet>@1.11.1<1.20.2>
Error
    at WechatifiedUserClass.talker (file:///D:/workspace/git-repo/getting-started/node_modules/wechaty/src/user-modules/message.ts:283:21)
    at WechatifiedUserClass.toString (file:///D:/workspace/git-repo/getting-started/node_modules/wechaty/src/user-modules/message.ts:207:21)
    at WechatyImpl.onMessage (file:///D:/workspace/git-repo/getting-started/examples/ding-dong-bot.ts:44:30)
    at WechatyImpl.emit (node:events:513:28)
    at WechatyImpl.emit (node:domain:489:12)
    at WechatyImpl.emit (file:///D:/workspace/git-repo/getting-started/node_modules/wechaty/src/wechaty-mixins/gerror-mixin.ts:44:22)
    at PuppetWechat4u.<anonymous> (file:///D:/workspace/git-repo/getting-started/node_modules/wechaty/src/wechaty-mixins/puppet-mixin.ts:281:22)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
  ... 

Then I try to suggest wechaty/puppet#187 to find the answer, in the abnormal but didn't find how to solve this problem

4. Expected behavior

Give a clear and concise description of what you expected to happen.

5. Actual behavior

If applicable, add screenshots to help explain your problem. But do not paste log screenshots here.

6. Full Output Logs

Set env WECHATY_LOG=silly in order to set log level to silly, then we can get the full log (If you dosen't set log env, log level is info as default, we cannot get the full log)

We need full log instead of log screenshot or log fragments!

Show Logs
$ WECHATY_LOG=silly node yourbot.js

Question: Paste your FULL(DO NOT ONLY PROVIDE FRAGMENTS) log messages
Answer:

7. Additional context

Add any other context about the problem here.

[bug]

@evachxji
Copy link

edit package.json, change wechaty-puppet-wechat4u version to ~1.13.15
then npm install, npm start

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

2 participants