react-snap icon indicating copy to clipboard operation
react-snap copied to clipboard

snap execution error: TimeoutError: Timed out after 30000 ms while trying to connect to Chrome

Open vovkind opened this issue 6 years ago • 3 comments

Bug Report

Current Behavior A clear and concise description of the behavior.

Unable to execute snap of my local project, getting timeout exception:

[email protected] postbuild c:\Users\XYZ\react-snap-timeout-reproduct react-snap

{ TimeoutError: Timed out after 30000 ms while trying to connect to Chrome! The only Chrome revision guaranteed to work is r609904 at Timeout.onTimeout (c:\Users\Vladimib\Desktop\react-snap-timeout-reproduct\node_modules\puppeteer\lib\Launcher.js:353:14) at ontimeout (timers.js:436:11) at tryOnTimeout (timers.js:300:5) at listOnTimeout (timers.js:263:5) at Timer.processTimers (timers.js:223:10) name: 'TimeoutError' }

Reproducible demo Link to GitHub repository or codesandbox with a demo of the bug behavior.

https://github.com/vovkind/react-snap-timeout-reproduct

Expected behavior/code A clear and concise description of what you expected to happen (or code).

Should work and create HTML snap of the CRA page

Possible Solution

Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.

OS: Windows 10 X64 suspecting that it is the same issue: https://github.com/GoogleChrome/puppeteer/issues/3186

vovkind avatar Dec 15 '18 17:12 vovkind

I can't reproduce it on my machine. This seems to be related to OS. I guess you need to wait until GoogleChrome/puppeteer#3186 resolved. You also can use Docker to workaround.

stereobooster avatar Dec 15 '18 20:12 stereobooster

This issue occurs in production environments from my experience. I haven't found a fix for this yet either...

If you create an ubuntu ec2 instance on AWS you can reproduce the problem.

BriantAnthony avatar Oct 02 '19 04:10 BriantAnthony

Was there any resolution to this issue?

willsmanley avatar Jul 31 '20 01:07 willsmanley