puppeteer-har icon indicating copy to clipboard operation
puppeteer-har copied to clipboard

Missing content from generated HAR

Open hubitor opened this issue 6 years ago • 3 comments

I'm using the code from the example to generate a HAR for a specific page. The generated HAR is ~40 KB. When I use browsermob-proxy in python for the same page the generated HAR is ~1.5 MB. At least 1 html file is missing from the generated HAR from puppeteer-har. Why is this? Is there a maybe an option to avoid it? Even if use a wait function like in https://github.com/Everettss/puppeteer-har/issues/5, I'm getting the same result.

hubitor avatar Jan 11 '19 10:01 hubitor

Hey @hubitor, did you try removing the asynchronous parts from your script or get it to work in the end?

kendfss avatar Feb 09 '22 19:02 kendfss

Hey @kendfss : It's been a long a time since then. I don't remember anymore, but I think it didn't work since I would have reported it here.

hubitor avatar Feb 12 '22 17:02 hubitor

await this.har.start({ path: `${flow.title}.har`, saveResponse: true, captureMimeTypes: ['application/font-sfnt','application/octet-stream', 'image/svg+xml', 'application/json','application/json; charset=UTF-8'] });

With this I get all answers

bevrard avatar Sep 07 '23 13:09 bevrard