• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

iotaledger / iota-rust-sdk / 26793578453
36%

Build:
DEFAULT BRANCH: develop
Ran 02 Jun 2026 01:57AM UTC
Jobs 1
Files 177
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Jun 2026 02:32PM UTC coverage: 39.318% (+0.3%) from 39.02%
26793578453

push

github

web-flow
fix: surface HTTP status and body when GraphQL response decode fails (#1185)

* fix: surface HTTP status and body when GraphQL response decode fails

run_query and run_query_from_json used reqwest's Response::json(), which
discarded the HTTP status and body on a parse failure, leaving callers with
an opaque "expected value at line 1 column 1" decode error.

Both methods now read the response via a shared post_query helper that checks
the status and decodes the bytes explicitly. Non-2xx responses and JSON decode
failures are reported with the request URL, HTTP status (code + reason) and a
truncated, UTF-8-lossy body via the new Error::http / Error::decode
constructors (and a new Kind::Http variant).

Closes #1182

* fix: avoid duplicating error message in cause chain

Error::source() returned the inner error directly, whose own message is
already rendered inline by Display. Cause-chain formatters (anyhow/eyre
`{:?}`) therefore printed that message twice — once in the Display line and
again under "Caused by".

Expose only the underlying cause from source() so the message appears exactly
once while deeper sub-causes remain in the chain. Display (used by the FFI
bindings via to_string()) is unchanged.

* remove extra type qualifier

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Thibault Martinez <thibault@iota.org>

85 of 87 new or added lines in 2 files covered. (97.7%)

18 existing lines in 4 files now uncovered.

8852 of 22514 relevant lines covered (39.32%)

9560.85 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
89.26
6.21% crates/iota-sdk-graphql-client/src/client.rs

Coverage Regressions

Lines Coverage ∆ File
6
70.02
-1.06% crates/iota-sdk-types/src/object.rs
5
93.41
-5.49% crates/iota-sdk-graphql-client/src/api/dry_run.rs
4
80.0
-2.5% crates/iota-sdk-types/src/lib.rs
3
76.19
-0.48% crates/iota-sdk-types/src/crypto/signature.rs
Jobs
ID Job ID Ran Files Coverage
1 nextest - 26793578453.1 02 Jun 2026 01:57AM UTC 177
39.32
GitHub Action Run
Source Files on build 26793578453
  • Tree
  • List 177
  • Changed 9
  • Source Changed 2
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26793578453
  • 3232d082 on github
  • Prev Build on develop (#26671024068)
  • Next Build on develop (#26859154640)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc