Skip to content

Include full error chain in procedure HTTP request errors#4610

Open
Shiven0504 wants to merge 2 commits intoclockworklabs:masterfrom
Shiven0504:fix/http-error-chain
Open

Include full error chain in procedure HTTP request errors#4610
Shiven0504 wants to merge 2 commits intoclockworklabs:masterfrom
Shiven0504:fix/http-error-chain

Conversation

@Shiven0504
Copy link
Contributor

@Shiven0504 Shiven0504 commented Mar 11, 2026

Summary

When an HTTP request fails inside a procedure, the error message only shows something like "error sending request for url (https://...)" with no details about what actually went wrong.

This change walks the full error chain so the message includes the root cause — things like DNS failures, connection refused, timeouts, etc.

Walk the `source()` chain of `reqwest::Error` when converting to
`NodesError::HttpError`, so users see the underlying cause (DNS failure,
connection refused, timeout, TLS error, etc.) instead of just the
opaque top-level "error sending request for url" message.

Fixes clockworklabs#4608
Copy link
Contributor

@gefjon gefjon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a big improvement, thanks!

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.

HTTP requests frequently fail with no information as to why

2 participants