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

[docker] Login error #950

Closed
chenquincy opened this issue Nov 2, 2017 · 4 comments
Closed

[docker] Login error #950

chenquincy opened this issue Nov 2, 2017 · 4 comments

Comments

@chenquincy
Copy link

My code

const { Wechaty } = require('wechaty')
Wechaty.instance()
.on('scan', (url, code) => console.log(`Scan QR Code to login: ${code}\n${url}`))
.on('login', user => console.log(`User ${user} logined`))
.on('message', message => console.log(`Message: ${message}`))
.init()

Shell log

Starting Wechaty v0.10.44 with Node.js v7.10.1 ...
Working directory: /bot
Please make sure you had installed all the NPM modules which is depended by your bot script.
Executing babel-node --presets env mybot.js
07:28:02 WARN Wechaty init() DEPRECATED and will be removed after Jun 2018. Use start() instead.
07:28:02 INFO Wechaty v0.10.44 starting...
Scan QR Code to login: 0
https://login.weixin.qq.com/qrcode/AYN742FUZA==
Scan QR Code to login: 408
https://login.weixin.qq.com/qrcode/AYN742FUZA==
Scan QR Code to login: 201
https://login.weixin.qq.com/qrcode/AYN742FUZA==
07:30:38 WARN PuppetWeb initWatchdogForPuppet() dog.on(reset) last food: inited
07:32:31 WARN PuppetWeb initScanWatchdog() on(reset) lastFood: https://login.weixin.qq.com/qrcode/AYN742FUZA==, timeLeft: 0
07:32:39 WARN PuppetWeb initWatchdogForPuppet() dog.on(reset) last food: inited
07:34:41 WARN PuppetWeb initWatchdogForPuppet() dog.on(reset) last food: inited

Problem

It login success on my phone, which showing the web wechat login success. But, i can't see login code 200 in the console, just the warn of PuppetWeb.

@chenquincy
Copy link
Author

The listen of message can't work too.

@huan
Copy link
Member

huan commented Nov 2, 2017

Please try the latest version v0.12. because v
0.10 is buggy.

@chenquincy
Copy link
Author

Yes, it work with v0.12. Thanks.

@huan
Copy link
Member

huan commented Nov 3, 2017

You are welcome.

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