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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen it multiple times and found good public repro url, on wikipedia there's no request/response event for the main logo, it's an image referenced by a stylesheet and it never shows up in either page.on('request') or page.on('response'). For me it happens more often with SSL resources.
url that doesn't show up: https://en.wikipedia.org/static/images/project-logos/enwiki-2x.png
What is the expected result?
Expect to see https://en.wikipedia.org/static/images/project-logos/enwiki-2x.png as one of the requests from the page (the image shows up in the browser and the request is visible in the native devtools)
What happens instead?
There's no event for it.
The text was updated successfully, but these errors were encountered:
Puppeteer emulates a 800x600 mobile viewport by default with a DPR of 1.0. When you load https://en.wikipedia.org/wiki/Lion in chrome and emulate that device, you'll see that enwiki-2x.png doesn't load.
You'll need to emulate a DPR of 2 for their responsive CSS to load the image:
BTW, your code doesn't look like pptr v1.1.0. setRequestInterceptionEnabled was renamed to setRequestInterception a while ago and request/response.url are not methods.
@ebidel - thank you, adding deviceScaleFactor: 2 does solve this problem.
Sorry about the code example, I do use 1.1.0 but I copied the example from another issue here and failed to notice that it was the older syntax.
Is this issue related to the headless setting? I know for sure that when it was happening I changed the headless setting to false and inspected the image/network and saw the correct enwiki-2x.png appear.
Steps to reproduce
I've seen it multiple times and found good public repro url, on wikipedia there's no request/response event for the main logo, it's an image referenced by a stylesheet and it never shows up in either
page.on('request')
orpage.on('response')
. For me it happens more often with SSL resources.url that doesn't show up:
https://en.wikipedia.org/static/images/project-logos/enwiki-2x.png
code that references it:
Tell us about your environment:
What steps will reproduce the problem?
Please include code that reproduces the issue.
What is the expected result?
Expect to see
https://en.wikipedia.org/static/images/project-logos/enwiki-2x.png
as one of the requests from the page (the image shows up in the browser and the request is visible in the native devtools)What happens instead?
There's no event for it.
The text was updated successfully, but these errors were encountered: