mandrean / har-rs Goto Github PK
View Code? Open in Web Editor NEWA HTTP Archive format (HAR) serialization & deserialization library, written in Rust.
License: MIT License
A HTTP Archive format (HAR) serialization & deserialization library, written in Rust.
License: MIT License
I would like #20 to be included in a release, please tell me if I can help you.
error: invalid type: floating point 264.50300000033167
, expected i64 at line 1 column 1
har file:
"time":` 264.50300000033167,
error: Error(
Yaml(
Message(
"invalid type: floating point `264.50300000033167`, expected i64",
Some(
Pos {
marker: Marker {
index: 0,
line: 1,
col: 0,
},
path: ".",
},
),
),
),
State {
next_error: None,
backtrace: InternalBacktrace {
backtrace: None,
},
},
)
https://github.com/ahmadnassri/har-spec/blob/master/versions/1.3.md specifies some key fixes to HAR needed if one is dealing with binary APIs - e.g. GRPC.
Would be lovely to have that supported. What do you think?
Currently, for some reason, the CI/CD fails when trying to publish a new release/crate.
I'm noticing some discrepancies between using mandrean/semantic-rs locally, and the exact same version of it remotely.
For example, running mandrean/semantic-rs
locally @ 10cc3d2 results in a bump to 0.6.1
, but in the CI it becomes 0.7.0
.
Needs further investigation.
Hi there,
Nice crate, thanks for writing! I'm just picking it up for a project of mine but I'm unsure about one thing. What's the meaning of the charles_status
field on Response
? I'm assuming this is related to Charles - it feels strange to have a field in a generic library crate that's tied to a specific piece of software like that so just wanted to understand. Do you have a specific RFC that describes the format you are coding to? The link on the README goes to wikipedia, which links to an RFC that says 'DO NOT USE' at the top but I have no idea what the reference should be otherwise.
Thanks!
Serde parse error is very vague with errors like the following:
error: missing field `headersSize` at line 1 column 1
or
error: invalid type: boolean `false`, expected a string at line 1 column 1
Ideally serde would send back the real line number and possibly column.
Reading the following .har file fails with the error message error serializing YAML
, even though the file is not a YAML file.
I believe this error is specific to Firefox, as it does not appear when generating .har
files with chromium based browser.
Small example code:
fn main() {
match har::from_path("path of input") {
Ok(spec) => {}
Err(err) => {
println!("Failed to read file: {}", err);
}
}
}
The breaking changes introduced in #8 should be ported to the HAR v1.3 parser as well for consistency.
Move project to Github Actions V2, like I did with https://github.com/mandrean/raven.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.