{"record":{"id":"02e6fb732fbce04f","repo":"oven-sh/bun","slug":"http2framesizeerror","errorCode":"HTTP2FrameSizeError","errorMessage":"HTTP2FrameSizeError","messagePattern":"HTTP2FrameSizeError","errorType":"error_code","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"src/http/error.rs","lineNumber":14,"sourceCode":"#[allow(non_camel_case_types)]\n#[derive(Debug, Clone, Copy, PartialEq, Eq, thiserror::Error)]\npub enum Error {\n    #[error(\"CompressionFailed\")]\n    CompressionFailed,\n    #[error(\"Aborted\")]\n    Aborted,\n    #[error(\"WriteFailed\")]\n    WriteFailed,\n    #[error(\"HTTP2RefusedStream\")]\n    HTTP2RefusedStream,\n    #[error(\"HTTP2ContentLengthMismatch\")]\n    HTTP2ContentLengthMismatch,\n    #[error(\"HTTP2FrameSizeError\")]\n    HTTP2FrameSizeError,\n    #[error(\"HTTP2ProtocolError\")]\n    HTTP2ProtocolError,\n    #[error(\"HTTP2FlowControlError\")]\n    HTTP2FlowControlError,\n    #[error(\"HTTP2EnhanceYourCalm\")]\n    HTTP2EnhanceYourCalm,\n    #[error(\"HTTP2HeaderListTooLarge\")]\n    HTTP2HeaderListTooLarge,\n    #[error(\"HTTP2StreamReset\")]\n    HTTP2StreamReset,\n    #[error(\"HTTP2GoAway\")]\n    HTTP2GoAway,\n    #[error(\"HTTP2CompressionError\")]\n    HTTP2CompressionError,\n    #[error(\"Timeout\")]\n    Timeout,\n    #[error(\"AbortedBeforeConnecting\")]","sourceCodeStart":1,"sourceCodeEnd":32,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/http/error.rs#L1-L32","documentation":"HTTP/2 error variant mapped from the h2 protocol error code FRAME_SIZE_ERROR: a peer sent a frame whose length violates the spec or the negotiated SETTINGS_MAX_FRAME_SIZE. It is produced while encoding/decoding frames in Bun's HTTP/2 layer (src/http) and signals a protocol violation by the remote endpoint.","triggerScenarios":"Thrown at src/http/error.rs:14 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the client/sender respects SETTINGS_MAX_FRAME_SIZE and splits large payloads into conforming frames","If acting as the sender, cap DATA frame payloads at the peer-advertised max frame size"],"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"}