{"record":{"id":"072a48f89b18d4f9","repo":"BerriAI/litellm","slug":"failed-to-build-reqwest-client","errorCode":null,"errorMessage":"failed to build reqwest client","messagePattern":"failed to build reqwest client","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"litellm-rust/crates/ai-gateway/src/client.rs","lineNumber":12,"sourceCode":"use std::sync::OnceLock;\nuse std::time::Duration;\n\nconst HTTP_CLIENT_TIMEOUT_SECS: u64 = 600;\n\npub(crate) fn http_client() -> &'static reqwest::Client {\n    static CLIENT: OnceLock<reqwest::Client> = OnceLock::new();\n    CLIENT.get_or_init(|| {\n        reqwest::Client::builder()\n            .timeout(Duration::from_secs(HTTP_CLIENT_TIMEOUT_SECS))\n            .build()\n            .expect(\"failed to build reqwest client\")\n    })\n}\n","sourceCodeStart":1,"sourceCodeEnd":15,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm-rust/crates/ai-gateway/src/client.rs#L1-L15","documentation":"Error \"failed to build reqwest client\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm-rust/crates/ai-gateway/src/client.rs:12 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check TLS/certificate configuration and system resources; reqwest client build usually fails on invalid TLS roots or missing CA certificates."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}