{"record":{"id":"dee3a85af8ac9fef","repo":"oven-sh/bun","slug":"http2unsupported","errorCode":"HTTP2Unsupported","errorMessage":"HTTP2Unsupported","messagePattern":"HTTP2Unsupported","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"src/http/error.rs","lineNumber":40,"sourceCode":"    #[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\")]\n    AbortedBeforeConnecting,\n    #[error(\"InvalidURL\")]\n    InvalidURL,\n    #[error(\"ERR_TLS_CERT_ALTNAME_INVALID\")]\n    ERR_TLS_CERT_ALTNAME_INVALID,\n    #[error(\"ClientAborted\")]\n    ClientAborted,\n    #[error(\"HTTP2Unsupported\")]\n    HTTP2Unsupported,\n    #[error(\"ConnectionClosed\")]\n    ConnectionClosed,\n    #[error(\"DNSResolveFailed\")]\n    DNSResolveFailed,\n    #[error(\"ConnectionRefused\")]\n    ConnectionRefused,\n    #[error(\"TooManyRedirects\")]\n    TooManyRedirects,\n    #[error(\"HTTP3Unsupported\")]\n    HTTP3Unsupported,\n    #[error(\"ResponseHeadersTooLarge\")]\n    ResponseHeadersTooLarge,\n    #[error(\"UnrequestedUpgrade\")]\n    UnrequestedUpgrade,\n    #[error(\"UnexpectedData\")]\n    UnexpectedData,\n    #[error(\"InvalidHTTPResponse\")]","sourceCodeStart":22,"sourceCodeEnd":58,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/http/error.rs#L22-L58","documentation":"The server or client does not support HTTP/2 protocol negotiation (e.g., ALPN did not yield h2). This fires when HTTP/2 was requested but the TLS/ALPN or prior-knowledge handshake did not establish an h2 connection.","triggerScenarios":"Thrown at src/http/error.rs:40 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fall back to HTTP/1.1 when HTTP/2 is not supported by the server","Verify the server supports HTTP/2 and is configured correctly (ALPN h2 advertisement)","Check that prior-knowledge HTTP/2 connections are enabled if not using ALPN"],"exampleFix":null,"handlingStrategy":"fallback","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"}