{"record":{"id":"25fbc1b059168f03","repo":"oven-sh/bun","slug":"http3contentlengthmismatch","errorCode":"HTTP3ContentLengthMismatch","errorMessage":"HTTP3ContentLengthMismatch","messagePattern":"HTTP3ContentLengthMismatch","errorType":"error_code","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"src/http/error.rs","lineNumber":92,"sourceCode":"    #[error(\"UnexpectedRedirect\")]\n    UnexpectedRedirect,\n    #[error(\"ShortRead\")]\n    ShortRead,\n    #[error(\"WantRead\")]\n    WantRead,\n    #[error(\"WantWrite\")]\n    WantWrite,\n    #[error(\"HTTP3HandshakeFailed\")]\n    HTTP3HandshakeFailed,\n    #[error(\"HTTP3ProtocolError\")]\n    HTTP3ProtocolError,\n    #[error(\"HTTP3HeaderEncodingError\")]\n    HTTP3HeaderEncodingError,\n    #[error(\"DNSResolutionFailed\")]\n    DNSResolutionFailed,\n    #[error(\"HTTP3StreamReset\")]\n    HTTP3StreamReset,\n    #[error(\"HTTP3ContentLengthMismatch\")]\n    HTTP3ContentLengthMismatch,\n    #[error(\"FailedToOpenSocket\")]\n    FailedToOpenSocket,\n    #[error(\"InvalidCRL\")]\n    InvalidCRL,\n    #[error(\"UnsupportedProxyProtocol\")]\n    UnsupportedProxyProtocol,\n    #[error(transparent)]\n    Cert(#[from] CertError),\n    #[error(transparent)]\n    Alloc(#[from] bun_alloc::AllocError),\n    #[error(transparent)]\n    Hpack(#[from] crate::lshpack::HpackError),\n    #[error(transparent)]\n    Core(#[from] bun_core::Error),\n    #[error(transparent)]\n    Sys(#[from] bun_errno::SystemErrno),\n    #[error(transparent)]","sourceCodeStart":74,"sourceCodeEnd":110,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/http/error.rs#L74-L110","documentation":"The HTTP/3 response body length does not match the declared Content-Length. Fires when the QUIC stream delivers more or fewer bytes than the Content-Length header indicated, violating HTTP/3 message framing rules.","triggerScenarios":"Thrown at src/http/error.rs:92 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the server sends an accurate Content-Length for HTTP/3 responses","Check for QUIC stream truncation or premature FIN signals","Use chunked framing instead of fixed Content-Length for dynamic responses"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","contentChangedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}