Skip to content

Conversation

@aslushnikov
Copy link
Contributor

@aslushnikov aslushnikov commented Aug 27, 2017

It turned out that either Network.requestIntercepted or
Network.requestWillBeSent occasionally report encoded URL.
Upstream bug: https://crbug.com/759388

As a workaround, this patch starts decoding URL's when generating request hash.

Fixes #558.

It turned out that either Network.requestIntercepted or
Network.requestWillBeSent occasionally report encoded URL.

This patch starts decoding URL's when generating request hash.

Fixes puppeteer#558.
Copy link
Contributor

@JoelEinbinder JoelEinbinder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I was struggling to figure out what was going on with this bug.

@aslushnikov aslushnikov merged commit e921a1c into puppeteer:master Aug 27, 2017
@aslushnikov aslushnikov deleted the fix-interception branch August 27, 2017 22:09
@pocketjoso
Copy link

pocketjoso commented Sep 2, 2017

I have found another url that breaks in the same way (load never fires) when using setRequestInterceptionEnabled.

Environment

Puppeteer: 0.10.2
Node: 7.10.1.
OS: macOS Sierra

const puppeteer = require('puppeteer');
(async() => {
const browser = await puppeteer.launch({
      ignoreHTTPSErrors: true,
      args: ['--disable-setuid-sandbox', '--no-sandbox']
    })
const page = await browser.newPage()
// with setRequestInterceptionEnabled(true)..
await page.setRequestInterceptionEnabled(true)
// ..page.load never fires for this url.
await page.goto('https://www.studentdebtrelief.us/')
console.log('page load DONE') // never happens
browser.close();
})();

Let me know if you want me to open a new issue for this.

@aslushnikov
Copy link
Contributor Author

@pocketjoso that definitely deserves a new issue, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants