{"record":{"id":"446d0a19941b258e","repo":"oven-sh/bun","slug":"http3protocolerror","errorCode":"HTTP3ProtocolError","errorMessage":"HTTP3ProtocolError","messagePattern":"HTTP3ProtocolError","errorType":"error_code","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"src/http/error.rs","lineNumber":84,"sourceCode":"    #[error(\"UnsupportedRedirectProtocol\")]\n    UnsupportedRedirectProtocol,\n    #[error(\"RedirectURLTooLong\")]\n    RedirectURLTooLong,\n    #[error(\"RedirectURLInvalid\")]\n    RedirectURLInvalid,\n    #[error(\"InvalidRedirectURL\")]\n    InvalidRedirectURL,\n    #[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)]","sourceCodeStart":66,"sourceCodeEnd":102,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/http/error.rs#L66-L102","documentation":"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.","triggerScenarios":"Thrown at src/http/error.rs:84 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"try-catch","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"}