puppeteer: Win10 x64 always throws timeout
Hey guys, i’m stucked into a problem.
const browser = await puppeteer.launch({ headless: false });
Chromium open but, always throws timeout exception:
TimeoutError: Timed out after 120000 ms while trying to connect to Chrome! The only Chrome revision guaranteed to work is r579032 at Timeout.onTimeout (C:\git\view-render\node_modules\puppeteer\lib\Launcher.js:310:14) at ontimeout (timers.js:482:11) at tryOnTimeout (timers.js:317:5) at Timer.listOnTimeout (timers.js:277:5)
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 15 (2 by maintainers)
Commits related to this issue
- docs(troubleshooting): launching Chromium on Windows Fixes #3186. — committed to aslushnikov/puppeteer by aslushnikov 5 years ago
- docs(troubleshooting): launching Chromium on Windows (#4235) Fixes #3186. — committed to puppeteer/puppeteer by aslushnikov 5 years ago
- docs(troubleshooting): launching Chromium on Windows (#4235) Fixes #3186. — committed to kiku-jw/puppeteer by aslushnikov 5 years ago
I have debug the launcher.js today, found that timeout was happened on
waitForWSEndpoint,Could you please deep check here why
onLineis never called. @aslushnikovedit: seems that in the
readline.jsinput(chromeProcess.stderr) doesn’t emitendcorrectchromeProcess.connectedis false after spawn. Here is some doc from nodejs.org.Got the same error. Chromium is launched with blank page, and nothing happened until timeout error emitted after 30 seconds.And then, chromium will be auto closed.
node version:
v10.11.0pptr version:1.8.0/1.9.0win10 version:1803 / 17134.167demo script:
error message:
I found several similar issues for timeout on win10x64, maybe it should be written in
/docs/troubleshooting.md