deserialize error on `get_build_log` response
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
Start with the get_build_log response implementation in azure_devops_rust_api/src/build/mod.rs around lines 4580-4593, then inspect the panic site in Tools/pb/src/cmd_trigger.rs:222. Reproduce the response using the non-JSON build-log text shown in the issue and trace the generated deserialization path. Done means get_build_log can handle this response without a serde_json conversion error or panic.
Written by the indexing model from the issue text.
Description
I am trying to get the logs of a build using get_build_log, but I get the following error:
hread 'main' panicked at Tools\pb\src\cmd_trigger.rs:222:34:
called `Result::unwrap()` on an `Err` value: Error { context: Full(Custom { kind: DataConversion, error: Error("expected value", line: 1, column: 1) }, "Failed to deserialize response:\n============================================================================== \r\nTask : Pull Request Validation\r\nDescription : OneBranch Policy Validation\r\nVersion : 1.0.141099\r\nAuthor : Microsoft Corporation\r\n============================================================================== \r\n
Looking at the Impl Response for get_build_log, it looks like its running serde_json -> String when the data in the log is not a json
https://github.com/microsoft/azure-devops-rust-api/blob/44af69f5df3cee2d05619af501c985885f0e702a/azure_devops_rust_api/src/build/mod.rs#L4580C13-L4593C14
Example output:
==============================================================================
Task : Pull Request Validation
Description : OneBranch Policy Validation
Version : 1.0.141099
Author : Microsoft Corporation
==============================================================================
It seems like there is something in the autogeneration that needs to be aware its not a json and therefore not run serde_json::from_slice on it?
- Dominant language
- Rust
- Stars
- 76
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/azure-devops-rust-api
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
microsoft/azure-devops-rust-api#835 · 4 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
microsoft/azure-devops-rust-api#552 · 1 reaction ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 30/100
microsoft/azure-devops-rust-api#309 · 1 comment · 2 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
microsoft/azure-devops-rust-api#181 · 4 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
microsoft/azure-devops-rust-api#74 · 3 comments ·
All issues in microsoft/azure-devops-rust-api
Similar issues
-
RUSTSEC-2026-0348: Brotli certificate decompression can allocate up to 1 GiB before authenticationOpen
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
-
core: Amount::from_str panics on values above 21M BTC instead of returning an errorPossibly taken @bhuvan-somisetty claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
crate: spate-s3
Difficulty 2/5 Half a day Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
write_iceberg ignores the table's write.parquet.compression-codec propertyPossibly taken @YuangGao claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Eventual-Inc/Daft#7606 ·
Maintainers usually reply within 1 day