wechaty / puppet-wechat

Wechaty Puppet Provider for WeChat
https://www.npmjs.com/package/wechaty-puppet-wechat
Apache License 2.0
408 stars 68 forks source link

You need to enable wechat pay on the uos platform to log in #133

Closed HotWordland closed 3 years ago

HotWordland commented 3 years ago

Important:Please file the issue follow the template, or we won't be able to 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
  2. Please search in FAQ List first, and make sure your problem has not been solved before.

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

1. Versions

What is your wechaty version?

Answer: 0.60.9

Which puppet are you using for wechaty? (puppeteer/padlocal/service...)

Answer: puppeteer

What is your wechaty-puppet-XXX(padchat/puppeteer/) version?

Answer: puppeteer

What is your node version? (run node --version)

Answer: v13.14.0

What os are you using

Answer: uos

2. Describe the bug

Give a clear and concise description of what the bug is. I tried to scan the code in the terminal and log in

ERR PuppetWeChatBridge onLoad() exception: Error: To continue, enable WeChat Pay first.
(node:4144) UnhandledPromiseRejectionWarning: Error: To continue, enable WeChat Pay first.
at PuppetWeChat.<anonymous> (/Users/wulong/Desktop/Project/wechatyuos/node_modules/wechaty/dist/src/wechaty.js:271:44)
at PuppetWeChat.emit (events.js:315:20)
at PuppetWeChat.EventEmitter.emit (domain.js:485:12)
at Bridge.<anonymous> (/Users/wulong/Desktop/Project/wechatyuos/node_modules/wechaty-puppet-wechat/dist/src/puppet-wechat.js:202:45)
at Bridge.emit (events.js:315:20)
at Bridge.EventEmitter.emit (domain.js:485:12)
at Bridge.onLoad (/Users/wulong/Desktop/Project/wechatyuos/node_modules/wechaty-puppet-wechat/dist/src/bridge.js:156:18)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(Use `node --trace-warnings ...` to show where the warning was created)

It seems that you need to enable the wechat pay function on your account on the uos platform.

3. To Reproduce

This part is very important: if you can not provide any reproduce steps, then the problem will be very hard to be recognized.

How to create a Minimal, Reproducible Example

Steps to reproduce the behavior:

  1. run '...'
  2. ...
  3. ...

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 ```shell $ WECHATY_LOG=silly node yourbot.js -> PASTE YOUR FULL(DO NOT ONLY PROVIDE FRAGMENTS) LOG MESSAGES HERE ERR PuppetWeChatBridge onLoad() exception: Error: To continue, enable WeChat Pay first. (node:4144) UnhandledPromiseRejectionWarning: Error: To continue, enable WeChat Pay first. at PuppetWeChat. (/Users/wulong/Desktop/Project/wechatyuos/node_modules/wechaty/dist/src/wechaty.js:271:44) at PuppetWeChat.emit (events.js:315:20) at PuppetWeChat.EventEmitter.emit (domain.js:485:12) at Bridge. (/Users/wulong/Desktop/Project/wechatyuos/node_modules/wechaty-puppet-wechat/dist/src/puppet-wechat.js:202:45) at Bridge.emit (events.js:315:20) at Bridge.EventEmitter.emit (domain.js:485:12) at Bridge.onLoad (/Users/wulong/Desktop/Project/wechatyuos/node_modules/wechaty-puppet-wechat/dist/src/bridge.js:156:18) at processTicksAndRejections (internal/process/task_queues.js:97:5) (Use `node --trace-warnings ...` to show where the warning was created) ```

7. Additional context

Add any other context about the problem here.

huan commented 3 years ago

Yes, you need to enable wechat pay on the UOS platform to log in, which I believe it's required by WeChat.