react-snap
react-snap copied to clipboard
snap execution error: TimeoutError: Timed out after 30000 ms while trying to connect to Chrome
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
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.
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.
Was there any resolution to this issue?