Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page throws timeout exception only in headless mode #2963

Closed
yadue opened this Issue Jul 27, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@yadue
Copy link

yadue commented Jul 27, 2018

Steps to reproduce

Tell us about your environment:

What steps will reproduce the problem?

  const browser = await puppeteer.launch({
    headless: true,
  });

  const page = await browser.newPage();
  await page.goto("https://www.michaelkors.eu/en_PL/cotton-polo-shirt/_/R-CU85FGVC93?color=2199", {timeout: 30000});
  console.log(await page.content());

What is the expected result?
Promise does not throw "Navigation Timeout Exceeded" no matter if using headless or non-headless mode.

What happens instead?
That url throws Promise throws "Navigation Timeout Exceeded" but only in headless mode.

Similar to:
#1922

@aslushnikov

This comment has been minimized.

Copy link
Contributor

aslushnikov commented Sep 5, 2018

If you run your script with DEBUG=*session node a.js (a.js is the name of the script), you'll see
that server decided not to respond for headless request.

P.S. 30seconds is not enough anyway - headful loads the page in 1 minute for me.

@aslushnikov aslushnikov closed this Sep 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.