{"record":{"id":"5505d18950bfa21f","repo":"astral-sh/uv","slug":"server-returned-redirect-http-status-without-d","errorCode":null,"errorMessage":"Server returned redirect (HTTP {status}) without destination URL. This may indicate a server configuration issue","messagePattern":"Server returned redirect \\(HTTP (.+?)\\) without destination URL\\. This may indicate a server configuration issue","errorType":"http","errorClass":"reqwest_middleware::Error::Middleware","httpStatus":null,"severity":"error","filePath":"crates/uv-client/src/base_client.rs","lineNumber":993,"sourceCode":"\n            match *req.method() {\n                Method::GET | Method::HEAD => {}\n                _ => {\n                    *req.method_mut() = Method::GET;\n                }\n            }\n            true\n        }\n        _ => false,\n    };\n    if !should_redirect {\n        return Ok(None);\n    }\n\n    let location = res\n        .headers()\n        .get(LOCATION)\n        .ok_or(reqwest_middleware::Error::Middleware(anyhow!(\n            \"Server returned redirect (HTTP {status}) without destination URL. This may indicate a server configuration issue\"\n        )))?\n        .to_str()\n        .map_err(|_| {\n            reqwest_middleware::Error::Middleware(anyhow!(\n                \"Invalid HTTP {status} 'Location' value: must only contain visible ascii characters\"\n            ))\n        })?;\n\n    let mut redirect_url = match DisplaySafeUrl::parse(location) {\n        Ok(url) => url,\n        // Per RFC 7231, URLs should be resolved against the request URL.\n        Err(DisplaySafeUrlError::Url(ParseError::RelativeUrlWithoutBase)) => original_req_url.join(location).map_err(|err| {\n            reqwest_middleware::Error::Middleware(anyhow!(\n                \"Invalid HTTP {status} 'Location' value `{location}` relative to `{original_req_url}`: {err}\"\n            ))\n        })?,\n        Err(err) => {","sourceCodeStart":975,"sourceCodeEnd":1011,"githubUrl":"https://github.com/astral-sh/uv/blob/f1a42680ff5272232d65748acf338b19778dde24/crates/uv-client/src/base_client.rs#L975-L1011","documentation":"Error \"Server returned redirect (HTTP {status}) without destination URL. This may indicate a server configuration issue\" thrown in astral-sh/uv.","triggerScenarios":"Thrown at crates/uv-client/src/base_client.rs:993 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f1a42680ff5272232d65748acf338b19778dde24","analyzedAt":"2026-08-16T04:51:47.599Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}