Skip to content
This repository has been archived by the owner on May 8, 2020. It is now read-only.

hang with request interception + ignoreHTTPSErrors #150

Closed
rymdhund opened this issue Sep 26, 2018 · 6 comments
Closed

hang with request interception + ignoreHTTPSErrors #150

rymdhund opened this issue Sep 26, 2018 · 6 comments

Comments

@rymdhund
Copy link
Contributor

This hangs:

import asyncio
from pyppeteer import launch

async def request_async():
    browser = await launch(
        ignoreHTTPSErrors=True,
        args=['--no-sandbox'],
    )

    async def handle_request(request):
        return await request.continue_()

    page = await browser.newPage()

    await page.setRequestInterception(True)
    page.on('request', lambda req: asyncio.ensure_future(handle_request(req)))

    resp = await page.goto("https://expired.badssl.com/")

loop = asyncio.get_event_loop()
loop.run_until_complete(request_async())

The same puppeteer issue: puppeteer/puppeteer#1159

Possibly related to #69?

Root cause seems to be upstream bug in chromium. Fixed in chromium r588429

Can we update the chromium version?

@miyakogi
Copy link
Owner

In order to update chromium, we need to change network_manager.py (puppeteer/puppeteer@1931cb4).
I will try to port this patch tomorrow.

@rymdhund
Copy link
Contributor Author

I see! Thanks for the good work!

@miyakogi
Copy link
Owner

Updated chromium to r588429 on dev branch.

@rymdhund
Copy link
Contributor Author

Yes it works now!

@miyakogi
Copy link
Owner

This is an issue tracker for pyppeteer (python fork of puppeteer), not for puppeteer's.
Puppeteer's issue tracker is here.

@phuang0619
Copy link

my apologies

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants