Skip to content

client: Add more context to reqwest errors#165

Open
bbhtt wants to merge 1 commit into
masterfrom
bbhtt/client-reqwest-err-context
Open

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

Conversation

@bbhtt
Copy link
Copy Markdown
Contributor

@bbhtt bbhtt commented Apr 25, 2026

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
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.

1 participant