Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing content from generated HAR #7

Open
hubitor opened this issue Jan 11, 2019 · 3 comments
Open

Missing content from generated HAR #7

hubitor opened this issue Jan 11, 2019 · 3 comments

Comments

@hubitor
Copy link

hubitor commented Jan 11, 2019

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 #5, I'm getting the same result.

@kendfss
Copy link

kendfss commented Feb 9, 2022

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

@hubitor
Copy link
Author

hubitor commented Feb 12, 2022

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.

@bevrard
Copy link

bevrard commented Sep 7, 2023

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

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

No branches or pull requests

3 participants