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.

[Bug]: goto hangs on headless: false

See original GitHub issue

Bug description

Steps to reproduce the problem: (it works without headless: false)

  1. launch puppeteer with headless
const browser = await puppeteer.launch({
      headless: false,
});
  1. use goto
const [page] = await browser.pages();
await page.goto(`http://localhost:5678/workflows/demo`);

Puppeteer version

18.1.0

Node.js version

v16.17.1

npm version

8.15.0

What operating system are you seeing the problem on?

Windows

Relevant log output

D:\test\node_modules\puppeteer\lib\cjs\puppeteer\common\LifecycleWatcher.js:167
    return new Errors_js_1.TimeoutError(errorMessage);
           ^

    at LifecycleWatcher._LifecycleWatcher_createTimeoutPromise (D:\test\node_modules\puppeteer\lib\cjs\puppeteer\common\LifecycleWatcher.js:167:12)
    at async Frame.waitForNavigation (D:\test\node_modules\puppeteer\lib\cjs\puppeteer\common\Frame.js:272:23)
    at async CDPPage.waitForNavigation (D:\test\node_modules\puppeteer\lib\cjs\puppeteer\common\Page.js:1146:16)
    at async Function.start (D:\test\dist\src\n8n.js:87:9)
    at async handleDocumentations (D:\test\dist\src\index.js:17:17)

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:23 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
OrKoNcommented, Nov 4, 2022

are you using puppeteer 19.2.2?

0reactions
lublakcommented, Nov 7, 2022

@OrKoN unfortunately not. As soon as I go into the headless: false it hangs. Also with version 19.2.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why puppeteer page.goto() hangs? - Stack Overflow
I'm launching Puppeteer without any arguments, except headless: false . Why is await page.goto() method so problematic? It keeps giving me all ...
Read more >
Getting Started with Headless Chrome - Chrome Developers
It's a way to run the Chrome browser in a headless environment. Essentially, running Chrome without chrome! It brings all modern web platform ......
Read more >
Puppeteer | Puppeteer
Puppeteer runs in headless mode by default, but can be configured to run in full (non-headless) ... await page.goto('https://developers.google.com/web/');
Read more >
Puppeteer documentation - DevDocs
If this option is true , the headless option will be set false . ... <Error>. Emitted when the page crashes. NOTE error...
Read more >
Puppeteer causes Firefox to freeze because stdout/stderr ...
Bug 1734208 - [remote] Ignore stdout in Puppeteer if dumpio isn't used. ... (async () => { const browser = await puppeteer.launch({ 'headless':...
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