oven-sh/bun · error · TypeError

HTTP3HeaderEncodingError

HTTP3HeaderEncodingError

Error message

HTTP3HeaderEncodingError

What it means

HTTP/3 QPACK header encoding/decoding error. The HTTP/3 equivalent of HPACK compression errors — fires when QPACK-encoded header blocks cannot be decoded due to invalid instructions or stream dependency issues.

Solutions

  1. Verify QPACK encoder/decoder dynamic table synchronization between endpoints
  2. Check for corrupted QUIC streams delivering garbled header data
  3. Ensure the HTTP/3 implementation handles QPACK blocking correctly (required-insert-count semantics)
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at src/http/error.rs:86 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/24ca1ee0761c9b9c. Report an issue: GitHub.

Appendix: source

Thrown at src/http/error.rs:86

    #[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)]
    Alloc(#[from] bun_alloc::AllocError),
    #[error(transparent)]

View on GitHub (pinned to 8c5296ac45)