We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33a1771 commit 356ae43Copy full SHA for 356ae43
node/src/utils/rpc_client.rs
@@ -255,7 +255,13 @@ impl HttpRPCClient {
255
.json(payload)
256
.send()
257
.await
258
- .map_err(|e| anyhow::anyhow!("Failed to send HTTP request: {e}"))?;
+ .map_err(|e| {
259
+ if e.is_timeout() {
260
+ anyhow::anyhow!("HttpRPCClient: request timed out: {e}")
261
+ } else {
262
+ anyhow::anyhow!("HttpRPCClient: failed to send HTTP request: {e}")
263
+ }
264
+ })?;
265
266
if response.status() == http::StatusCode::UNAUTHORIZED {
267
tracing::debug!("HttpRPCClient 401 error, recreating client");
0 commit comments