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

har-rs is trying to parse har file as yaml #29

Open
Kalhama opened this issue Apr 3, 2023 · 2 comments
Open

har-rs is trying to parse har file as yaml #29

Kalhama opened this issue Apr 3, 2023 · 2 comments

Comments

@Kalhama
Copy link

Kalhama commented Apr 3, 2023

Reading HAR fails with the error: error: error serializing YAML

I tried multiple webpages and it seems that some work.

Unfortunately I cannot post relevant .har file as it contains some personal information.

I noticed that in source code the har is parsed with serde_yaml though .har is json by spec (https://w3c.github.io/web-performance/specs/HAR/Overview.html#sec-har)

making pull request soon

Edit: Here is PR with fix #30

@ktis
Copy link

ktis commented Jun 1, 2023

I got the same error when I read the har file I got from chrome. I applied a pull request and it solved the problem. Thanks!

@wgreenberg
Copy link

I also ran into this parsing a fairly typical HAR v1.2 file. Why is serde_yaml being used at all in this project? It'd be great to merge this and fix the issue.

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