question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Puppeteer encountered an error while running scenario - TimeoutError on Windows

See original GitHub issue

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 }

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
amjad1233commented, Mar 1, 2022

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

0reactions
amjad1233commented, Mar 1, 2022

BeforeJSError

After Applying Patch :

AfterScreenshot

Read more comments on GitHub >

github_iconTop Results From Across the Web

Puppeteer encountered an error while running scenario
Hi,. After running - backstop reference command getting below timeout error. Also sharing backstop.json file, thanks in advance for your ...
Read more >
How to get around Error: net::ERR_CONNECTION in Puppeteer
You're probably getting timeout either because the page hasn't loaded in 30 seconds or it doesn't have that list. Do you check that...
Read more >
Puppeteer Tutorial | Fixing Common Errors while installing ...
This tutorial troubleshoots common errors in Puppeteer. Using the commands and methods provided based on error scenarios, one can fix the ...
Read more >
Troubleshooting - Puppeteer
The most common cause is a bug in Node.js v14.0.0 which broke extract-zip , the module Puppeteer uses to extract browser downloads into...
Read more >
Debug BrowserStack Automate idle timeout error
When you run a test using BrowserStack Automate, the following error might appear on the Issues Detected tab on the Automate dashboard:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found