-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[ci] execute proxyWechaty(init) error: 503, init() without a ready angular env #329
Comments
@zixia bro , i had exprience this problem too , it seems docker's network is unstable. ping wx.qq.com , it's ok
ping qq.com , it's bad address
ping baidu.com , it's bad address also. then, i cat /etc/resolv.conf
even more, i sepecify dns on docker run container with
the problem still the same as above.(qq.com and baidu.com is bad address) |
route table
can ping telcom dns
lookup wx.qq.com at telcom dns
53 port is blocked from docker. but it can reach the port 53 at docker host (a mac os)
and then i restart docker , everything it ok now. |
Thanks bro, that's very useful information about this problem. It looks like the bug is related with docker? Travis CI almost never pass now, but circle CI works without any problem with the same code base. |
in my case , maybe shadow socks change the docker's net configuration, but i’m not sure , i will keep eyes on this issue
… 在 2017年3月28日,下午12:20,Huan LI ***@***.***> 写道:
Thanks bro, that's very useful information about this problem.
It looks like the bug is related with docker? Travis CI almost never pass now, but circle CI works without any problem with the same code base.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#329 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAJAm2lwvZ2oqhA0wt8ueZMx1-6Lp8igks5rqIp-gaJpZM4MeBWw>.
|
Getting same issue on local bot. Restarting docker or computer doesn't help |
@xinbenlv When this issue happens, it means that the Angular.js is not ready inside the Browser. Wechaty will open a browser when it starts, then inject a JavaScript Closure into the Browser, and the Closure is in charge of doing the Hook Jobs. After the injection, the Closure will check for the Angular.js environment. If it does not exist, then this Error will be thrown. |
if angular.js doesnt exist, how do we fix it ?
On Thu, Jun 1, 2017 at 22:38 Huan LI ***@***.***> wrote:
@xinbenlv <https://github.com/xinbenlv> When this issue happens, it means
that the Angular.js is not ready inside the Browser.
Wechaty will open a browser when it starts, then inject a JavaScript
Closure into the Browser, and the Closure is in charge of doing the Hook
Jobs.
After the injection, the Closure will check for the Angular.js
environment. If it does not exist, then this Error will be thrown.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#329 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAnFRYaMk169CGJkam2d42zgAjCGWF71ks5r_szSgaJpZM4MeBWw>
.
--
Zainan Victor Zhou, 周载南
Senior Software Engineer, Tech Lead at Google
650-336-5691
|
To fix it, we must make sure the Angular.js is loaded as expected. e.g. this issue will happen when:
If the error is permanent, then the problem must be solved before fix this issue. |
once i had this problem it fixed itself after wechaty updated |
Without changing anything, the error no longer exist |
feel free to close this issue |
@xinbenlv Glad to hear that. This issue will continue monitoring the problem because it can not reproduce but always appear here or there. |
I should be observed and linux operating system or kernel version. I can run the ubuntu system, but can not run under centos7.2. ubuntu
centos
|
I end up creating a new account to be used as bot, but I presume after waiting for a few days this problem should resolve itself for the old blocked account |
This issue should be fixed at v0.10 or above. |
不行啊,docker运行还是会报这个错 |
Potential Possible Solutions:
initAsync
to replaceinit
in WechatyBro, and retry 3 times, wait 300ms each time.The text was updated successfully, but these errors were encountered: