message say to self() doesn't delivery to the wechat phone app
Created by: alamusi
Provide Your Network Information
-
Where is the location of your server? (i.e. City, or In/Out China) United States
-
Which cloud platform(AliYun/Qcloud/DigitalOcean/etc) are you using? AWS
npm run doctor
or wechaty run doctor
(for docker user), paste output here
Run - Wechaty version: #git[7adaf55c]
- Linux x64 version 4.9.60-linuxkit-aufs memory 129/1999 MB
- Docker: true
- Node version: v9.8.0
- Tcp IPC TEST: PASS
Expected behavior
message say to self() should be delivered to the phone
Actual behavior
the 'message' event is triggered on the server side, but wechat app on the phone does not receive the message
Steps to reproduce the behavior (and fixes, if any)
.on('login', user => user.say('wechaty logined'))
or
Wechaty.instance().self().say('talking to myself')
Full Output Logs
$ WECHATY_LOG=silly npm run ts-node mybot.ts
# or
$ WECHATY_LOG=silly node dist/mybot.js
Show Logs
### Paste the full output logs here with `WECHATY_LOG=silly` set# PASTE FULL LOG OUTPUT AT HERE:
https://login.weixin.qq.com/qrcode/IcPq0KSvKA==
[0] Scan QR Code above url to log in:
04:08:14 VERB Profile set(cookies, [object Object],[object Object],[object Object])
04:08:14 VERB Profile save() file: null
04:08:14 VERB Profile save() no file, NOOP
04:08:15 SILL PuppetWebEvent onLog(checkScan() code:0 url:https://login.weixin.qq.com/qrcode/IcPq0KSvKA== scanCode:0)
04:08:16 SILL PuppetWebEvent onLog(checkScan() code:0 url:https://login.weixin.qq.com/qrcode/IcPq0KSvKA== scanCode:0)
04:08:17 SILL PuppetWebEvent onLog(checkScan() code:0 url:https://login.weixin.qq.com/qrcode/IcPq0KSvKA== scanCode:0)
04:08:18 SILL PuppetWebEvent onLog(checkScan() code:201 url:https://login.weixin.qq.com/qrcode/IcPq0KSvKA== scanCode:0)
04:08:18 SILL PuppetWebEvent onLog(checkScan() - code change detected: from 0 to 201)
04:08:18 VERB PuppetWebEvent onScan({code: 201, url: https://login.weixin.qq.com/qrcode/IcPq0KSvKA==})
04:08:18 SILL StateSwitch <Puppet> off() is false
04:08:18 VERB Profile set(cookies, [object Object],[object Object],[object Object])
04:08:18 VERB Profile save() file: null
04:08:18 VERB Profile save() no file, NOOP
04:08:18 SILL PuppetWeb initWatchdogForPuppet() dog.on(feed, food={type=scan, data=[object Object]})
04:08:18 SILL Wechaty memoryCheck() free: 218 MB, require: 4 MB
https://login.weixin.qq.com/qrcode/IcPq0KSvKA==
[201] Scan QR Code above url to log in:
04:08:19 SILL PuppetWebEvent onLog(checkScan() code:201 url:https://login.weixin.qq.com/qrcode/IcPq0KSvKA== scanCode:201)
04:08:20 SILL PuppetWebEvent onLog(checkScan() code:201 url:https://login.weixin.qq.com/qrcode/IcPq0KSvKA== scanCode:201)
04:08:21 SILL PuppetWebEvent onLog(checkScan() code:201 url:https://login.weixin.qq.com/qrcode/IcPq0KSvKA== scanCode:201)
04:08:22 SILL PuppetWebEvent onLog(checkScan() code:201 url:https://login.weixin.qq.com/qrcode/IcPq0KSvKA== scanCode:201)
04:08:22 SILL PuppetWebEvent onUnload()
04:08:22 SILL PuppetWebEvent onLog(event unload)
04:08:23 VERB PuppetWebBridge initPage() on(load) https://web.wechat.com/
04:08:23 SILL StateSwitch <PuppetWebBridge> off() is false
04:08:23 VERB PuppetWebBridge readyAngular()
04:08:23 VERB PuppetWebBridge inject()
04:08:23 SILL PuppetWebBridge inject() eval(Wechaty) return code[200] message[WechatyBro Inject Done]
04:08:23 SILL PuppetWebBridge proxyWechaty(init)
04:08:23 SILL PuppetWebEvent onLog(login(page refresh))
04:08:23 VERB PuppetWebEvent onLogin(page refresh, 30)
04:08:23 SILL StateSwitch <Puppet> off() is false
04:08:23 VERB PuppetWebBridge getUserName()
04:08:23 SILL PuppetWebBridge proxyWechaty(getUserName)
04:08:23 SILL PuppetWebEvent onLog(init() scanCode: null)
04:08:23 SILL PuppetWebEvent onDing(heartbeat@browser)
04:08:23 SILL PuppetWeb initWatchdogForPuppet() dog.on(feed, food={type=undefined, data=heartbeat@browser})
04:08:23 SILL Wechaty memoryCheck() free: 205 MB, require: 4 MB
04:08:23 SILL PuppetWebEvent onLog(inited!. ;-D)
04:08:23 SILL PuppetWebBridge inject() Wechaty.init() return code[200] message[WechatyBro Init Succ]
04:08:23 VERB PuppetWebBridge ding(ding() OK!)
04:08:23 SILL PuppetWebBridge proxyWechaty(ding , ding() OK!)
04:08:23 VERB PuppetWebEvent onLogin() browser not fully loaded(ttl=30), retry later
04:08:23 SILL PuppetWebBridge evaluate()
04:08:23 SILL PuppetWebEvent onLogin() innerHTML:
<canvas style="position:absolute;top:0;left:0;bottom:0;right:0;z-index:-1;width:100%;height:100%;" id="heroCanvas"></canvas>
<!--[if lt IE 8]>
<p class="browsehappy">
你正在使用一个<strong>过时</strong>的浏览器。请<a class="link" href="http://browsehappy.com" target="_blank">升级你的浏览器</a>以查看微信网页版。</p>
</p>
<![endif]-->
<!--BEGIN login-->
<!-- ngIf: false -->
<!--END login-->
<!--BEGIN main-->
<div class="main">
<div class="main_inner" ng-right-click="showC
04:08:23 SILL PuppetWebEvent onLog(recv ding)
04:08:23 SILL PuppetWebBridge inject() ding success
04:08:23 VERB PuppetWebBridge clickSwitchAccount()
04:08:23 VERB PuppetWebBridge clickSwitchAccount() listXpath()
04:08:24 SILL PuppetWebEvent onLog(checkScan() - already login, no more check, and return(only))
04:08:24 VERB PuppetWebEvent onLogin(page refresh, 29)
04:08:24 SILL StateSwitch <Puppet> off() is false
04:08:24 VERB PuppetWebBridge getUserName()
04:08:24 SILL PuppetWebBridge proxyWechaty(getUserName)
04:08:24 SILL PuppetWebEvent bridge.getUserName: @d5debf193fb7154416a82830922aa885576c3426b86e657f5e4600a431281eb0
04:08:24 SILL Contact constructor(@d5debf193fb7154416a82830922aa885576c3426b86e657f5e4600a431281eb0)
04:08:24 SILL Contact get contact via PuppetWeb
04:08:24 SILL PuppetWebBridge getContact() retryPromise: attampt 1/35 time for timeout 306250
04:08:24 SILL PuppetWebBridge proxyWechaty(getContact , @d5debf193fb7154416a82830922aa885576c3426b86e657f5e4600a431281eb0)
04:08:24 SILL Contact contactGetter(@d5debf193fb7154416a82830922aa885576c3426b86e657f5e4600a431281eb0) resolved
04:08:24 SILL PuppetWebEvent onLogin() user Alamusi logined
04:08:24 SILL StateSwitch <Puppet> on() is true
04:08:24 VERB Profile set(cookies, [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object])
04:08:24 VERB Profile save() file: null
04:08:24 VERB Profile save() no file, NOOP
04:08:24 VERB PuppetWeb readyStable()
04:08:24 SILL PuppetWeb readyStable() stable() counter=-1
04:08:24 VERB Cotnact findAll({ name: /.*/ })
04:08:24 SILL PuppetWebBridge proxyWechaty(contactFind , (function (c) { return /.*/.test(c.NickName) }))
04:08:24 SILL Contact constructor(@25bc7fc5ff54a52e9f23177a6a2e8c80adabe72cbb583d8409f72b974c0ef5f8)
04:08:24 SILL Contact constructor(@ff0a2a6b007bc0c4430bec1b7f2f88dd)
04:08:24 SILL Contact constructor(@6eeeaff61695edfcec07b9f43d235537)
04:08:24 SILL Contact constructor(weixin)
04:08:24 SILL Contact get contact via PuppetWeb
04:08:24 SILL PuppetWebBridge getContact() retryPromise: attampt 1/35 time for timeout 306250
04:08:24 SILL PuppetWebBridge proxyWechaty(getContact , @25bc7fc5ff54a52e9f23177a6a2e8c80adabe72cbb583d8409f72b974c0ef5f8)
04:08:24 SILL Contact get contact via PuppetWeb
04:08:24 SILL PuppetWebBridge getContact() retryPromise: attampt 1/35 time for timeout 306250
04:08:24 SILL PuppetWebBridge proxyWechaty(getContact , @ff0a2a6b007bc0c4430bec1b7f2f88dd)
04:08:24 SILL Contact get contact via PuppetWeb
04:08:24 SILL PuppetWebBridge getContact() retryPromise: attampt 1/35 time for timeout 306250
04:08:24 SILL PuppetWebBridge proxyWechaty(getContact , @6eeeaff61695edfcec07b9f43d235537)
04:08:24 SILL Contact get contact via PuppetWeb
04:08:24 SILL PuppetWebBridge getContact() retryPromise: attampt 1/35 time for timeout 306250
04:08:24 SILL PuppetWebBridge proxyWechaty(getContact , weixin)
04:08:24 SILL Contact contactGetter(@25bc7fc5ff54a52e9f23177a6a2e8c80adabe72cbb583d8409f72b974c0ef5f8) resolved
04:08:24 SILL Contact contactGetter(@ff0a2a6b007bc0c4430bec1b7f2f88dd) resolved
04:08:24 SILL Contact contactGetter(@6eeeaff61695edfcec07b9f43d235537) resolved
04:08:24 SILL Contact contactGetter(weixin) resolved
04:08:25 SILL PuppetWeb readyStable() stable() counter=4
04:08:25 VERB Cotnact findAll({ name: /.*/ })
04:08:25 SILL PuppetWebBridge proxyWechaty(contactFind , (function (c) { return /.*/.test(c.NickName) }))
04:08:25 VERB PuppetWeb readyStable() stable() READY counter=4
User {
"id": "@d5debf193fb7154416a82830922aa885576c3426b86e657f5e4600a431281eb0",
"rawObj": {
"RemarkPYQuanPin": "",
"RemarkPYInitial": "",
"PYInitial": "",
"PYQuanPin": "",
"Uin": 1415799182,
"UserName": "@d5debf193fb7154416a82830922aa885576c3426b86e657f5e4600a431281eb0",
"NickName": "Alamusi",
"HeadImgUrl": "/cgi-bin/mmwebwx-bin/webwxgeticon?seq=1501071953&username=@d5debf193fb7154416a82830922aa885576c3426b86e657f5e4600a431281eb0&skey=@crypt_66d6f1ad_7468a5a31ff7eef3393e7ed64fe112bc",
"RemarkName": "",
"HideInputBarFlag": 0,
"StarFriend": 0,
"Sex": 1,
"Signature": "live free or die trying",
"AppAccountFlag": 0,
"VerifyFlag": 0,
"ContactFlag": 0,
"WebWxPluginSwitch": 0,
"HeadImgFlag": 1,
"SnsFlag": 17,
"MMOrderSymbol": "ALAMUSI",
"stranger": false
},
"obj": {
"id": "@d5debf193fb7154416a82830922aa885576c3426b86e657f5e4600a431281eb0",
"uin": 1415799182,
"name": "Alamusi",
"alias": "",
"sex": 1,
"signature": "live free or die trying",
"star": false,
"stranger": false,
"avatar": "/cgi-bin/mmwebwx-bin/webwxgeticon?seq=1501071953&username=@d5debf193fb7154416a82830922aa885576c3426b86e657f5e4600a431281eb0&skey=@crypt_66d6f1ad_7468a5a31ff7eef3393e7ed64fe112bc",
"official": false,
"special": false
}
} logined
04:08:25 VERB Contact say(wechaty logined)
04:08:25 VERB PuppetWeb self()
04:08:25 SILL Message constructor() SN:0
04:08:25 SILL Contact say() from: Alamusi to: Alamusi content: wechaty logined
04:08:25 SILL PuppetWeb send() destination: @d5debf193fb7154416a82830922aa885576c3426b86e657f5e4600a431281eb0, content: wechaty logined)
04:08:25 SILL PuppetWebBridge proxyWechaty(send , @d5debf193fb7154416a82830922aa885576c3426b86e657f5e4600a431281eb0, wechaty logined)
04:08:25 SILL Message constructor() SN:1
04:08:25 SILL Message ready()
04:08:25 SILL Message ready()
Message: {
"ToUserName": "@d5debf193fb7154416a82830922aa885576c3426b86e657f5e4600a431281eb0",
"Content": "wechaty logined",
"MsgType": 1,
"FromUserName": "@d5debf193fb7154416a82830922aa885576c3426b86e657f5e4600a431281eb0",
"MsgId": "15215189056610901",
"LocalID": "15215189056610901",
"ClientMsgId": "15215189056610901",
"CreateTime": 1521518906,
"MMStatus": 1,
"sendByLocal": true,
"MMAtContacts": "",
"MMSendContent": "wechaty logined",
"MMPeerUserName": "@d5debf193fb7154416a82830922aa885576c3426b86e657f5e4600a431281eb0",
"MMDigest": "wechaty logined",
"MMIsSend": true,
"MMIsChatRoom": false,
"MMActualContent": "wechaty logined",
"MMActualSender": "@d5debf193fb7154416a82830922aa885576c3426b86e657f5e4600a431281eb0",
"MMDigestTime": "4:08",
"MMDisplayTime": 1521518906,
"MMTime": "4:08"
}