oven-sh/bun · error · TypeError
HTTP3ProtocolError
HTTP3ProtocolError
Error message
HTTP3ProtocolError
What it means
Sentinel variant of the HTTP client Error enum: the HTTP/3 (QUIC) connection or stream violated the protocol (frame/handshake-level error reported by the QUIC stack). Companion to HTTP3HandshakeFailed, which covers only setup failures; consumers map it to network error codes.
Solutions
- Verify client and server HTTP/3 implementations are RFC-compliant and up-to-date
- Check for QUIC version mismatches between endpoints
- Capture a packet trace to identify the specific protocol violation
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src/http/error.rs:84 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16).
Data as JSON: /api/errors/446d0a19941b258e.
Report an issue: GitHub.
Appendix: source
Thrown at src/http/error.rs:84
#[error("UnsupportedRedirectProtocol")]
UnsupportedRedirectProtocol,
#[error("RedirectURLTooLong")]
RedirectURLTooLong,
#[error("RedirectURLInvalid")]
RedirectURLInvalid,
#[error("InvalidRedirectURL")]
InvalidRedirectURL,
#[error("UnexpectedRedirect")]
UnexpectedRedirect,
#[error("ShortRead")]
ShortRead,
#[error("WantRead")]
WantRead,
#[error("WantWrite")]
WantWrite,
#[error("HTTP3HandshakeFailed")]
HTTP3HandshakeFailed,
#[error("HTTP3ProtocolError")]
HTTP3ProtocolError,
#[error("HTTP3HeaderEncodingError")]
HTTP3HeaderEncodingError,
#[error("DNSResolutionFailed")]
DNSResolutionFailed,
#[error("HTTP3StreamReset")]
HTTP3StreamReset,
#[error("HTTP3ContentLengthMismatch")]
HTTP3ContentLengthMismatch,
#[error("FailedToOpenSocket")]
FailedToOpenSocket,
#[error("InvalidCRL")]
InvalidCRL,
#[error("UnsupportedProxyProtocol")]
UnsupportedProxyProtocol,
#[error(transparent)]
Cert(#[from] CertError),
#[error(transparent)]View on GitHub (pinned to 8c5296ac45)