{"record":{"id":"b3052c40860581e0","repo":"oven-sh/bun","slug":"invalidredirecturl","errorCode":null,"errorMessage":"InvalidRedirectURL","messagePattern":"InvalidRedirectURL","errorType":"exception","errorClass":"bun_http::Error","httpStatus":null,"severity":"error","filePath":"src/http/error.rs","lineNumber":72,"sourceCode":"    #[error(\"UnrequestedUpgrade\")]\n    UnrequestedUpgrade,\n    #[error(\"UnexpectedData\")]\n    UnexpectedData,\n    #[error(\"InvalidHTTPResponse\")]\n    InvalidHTTPResponse,\n    #[error(\"InvalidContentLength\")]\n    InvalidContentLength,\n    #[error(\"UnsupportedTransferEncoding\")]\n    UnsupportedTransferEncoding,\n    #[error(\"RequestBodyNotReusable\")]\n    RequestBodyNotReusable,\n    #[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\")]","sourceCodeStart":54,"sourceCodeEnd":90,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/http/error.rs#L54-L90","documentation":"The resolved redirect URL is invalid after processing. Distinct from URLTooLong and URLInvalid at parse time, this catches URLs that parsed but are structurally invalid for use (e.g., missing host after resolution, invalid port).","triggerScenarios":"Thrown at src/http/error.rs:72 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the redirect target produces a fully-qualified valid URL after resolution","Check that the redirect Location includes a hostname or resolves against the original request","Fix server-side redirect configuration to produce complete URLs"],"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"}