{"record":{"id":"f805a6c8570dd2b0","repo":"astral-sh/uv","slug":"request-object-is-not-cloneable-are-you-passing-a","errorCode":null,"errorMessage":"Request object is not cloneable. Are you passing a streaming body?","messagePattern":"Request object is not cloneable\\. Are you passing a streaming body\\?","errorType":"http","errorClass":"reqwest_middleware::Error::Middleware","httpStatus":null,"severity":"error","filePath":"crates/uv-auth/src/middleware.rs","lineNumber":458,"sourceCode":"                    AuthPolicy::Never => false,\n                }\n                // Dependabot intercepts HTTP requests and injects credentials, which means that we\n                // cannot eagerly enforce an `AuthPolicy` as we don't know whether credentials will be\n                // added outside of uv.\n                && !*IS_DEPENDABOT);\n\n        let (mut retry_request, response) = if !must_authenticate {\n            let url = tracing_url(&request, credentials.as_deref());\n            if credentials.is_none() {\n                trace!(\"Attempting unauthenticated request for {url}\");\n            } else {\n                trace!(\"Attempting partially authenticated request for {url}\");\n            }\n\n            // <https://github.com/TrueLayer/reqwest-middleware/blob/abdf1844c37092d323683c2396b7eefda1418d3c/reqwest-retry/src/middleware.rs#L141-L149>\n            // Clone the request so we can retry it on authentication failure\n            let retry_request = request.try_clone().ok_or_else(|| {\n                Error::Middleware(anyhow!(\n                    \"Request object is not cloneable. Are you passing a streaming body?\"\n                        .to_string()\n                ))\n            })?;\n\n            let response = next.clone().run(request, extensions).await?;\n\n            // If we don't fail with authorization related codes or\n            // authentication policy is Never, return the response.\n            if !matches!(\n                response.status(),\n                StatusCode::FORBIDDEN | StatusCode::NOT_FOUND | StatusCode::UNAUTHORIZED\n            ) || matches!(auth_policy, AuthPolicy::Never)\n            {\n                return Ok(response);\n            }\n\n            // Otherwise, search for credentials","sourceCodeStart":440,"sourceCodeEnd":476,"githubUrl":"https://github.com/astral-sh/uv/blob/f1a42680ff5272232d65748acf338b19778dde24/crates/uv-auth/src/middleware.rs#L440-L476","documentation":"Error \"Request object is not cloneable. Are you passing a streaming body?\" thrown in astral-sh/uv.","triggerScenarios":"Thrown at crates/uv-auth/src/middleware.rs:458 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"}