Skip to content

client: Add more context to reqwest errors#165

Merged
barthalion merged 1 commit into
masterfrom
bbhtt/client-reqwest-err-context
May 21, 2026
Merged

client: Add more context to reqwest errors#165
barthalion merged 1 commit into
masterfrom
bbhtt/client-reqwest-err-context

Conversation

@bbhtt

@bbhtt bbhtt commented Apr 25, 2026

Copy link
Copy Markdown
Contributor

The default errors are too vague and does not show the full chain that will help in debugging the issue. This adds a wrapper to walk the full source chain and hopefully add the necessary context. This defaults to showing the URL, which is same as what reqwest does 1.

See 2 for the idea, and 3 for the additional context.

The default errors are too vague and does not show the full chain that
will help in debugging the issue. This adds a wrapper to walk the full
source chain and hopefully add the necessary context. The wrapper
defaults to showing the URL, which is same as what reqwest does [1].

See [2] for the idea, and [3] for the additional context.

[1]: https://github.com/seanmonstar/reqwest/blob/5f9c231502d827bdd19864277187b133bb746f2f/src/error.rs#L279-L281
[2]: seanmonstar/reqwest#2342
[3]: https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/work_items/1969
@barthalion barthalion merged commit 40282a0 into master May 21, 2026
12 checks passed
@barthalion barthalion deleted the bbhtt/client-reqwest-err-context branch May 21, 2026 14:13
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

Successfully merging this pull request may close these issues.

2 participants