{"record":{"id":"b513641eee692782","repo":"oven-sh/bun","slug":"invalidurl","errorCode":"InvalidURL","errorMessage":"InvalidURL","messagePattern":"InvalidURL","errorType":"error_code","errorClass":"http::Error","httpStatus":null,"severity":"error","filePath":"src/http/error.rs","lineNumber":34,"sourceCode":"    #[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\")]\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\")]","sourceCodeStart":16,"sourceCodeEnd":52,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/http/error.rs#L16-L52","documentation":"Sentinel variant of the HTTP client Error enum: a URL passed to the HTTP client could not be parsed into a valid request target (bad scheme, malformed host, or unusable URL structure). The client refuses to build a request from it; consumers match on the variant name for error mapping.","triggerScenarios":"Thrown at src/http/error.rs:34 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Validate and correct the URL format before making the request","Ensure the URL includes a valid scheme (http/https) and hostname","URL-encode special characters in the URL path or query string"],"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"}