{"record":{"id":"3a13a69ef26c893d","repo":"openai/codex","slug":"failed-to-build-http-client-while-using-ca-bundle","errorCode":null,"errorMessage":"Failed to build HTTP client while using CA bundle from {} ({}): {source}","messagePattern":"Failed to build HTTP client while using CA bundle from (.+?) \\((.+?)\\): (.+?)","errorType":"exception","errorClass":"BuildCustomCaTransportError","httpStatus":null,"severity":"error","filePath":"codex-rs/http-client/src/custom_ca.rs","lineNumber":116,"sourceCode":"        detail: String,\n    },\n\n    /// One parsed certificate block could not be registered with the reqwest client builder.\n    #[error(\n        \"Failed to parse certificate #{certificate_index} from {} selected by {}: {source}. {hint}\",\n        path.display(),\n        source_env,\n        hint = CA_CERT_HINT\n    )]\n    RegisterCertificate {\n        source_env: &'static str,\n        path: PathBuf,\n        certificate_index: usize,\n        source: reqwest::Error,\n    },\n\n    /// Reqwest rejected the final client configuration after a custom CA bundle was loaded.\n    #[error(\n        \"Failed to build HTTP client while using CA bundle from {} ({}): {source}\",\n        source_env,\n        path.display()\n    )]\n    BuildClientWithCustomCa {\n        source_env: &'static str,\n        path: PathBuf,\n        #[source]\n        source: reqwest::Error,\n    },\n\n    /// Reqwest rejected the final client configuration while using only system roots.\n    #[error(\"Failed to build HTTP client while using system root certificates: {0}\")]\n    BuildClientWithSystemRoots(#[source] reqwest::Error),\n\n    /// One parsed certificate block could not be registered with the websocket TLS root store.\n    #[error(\n        \"Failed to register certificate #{certificate_index} from {} selected by {} in rustls root store: {source}. {hint}\",","sourceCodeStart":98,"sourceCodeEnd":134,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/http-client/src/custom_ca.rs#L98-L134","documentation":"Error \"Failed to build HTTP client while using CA bundle from {} ({}): {source}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/http-client/src/custom_ca.rs:116 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":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}