puppeteer-har
puppeteer-har copied to clipboard
Missing content from generated HAR
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.
Hey @hubitor, did you try removing the asynchronous parts from your script or get it to work in the end?
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.
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