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

CANT RUN THE WECHATY-GETTING-STARTED, PUPPETWEBROWSER valid() getSession() #891

Closed
lonson opened this issue Oct 17, 2017 · 3 comments
Closed

Comments

@lonson
Copy link

lonson commented Oct 17, 2017

Provide Your Network Information

  1. Where is the location of your server? (Out China)
    out china
  2. Which cloud platform(AliYun/Qcloud/DigitalOcean/etc) are you using?
    digitalocean

MY ISSUE IS FOLLOWING
13:23:31 INFO Wechaty v0.7.95 initializing...
13:23:31 WARN PuppetWebBrowserDriver valid() getSession() catch() rejected: Server terminated early with status 127
13:23:31 WARN PuppetWebBrowserDriver valid() driver.getSession() exception: Server terminated early with status 127
13:23:31 WARN PuppetWebBrowserDriver initChromeDriver() got invalid driver
13:23:31 WARN PuppetWebBrowserDriver initChromeDriver() with retry: 1
(node:3946) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Server terminated early with status 127
(node:3946) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
13:23:31 WARN PuppetWebBrowserDriver valid() getSession() catch() rejected: Server terminated early with status 127
13:23:31 WARN PuppetWebBrowserDriver valid() driver.getSession() exception: Server terminated early with status 127
13:23:31 WARN PuppetWebBrowserDriver initChromeDriver() got invalid driver
13:23:31 WARN PuppetWebBrowserDriver initChromeDriver() with retry: 2
(node:3946) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Server terminated early with status 127
13:23:31 WARN PuppetWebBrowserDriver valid() getSession() catch() rejected: Server terminated early with status 127
13:23:31 WARN PuppetWebBrowserDriver valid() driver.getSession() exception: Server terminated early with status 127
13:23:31 WARN PuppetWebBrowserDriver initChromeDriver() got invalid driver
13:23:31 WARN PuppetWebBrowserDriver initChromeDriver() with retry: 3
(node:3946) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Error: Server terminated early with status 127

Run npm run doctor or wechaty run doctor(for docker user), paste output here

GNU nano 2.3.1 文件: /root/.npm/_logs/2017-10-17T05_26_41_133Z-debug.log

0 info it worked if it ends with ok
1 verbose cli [ '/root/.nvm/versions/node/v8.7.0/bin/node',
1 verbose cli '/root/.nvm/versions/node/v8.7.0/bin/npm',
1 verbose cli 'run',
1 verbose cli 'doctor' ]
2 info using npm@5.4.2
3 info using node@v8.7.0
4 verbose stack Error: missing script: doctor
4 verbose stack at run (/root/.nvm/versions/node/v8.7.0/lib/node_modules/npm/lib/run-script.js:151:19)
4 verbose stack at /root/.nvm/versions/node/v8.7.0/lib/node_modules/npm/lib/run-script.js:61:5
4 verbose stack at /root/.nvm/versions/node/v8.7.0/lib/node_modules/npm/node_modules/read-package-json/read-json.js:115:5
4 verbose stack at /root/.nvm/versions/node/v8.7.0/lib/node_modules/npm/node_modules/read-package-json/read-json.js:402:5
4 verbose stack at checkBinReferences_ (/root/.nvm/versions/node/v8.7.0/lib/node_modules/npm/node_modules/read-package-js$
4 verbose stack at final (/root/.nvm/versions/node/v8.7.0/lib/node_modules/npm/node_modules/read-package-json/read-json.j$
4 verbose stack at then (/root/.nvm/versions/node/v8.7.0/lib/node_modules/npm/node_modules/read-package-json/read-json.js$
4 verbose stack at /root/.nvm/versions/node/v8.7.0/lib/node_modules/npm/node_modules/read-package-json/read-json.js:348:12
4 verbose stack at /root/.nvm/versions/node/v8.7.0/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:78:16
4 verbose stack at tryToString (fs.js:514:3)
5 verbose cwd /home/wwwroot/wechaty-getting-started
6 verbose Linux 3.10.0-693.2.2.el7.x86_64
7 verbose argv "/root/.nvm/versions/node/v8.7.0/bin/node" "/root/.nvm/versions/node/v8.7.0/bin/npm" "run" "doctor"
8 verbose node v8.7.0
9 verbose npm v5.4.2
10 error missing script: doctor
11 verbose exit [ 1, true ]

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` set
# PASTE FULL LOG OUTPUT AT HERE:


@huan
Copy link
Member

huan commented Oct 17, 2017

Please try to use the latest version v0.10 or above.

@huan huan closed this as completed Oct 17, 2017
@lonson
Copy link
Author

lonson commented Oct 17, 2017

which one use the latest version?

@huan
Copy link
Member

huan commented Oct 18, 2017

@lijiarui Could you please update your starter project to use v0.10?

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