{"record":{"id":"0005bc4418e5771a","repo":"oven-sh/bun","slug":"toomanyredirects","errorCode":"TooManyRedirects","errorMessage":"TooManyRedirects","messagePattern":"TooManyRedirects","errorType":"error_code","errorClass":"http::Error","httpStatus":null,"severity":"error","filePath":"src/http/error.rs","lineNumber":48,"sourceCode":"    #[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\")]\n    InvalidHTTPResponse,\n    #[error(\"InvalidContentLength\")]\n    InvalidContentLength,\n    #[error(\"UnsupportedTransferEncoding\")]\n    UnsupportedTransferEncoding,\n    #[error(\"RequestBodyNotReusable\")]\n    RequestBodyNotReusable,\n    #[error(\"UnsupportedRedirectProtocol\")]","sourceCodeStart":30,"sourceCodeEnd":66,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/http/error.rs#L30-L66","documentation":"The redirect limit was exceeded while following HTTP redirects. The client follows up to a maximum number of redirects (default ~20) before aborting with this sentinel to prevent infinite redirect loops.","triggerScenarios":"Thrown at src/http/error.rs:48 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Investigate the redirect chain for loops (A redirects to B which redirects back to A)","Increase the redirect limit configuration if the chain is legitimate","Fix server-side redirect configuration to avoid circular redirects"],"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"}