oven-sh/bun · error · http::Error
Timeout
Timeout
Error message
Timeout
What it means
Generic timeout sentinel for HTTP client operations. Fires when a connect, read, write, or overall request deadline elapses without completion, typically from elapsed idle timeouts on sockets or connect timeouts during TCP/TLS establishment.
Solutions
- Increase the configured timeout value (connectTimeout, idleTimeout) for slow networks or large payloads
- Check network connectivity and server responsiveness
- Implement retry logic with exponential backoff for transient timeout scenarios
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at src/http/error.rs:30 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Timeouts: ETIMEDOUT, deadlines, and hung requests — what actually expires when a request times out.
AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16).
Data as JSON: /api/errors/10cef97c0eeffc50.
Report an issue: GitHub.
Appendix: source
Thrown at src/http/error.rs:30
#[error("HTTP2ContentLengthMismatch")]
HTTP2ContentLengthMismatch,
#[error("HTTP2FrameSizeError")]
HTTP2FrameSizeError,
#[error("HTTP2ProtocolError")]
HTTP2ProtocolError,
#[error("HTTP2FlowControlError")]
HTTP2FlowControlError,
#[error("HTTP2EnhanceYourCalm")]
HTTP2EnhanceYourCalm,
#[error("HTTP2HeaderListTooLarge")]
HTTP2HeaderListTooLarge,
#[error("HTTP2StreamReset")]
HTTP2StreamReset,
#[error("HTTP2GoAway")]
HTTP2GoAway,
#[error("HTTP2CompressionError")]
HTTP2CompressionError,
#[error("Timeout")]
Timeout,
#[error("AbortedBeforeConnecting")]
AbortedBeforeConnecting,
#[error("InvalidURL")]
InvalidURL,
#[error("ERR_TLS_CERT_ALTNAME_INVALID")]
ERR_TLS_CERT_ALTNAME_INVALID,
#[error("ClientAborted")]
ClientAborted,
#[error("HTTP2Unsupported")]
HTTP2Unsupported,
#[error("ConnectionClosed")]
ConnectionClosed,
#[error("DNSResolveFailed")]
DNSResolveFailed,
#[error("ConnectionRefused")]
ConnectionRefused,
#[error("TooManyRedirects")]View on GitHub (pinned to 8c5296ac45)