BackstopJS icon indicating copy to clipboard operation
BackstopJS copied to clipboard

Puppeteer encountered an error while running scenario - TimeoutError on Windows

Open kunalanurkar opened this issue 6 years ago • 8 comments

Hi,

After running - backstop reference command getting below timeout error. Also sharing backstop.json file, thanks in advance for your help.

COMMAND | Executing core for "reference" clean | backstop_data/bitmaps_reference was cleaned. createBitmaps | Selected 1 of 1 scenarios. CREATING NEW REFERENCE FILE CREATING NEW REFERENCE FILE Puppeteer encountered an error while running scenario "BackstopJS Homepage" TimeoutError: Navigation Timeout Exceeded: 120000ms exceeded Puppeteer encountered an error while running scenario "BackstopJS Homepage" TimeoutError: Navigation Timeout Exceeded: 120000ms exceeded

Run $ backstop test to generate diff report.

  COMMAND | Command "reference" successfully executed in [130.748s]

backstop.json

{ "id": "backstop_default", "viewports": [ { "label": "phone", "width": 320, "height": 480 }, { "label": "tablet", "width": 1024, "height": 768 } ], "scenarios": [ { "label": "BackstopJS Homepage", "cookiePath": "backstop_data/engine_scripts/cookies.json", "url": "https://www.google.com/?hl=ru", "referenceUrl": "https://www.google.com/", "readyEvent": "", "readySelector": "", "delay": 0, "hideSelectors": [], "removeSelectors": [], "hoverSelector": "", "clickSelector": "", "postInteractionWait": 0, "selectors": [], "selectorExpansion": true, "expect": 0, "misMatchThreshold" : 0.1, "requireSameDimensions": true } ], "paths": { "bitmaps_reference": "backstop_data/bitmaps_reference", "bitmaps_test": "backstop_data/bitmaps_test", "engine_scripts": "backstop_data/engine_scripts", "html_report": "backstop_data/html_report", "ci_report": "backstop_data/ci_report" }, "report": ["browser"], "engine": "puppeteer", "engineOptions": { "waitTimeout": 120000, "args": ["--no-sandbox"] }, "asyncCaptureLimit": 5, "asyncCompareLimit": 50, "debug": false, "debugWindow": false }

kunalanurkar avatar Feb 27 '19 08:02 kunalanurkar

I am also facing the same issue.

anurag8263 avatar May 15 '19 08:05 anurag8263

I am facing the same issue. Did anyone find the cause and solution to this problem?

Savi27 avatar Aug 01 '19 05:08 Savi27

I am also having this issue.

stingrayfunk avatar Apr 08 '20 11:04 stingrayfunk

Does this patch fix the issue?

garris avatar Apr 08 '20 15:04 garris

@garris I can confirm the patch works. I tried with one of my projects after applying the patch it wasn't erroring anymore.

amjad1233 avatar Mar 01 '22 03:03 amjad1233

BeforeJSError

After Applying Patch :

AfterScreenshot

amjad1233 avatar Mar 01 '22 03:03 amjad1233

@garris I can confirm the patch works. I tried with one of my projects after applying the patch it wasn't erroring anymore.

Hi @amjad1233, how did you install the patch?

Can you please provide detailed steps?

I'm not a developer.

dandeleon03 avatar Feb 06 '23 13:02 dandeleon03

please get this PR merged 🙏 so a new fixed dockerimage can be build and used

dhpizza avatar Nov 02 '23 13:11 dhpizza