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

puppeteer stops working with some https URLs #3880

Closed
vsemozhetbyt opened this issue Feb 1, 2019 · 14 comments
Closed

puppeteer stops working with some https URLs #3880

vsemozhetbyt opened this issue Feb 1, 2019 · 14 comments
Labels
bug chromium Issues with Puppeteer-Chromium

Comments

@vsemozhetbyt
Copy link
Contributor

'use strict';

const puppeteer = require('puppeteer');

(async function main() {
  try {
    const browser = await puppeteer.launch({ headless: false });
    const [page] = await browser.pages();

    await page.goto('https://example.org/');
  } catch (err) {
    console.error(err);
  }
})();
Error: net::ERR_CONNECTION_CLOSED at https://example.org/
    at navigate (puppeteer\lib\FrameManager.js:101:37)
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
  -- ASYNC --
    at Frame.<anonymous> (puppeteer\lib\helper.js:108:27)
    at Page.goto (puppeteer\lib\Page.js:662:49)
    at Page.<anonymous> (puppeteer\lib\helper.js:109:23)
    at main (test.js:12:16)
    at processTicksAndRejections (internal/process/next_tick.js:81:5)

Error page in the browser window: ERR_CONNECTION_CLOSED.

The same URLs in the desktop browser are OK. Other URLs (google, Github etc) in the puppeteer browser are also OK.

Can anybody reproduce?

@vsemozhetbyt
Copy link
Contributor Author

http protocol pages are also OK.

@orlandobloom19
Copy link

I am not sure , I guess it's because of httpS

@vsemozhetbyt vsemozhetbyt changed the title puppeteer stops working with some URLs puppeteer stops working with some https URLs Feb 1, 2019
@aslushnikov
Copy link
Contributor

@vsemozhetbyt fancy, I can repro on OSX.

@aslushnikov aslushnikov added bug chromium Issues with Puppeteer-Chromium labels Feb 1, 2019
randytarampi added a commit to randytarampi/me that referenced this issue Feb 2, 2019
I need to be able to load `https` assets, like my Gravatar.

Per puppeteer/puppeteer#3880.
@vsemozhetbyt
Copy link
Contributor Author

See also: #3893

@bdrtsky
Copy link

bdrtsky commented Feb 2, 2019

I can confirm and reproduce this. Not sure what is happening here?

@pietmichal
Copy link

pietmichal commented Feb 4, 2019

The version of Chromium used in the current version of puppeteer reports that the page is fetched using "http/1.0" or "http/1.1" instead of "h2" protocol. In my case, the connection reset happens when opening a localhost website that uses http/2 served through node v8. Local page using node v9 is reported as "http/1.0".

@redders6600
Copy link

Can repro on linux.

aslushnikov pushed a commit that referenced this issue Feb 5, 2019
This roll includes:
- https://crrev.com/624492 - Disable sending KeyUpdates by default.

Fixes #3893, #3880
@vsemozhetbyt
Copy link
Contributor Author

This seems fixed in #3909

@aslushnikov
Copy link
Contributor

@vsemozhetbyt thanks! Pushed v1.12.2 to address this.

@mikaelgramont
Copy link

Thanks for the fix (which I confirm as well), much appreciated.

@gselsidi
Copy link

Anybody know how to handle this error? I'm still noticing it in some of my tests I can't reproduce it but I would like the test to fail, but it seems puppeteer just waits and waits until it gets a response! Which sometimes takes upwards to 10 minutes!!

@arcesino
Copy link

Same here. I have a bunch of tests that opens HTTP URLs and some of them are randomly failing. Any chance this could be related with the number of browser instances being run at the same time? I use a browser instance per test and my tests run concurrently which means that I commonly have from 10 to 20 browser instances running at the same time

@avalarh
Copy link

avalarh commented Sep 26, 2020

The issue is present for me in the latest version

@JaiRai0304
Copy link

The issue is present in 19.7.5 version of Puppeteer as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug chromium Issues with Puppeteer-Chromium
Projects
None yet
Development

No branches or pull requests