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

基础运行报错.....我都有点不好意思问了.....汗.... #82

Closed
issmile opened this issue Nov 8, 2016 · 7 comments
Closed

Comments

@issmile
Copy link

issmile commented Nov 8, 2016

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

npm run dev

Expected behavior

运行起例子,Chrome启动了3次就停在那里了,什么情况

Actual behavior

E:\weixin\wechaty>npm run dev

[email protected] dev E:\weixin\wechaty
babel-node ./src/mybot.js

INFO Wechaty v0.5.9 initializing...
[4544:11064:1108/213200:ERROR:mf_helpers.cc(12)] Error in dxva_video_decode_acce
lerator_win.cc on line 345
WARN PuppetWebBrowserDriver valid() driver.getSession() timeout(halt?)
WARN PuppetWebBrowserDriver valid() driver.getSession() exception: valid() drive
r.getSession() timeout(halt?)
WARN PuppetWebBrowserDriver getChromeDriver() got invalid driver
WARN PuppetWebBrowserDriver getChromeDriver() with retry: 1
[5708:16264:1108/213209:ERROR:mf_helpers.cc(12)] Error in dxva_video_decode_acce
lerator_win.cc on line 345
WARN PuppetWebBrowserDriver valid() driver.getSession() timeout(halt?)
WARN PuppetWebBrowserDriver valid() driver.getSession() exception: valid() drive
r.getSession() timeout(halt?)
WARN PuppetWebBrowserDriver getChromeDriver() got invalid driver
WARN PuppetWebBrowserDriver getChromeDriver() with retry: 2
[5000:17748:1108/213219:ERROR:mf_helpers.cc(12)] Error in dxva_video_decode_acce
lerator_win.cc on line 345
WARN PuppetWebBrowserDriver valid() driver.getSession() timeout(halt?)
WARN PuppetWebBrowserDriver valid() driver.getSession() exception: valid() drive
r.getSession() timeout(halt?)
WARN PuppetWebBrowserDriver getChromeDriver() got invalid driver
WARN PuppetWebBrowserDriver getChromeDriver() with retry: 3
[22076:7492:1108/213229:ERROR:mf_helpers.cc(12)] Error in dxva_video_decode_acce
lerator_win.cc on line 345
WARN PuppetWebBrowserDriver valid() driver.getSession() timeout(halt?)
WARN PuppetWebBrowserDriver valid() driver.getSession() exception: valid() drive
r.getSession() timeout(halt?)
WARN PuppetWebBrowserDriver getChromeDriver() got invalid driver
ERR PuppetWebBrowserDriver getChromeDriver() exception: Error: getChromeDriver()
got invalid driver
at BrowserDriver. (E:\weixin\wechaty\node_modules.0.5.9@wechaty
src\puppet-web\browser-driver.ts:145:17)
at next (native)
at fulfilled (E:\weixin\wechaty\node_modules.0.5.9@wechaty\dist\src\puppet-
web\browser-driver.js:4:58)
at run (E:\weixin\wechaty\node_modules.2.4.1@core-js\modules\es6.promise.js
:87:22)
at E:\weixin\wechaty\node_modules.2.4.1@core-js\modules\es6.promise.js:100:
28
at flush (E:\weixin\wechaty\node_modules.2.4.1@core-js\modules_microtask.j
s:18:9)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickDomainCallback (internal/process/next_tick.js:122:9), retry:
4
ERR PuppetWebBrowser init() exception: getChromeDriver() got invalid driver
WARN PuppetWebBrowser quit() exception: Cannot read property 'close' of undefine
d
WARN PuppetWebBrowser driver.quit() exception: Cannot read property 'close' of u
ndefined
ERR PuppetWeb initBrowser() exception: getChromeDriver() got invalid driver
ERR PuppetWeb init() exception: Error: getChromeDriver() got invalid driver
at BrowserDriver. (E:\weixin\wechaty\node_modules.0.5.9@wechaty
src\puppet-web\browser-driver.ts:145:17)
at next (native)
at fulfilled (E:\weixin\wechaty\node_modules.0.5.9@wechaty\dist\src\puppet-
web\browser-driver.js:4:58)
at run (E:\weixin\wechaty\node_modules.2.4.1@core-js\modules\es6.promise.js
:87:22)
at E:\weixin\wechaty\node_modules.2.4.1@core-js\modules\es6.promise.js:100:
28
at flush (E:\weixin\wechaty\node_modules.2.4.1@core-js\modules_microtask.j
s:18:9)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickDomainCallback (internal/process/next_tick.js:122:9)
ERR Wechaty init() exception: getChromeDriver() got invalid driver

Steps to reproduce the behavior (and fixes, if any)

Paste the full output logs here with WECHATY_LOG=silly set

@huan
Copy link
Member

huan commented Nov 8, 2016

please Run npm run doctor, paste output here.

@issmile
Copy link
Author

issmile commented Nov 8, 2016

额,我不会doctor,不会doctor 就跑不起来吗

@issmile
Copy link
Author

issmile commented Nov 8, 2016

node 版本需要大于等于7.00?才能跑?

@huan
Copy link
Member

huan commented Nov 8, 2016

Sort of.

At least u need node v6.9 because Selenium WebDriver v3.0 requires node v6.9 or above to install.

@issmile
Copy link
Author

issmile commented Nov 9, 2016

OK I'm going to learn doctor

@huan
Copy link
Member

huan commented Nov 10, 2016

doctor is just an npm run script.

just run npm run doctor will get the output for you.

@huan
Copy link
Member

huan commented Nov 11, 2016

please test with the latest master. if still has problem, submit a new issue with all the require sections full filled.

have a good weekend!

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