oven-sh/bun · error · TypeError

HTTP3HandshakeFailed

HTTP3HandshakeFailed

Error message

HTTP3HandshakeFailed

What it means

The HTTP/3 (QUIC) TLS handshake failed. Fires when the QUIC connection cannot complete its cryptographic handshake, due to certificate errors, version mismatch, or QUIC transport parameter negotiation failure.

Solutions

  1. Verify the server supports HTTP/3 and has valid TLS certificates configured
  2. Check UDP connectivity and that middleboxes are not blocking QUIC traffic
  3. Fall back to HTTP/2 over TCP when HTTP/3 handshake repeatedly fails
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at src/http/error.rs:82 when the library encounters an invalid state.

Common situations: See trigger scenarios.

Understand the failure class


AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16). Data as JSON: /api/errors/767033aa3ebdab4a. Report an issue: GitHub.

Appendix: source

Thrown at src/http/error.rs:82

    #[error("RequestBodyNotReusable")]
    RequestBodyNotReusable,
    #[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)]

View on GitHub (pinned to 8c5296ac45)