{"record":{"id":"0240cfc51e17ecd9","repo":"oven-sh/bun","slug":"redirecturltoolong","errorCode":null,"errorMessage":"RedirectURLTooLong","messagePattern":"RedirectURLTooLong","errorType":"exception","errorClass":"bun_http::Error","httpStatus":null,"severity":"error","filePath":"src/http/error.rs","lineNumber":68,"sourceCode":"    #[error(\"HTTP3Unsupported\")]\n    HTTP3Unsupported,\n    #[error(\"ResponseHeadersTooLarge\")]\n    ResponseHeadersTooLarge,\n    #[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\")]","sourceCodeStart":50,"sourceCodeEnd":86,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/http/error.rs#L50-L86","documentation":"Sentinel variant of the HTTP client Error enum: while following a redirect, the Location header contained a URL longer than the client's fixed limit for redirect targets. The redirect cannot be followed safely (the target may be malicious or malformed), so the request fails with this variant.","triggerScenarios":"Thrown at src/http/error.rs:68 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the server to issue shorter redirect URLs","Check for redirect chains that append query parameters on each hop, growing the URL","Increase the configured maximum URL length if legitimate URLs are long"],"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"}