Skip to content

装好chromedriver后,又报错...请大神看下怎么回事.... #79

@issmile

Description

@issmile

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

Expected behavior

Actual behavior

E:\weixin\wechaty>npm run dev

weixinbot@1.0.0 dev E:\weixin\wechaty
babel-node ./src/mybot.js

INFO Wechaty v0.5.0 initializing...
[13996:14764:1108/014929:ERROR:mf_helpers.cc(12)] Error in dxva_video_decode_acc
elerator_win.cc on line 345
WARN PuppetWebBrowserDriver getChromeDriver() exception: session not created exc
eption
from unknown error: Runtime.executionContextCreated has invalid 'context': {"aux
Data":{"frameId":"12648.1","isDefault":true},"id":1,"name":"","origin":"://"}
(Session info: chrome=54.0.2840.71)
(Driver info: chromedriver=2.23.409699 (49b0fa931cda1caad0ae15b7d1b68004acd051
29),platform=Windows NT 10.0.14393 x86_64), retry: 0
WARN PuppetWebBrowserDriver getChromeDriver() with retry: 1
E:\weixin\wechaty\node_modules.3.0.0@selenium-webdriver\lib\promise.js:2497
throw error;
^

SessionNotCreatedError: session not created exception
from unknown error: Runtime.executionContextCreated has invalid 'context': {"aux
Data":{"frameId":"12648.1","isDefault":true},"id":1,"name":"","origin":"://"}
(Session info: chrome=54.0.2840.71)
(Driver info: chromedriver=2.23.409699 (49b0fa931cda1caad0ae15b7d1b68004acd051
29),platform=Windows NT 10.0.14393 x86_64)
at WebDriverError (E:\weixin\wechaty\node_modules.3.0.0@selenium-webdriver
lib\error.js:27:5)
at SessionNotCreatedError (E:\weixin\wechaty\node_modules.3.0.0@selenium-we
bdriver\lib\error.js:214:5)
at Object.checkLegacyResponse (E:\weixin\wechaty\node_modules.3.0.0@seleniu
m-webdriver\lib\error.js:505:15)
at parseHttpResponse (E:\weixin\wechaty\node_modules.3.0.0@selenium-webdriv
er\lib\http.js:509:13)
at doSend.then.response (E:\weixin\wechaty\node_modules.3.0.0@selenium-webd
river\lib\http.js:440:13)
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)
From: Task: WebDriver.createSession()
at Function.createSession (E:\weixin\wechaty\node_modules.3.0.0@selenium-we
bdriver\lib\webdriver.js:776:24)
at Function.createSession (E:\weixin\wechaty\node_modules.3.0.0@selenium-we
bdriver\chrome.js:709:29)
at createDriver (E:\weixin\wechaty\node_modules.3.0.0@selenium-webdriver\in
dex.js:167:33)
at Builder.build (E:\weixin\wechaty\node_modules.3.0.0@selenium-webdriver\i
ndex.js:639:16)
at BrowserDriver. (E:\weixin\wechaty\node_modules.0.5.1@wechaty
src\puppet-web\browser-driver.ts:131:24)
at next (native)
at E:\weixin\wechaty\node_modules.0.5.1@wechaty\dist\src\puppet-web\browser
-driver.js:7:65
at new Promise (E:\weixin\wechaty\node_modules.2.4.1@core-js\modules\es6.pr
omise.js:191:7)
at __awaiter (E:\weixin\wechaty\node_modules.0.5.1@wechaty\dist\src\puppet-
web\browser-driver.js:3:12)
at BrowserDriver.getChromeDriver (E:\weixin\wechaty\node_modules.0.5.1@wech
aty\dist\src\puppet-web\browser-driver.js:65:16)

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "E:\Program Files\nodejs\node.exe" "E:\Program Files\nodejs\
node_modules\npm\bin\npm-cli.js" "run" "dev"
npm ERR! node v6.2.0
npm ERR! npm v3.8.9
npm ERR! code ELIFECYCLE
npm ERR! weixinbot@1.0.0 dev: babel-node ./src/mybot.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the weixinbot@1.0.0 dev script 'babel-node ./src/mybot.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the weixinbot package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! babel-node ./src/mybot.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs weixinbot
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls weixinbot
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! E:\weixin\wechaty\npm-debug.log

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

Paste the full output logs here with WECHATY_LOG=silly set

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions