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
[bug]Cannot read property 'getUserName' of undefined #772
Comments
Thanks for catching this! I'm looking into it now, it seems that the reason causes this exception is because the login event fired before we init the bridge instance, which will cause Just push a fix to master branch, please let me know if it solved this issue. |
And I noticed that there's a strange message when you run
It seems you can run Wechaty, with this error message outputted? I feel it's wired. |
Hi @binsee, had you tried the latest version? If it does not fix this issue, please let me know. Thanks! |
start again, output:
update: |
about html: <a href="javascript:;" ng-click="qrcodeLogin()" class="button button_default">切换帐号</a> can use:
|
@binsee Yes, I fully agree with you because your implementation can compatible with different language settings. Could you please send a PR to fix this? Thanks! BTW: this button is not always there, so it's ok if wechaty can not find this button. |
I believe this issue should not exist anymore with the latest code because we use the Could you please confirm this? If so, then we will be able to close this issue. |
yes, no reappear. |
Great, thanks! |
Provide Your Network Information
Local operating environment
operating system: Win10 x64
Chrome version: chrome 60.0.3112.113 x32
Wechaty version:
Run
npm run doctor
orwechaty run doctor
(for docker user), paste output herecd example && ts-node ding-dong-bot.ts
Expected behavior
After logging out once, exit the program and start again, by reading the demo.wechaty.json file to get the cookie, log in smoothly, and use all the features normally.
Actual behavior
After the start again, the problem is as follows:
Steps to reproduce the behavior (and fixes, if any)
ding
to the bot, outputERR Bot on(message) exception: Error: no user or no from
and can't send any msg from the bot.test
0.8.178 and lower versions is no such problem.
0.8.179 - 0.8.191 This problem must occur
Suspect that the problem may be caused by 3f7791e
The text was updated successfully, but these errors were encountered: