-
-
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
Error: execute proxyWechaty(init) error: 503, init() without a ready angular env #758
Comments
06:12:57 ERR PuppetWebBrowser init() exception: Cannot find module 'chromedriver' According to your log, you did not install the Try to run rm -fr node_modules
npm install And I suggest you switch to Docker if you could. |
1、my env is docker and the images version is the lastest |
If you want to run Wechaty by docker, you should NOT do this:
What you should do is to follow the Wiki: https://github.com/Chatie/wechaty/wiki/Docker And here's a good get started tutorial: https://github.com/Chatie/wechaty/wiki/GettingStarted |
uname -a
Linux VM_75_219_centos 3.10.0-327.36.3.el7.x86_64 #1 SMP Mon Oct 24 16:09:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
execute shell,the console output,no such session , error: 503
[root@VM_75_219_centos aiv4]#docker run -t -i -e WECHATY_LOG="$WECHATY_LOG" --rm --volume="$(pwd)":/bot --name test zixia/wechaty:latest main.ts
__ __ _ _
\ \ / /__ ___| |__ __ _| |_ _ _
\ \ /\ / / _ \/ __| '_ \ / _` | __| | | |
\ V V / __/ (__| | | | (_| | |_| |_| |
\_/\_/ \___|\___|_| |_|\__,_|\__|\__, |
|___/
____________________________________________________
https://www.chatie.io
____ _ _
/ ___|___ _ __ _ __ ___ ___| |_(_)_ __ __ _
| | / _ \| '_ \| '_ \ / _ \/ __| __| | '_ \ / _` |
| |__| (_) | | | | | | | __/ (__| |_| | | | | (_| |
\____\___/|_| |_|_| |_|\___|\___|\__|_|_| |_|\__, |
|___/
____ _ _ ____ _
/ ___| |__ __ _| |_| __ ) ___ | |_ ___
| | | '_ \ / _` | __| _ \ / _ \| __/ __|
| |___| | | | (_| | |_| |_) | (_) | |_\__ \
\____|_| |_|\__,_|\__|____/ \___/ \__|___/
Starting Wechaty v0.8.174 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 ts-node main.ts
bound listener: scan
listener logout is not defined.
bound listener: login
bound listener: friend
bound listener: room-join
listener room-leave is not defined.
bound listener: room-topic
listener message is not defined.
listener heartbeat is not defined.
listener error is not defined.
07:40:34 INFO Wechaty v0.8.174 initializing...
07:40:42 WARN PuppetWebBrowserDriver validDriverSession() driver.getSession() timeout(halt?)
07:40:42 WARN PuppetWebBrowserDriver validDriverSession() driver.getSession() exception: validDriverSession() driver.getSession() timeout(halt?)
07:40:42 WARN PuppetWebBrowserDriver getChromeDriver() got invalid driver at ttl 2
07:40:49 WARN PuppetWebBrowserDriver validDriverSession() driver.getSession() timeout(halt?)
07:40:49 WARN PuppetWebBrowserDriver validDriverSession() driver.getSession() exception: validDriverSession() driver.getSession() timeout(halt?)
07:40:49 WARN PuppetWebBrowserDriver getChromeDriver() got invalid driver at ttl 1
07:40:51 WARN PuppetWebBrowserDriver getChromeDriver() driver.{close,quit}() exception: no such session
(Driver info: chromedriver=2.25 (5a911c1ac99b36efadff2041357740080cc27220),platform=Linux 3.10.0-327.36.3.el7.x86_64 x86_64)
07:40:58 WARN PuppetWebWatchdog onFeed(type=SCAN, data=[object Object], timeout=60000) is disabled because state target:`live` inprocess:`true`
https://login.weixin.qq.com/qrcode/wZUtDsw2gA==
07:40:58 WARN PuppetWebWatchdog onFeed(type=HEARTBEAT, data=heartbeat@browser, timeout=60000) is disabled because state target:`live` inprocess:`true`
https://login.weixin.qq.com/qrcode/wZUtDsw2gA==
https://login.weixin.qq.com/qrcode/wZUtDsw2gA==
07:41:32 ERR PuppetWebEvent onServerDisconnect() setTimeout() bridge.init() exception: [Error: execute proxyWechaty(init) error: 503, init() without a ready angular env] |
Thanks for providing the details log output. Could you also provide the following information? Because it will help me to reproduce & diagnose the issue:
|
1、this code clone from haoshiyoubot,the link is : https://github.com/zhhigh/wechaty-test.git [root@VM_75_219_centos aiv4]# WECHATY_LOG=silly docker run -t -i -e WECHATY_LOG="$WECHATY_LOG" --rm --volume="$(pwd)":/bot --name test zixia/wechaty:latest main.ts
__ __ _ _
\ \ / /__ ___| |__ __ _| |_ _ _
\ \ /\ / / _ \/ __| '_ \ / _` | __| | | |
\ V V / __/ (__| | | | (_| | |_| |_| |
\_/\_/ \___|\___|_| |_|\__,_|\__|\__, |
|___/
____________________________________________________
https://www.chatie.io
____ _ _
/ ___|___ _ __ _ __ ___ ___| |_(_)_ __ __ _
| | / _ \| '_ \| '_ \ / _ \/ __| __| | '_ \ / _` |
| |__| (_) | | | | | | | __/ (__| |_| | | | | (_| |
\____\___/|_| |_|_| |_|\___|\___|\__|_|_| |_|\__, |
|___/
____ _ _ ____ _
/ ___| |__ __ _| |_| __ ) ___ | |_ ___
| | | '_ \ / _` | __| _ \ / _ \| __/ __|
| |___| | | | (_| | |_| |_) | (_) | |_\__ \
\____|_| |_|\__,_|\__|____/ \___/ \__|___/
Starting Wechaty v0.8.174 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 ts-node main.ts
bound listener: scan
listener logout is not defined.
bound listener: login
bound listener: friend
bound listener: room-join
listener room-leave is not defined.
bound listener: room-topic
listener message is not defined.
listener heartbeat is not defined.
listener error is not defined.
10:59:36 INFO Wechaty v0.8.174 initializing...
10:59:43 WARN PuppetWebBrowserDriver validDriverSession() driver.getSession() timeout(halt?)
10:59:43 WARN PuppetWebBrowserDriver validDriverSession() driver.getSession() exception: validDriverSession() driver.getSession() timeout(halt?)
10:59:43 WARN PuppetWebBrowserDriver getChromeDriver() got invalid driver at ttl 2
10:59:49 WARN BrowserDriver validDriverExecute() fail: no such session
(Driver info: chromedriver=2.25 (5a911c1ac99b36efadff2041357740080cc27220),platform=Linux 3.10.0-327.36.3.el7.x86_64 x86_64)
10:59:49 WARN PuppetWebBrowserDriver getChromeDriver() got invalid driver at ttl 1
10:59:49 WARN PuppetWebBrowserDriver getChromeDriver() driver.{close,quit}() exception: This driver instance does not have a valid session ID (did you call WebDriver.quit()?) and may no longer be used.
https://login.weixin.qq.com/qrcode/wYABDBqsGQ==
11:00:26 ERR PuppetWebEvent onServerDisconnect() setTimeout() bridge.init() exception: [Error: execute proxyWechaty(init) error: 503, init() without a ready angular env] |
I believe it's duplicated with #603 because I just tested docker image v0.8.174 without any problem: https://login.weixin.qq.com/qrcode/4bJq2OxaOw==
[408] Scan QR Code in above url to login:
https://login.weixin.qq.com/qrcode/4bJq2OxaOw==
[201] Scan QR Code in above url to login:
https://login.weixin.qq.com/qrcode/4bJq2OxaOw==
[200] Scan QR Code in above url to login:
14:59:07 INFO Bot 李卓桓 logined
<李卓桓>:{TEXT}Wechaty login
^CWechaty exit 130 because of SIGINT
Script terminated by Control-C Please open a web browser and try to login wechat to see if you are blocked by Tencent. |
thanks,please close the issue! |
you are welcome! |
Provide Your Network Information
the wechat account in china ,the vps in japan.
the linode
uname -a
Linux li1677-131.members.linode.com 4.9.36-x86_64-linode85 selenium-webdriver & phantomjs-prebuilt not work together under win32 #1 SMP Thu Jul 6 15:31:23 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Run
npm run doctor
orwechaty run doctor
(for docker user), paste output herenode: 7.10.1
npm: 4.6.1
yarn: 0.28.4
Wechaty Doctor
Expected behavior
Actual behavior
Steps to reproduce the behavior (and fixes, if any)
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` setThe text was updated successfully, but these errors were encountered: