{"record":{"id":"ee6777e89e2b11d1","repo":"openai/codex","slug":"request-auth-build-error-0","errorCode":null,"errorMessage":"request auth build error: {0}","messagePattern":"request auth build error: (.+?)","errorType":"exception","errorClass":"AuthError","httpStatus":null,"severity":"error","filePath":"codex-rs/codex-api/src/auth.rs","lineNumber":11,"sourceCode":"use codex_client::Request;\nuse codex_client::TransportError;\nuse http::HeaderMap;\nuse std::future::Future;\nuse std::pin::Pin;\nuse std::sync::Arc;\n\n/// Error returned while applying authentication to an outbound request.\n#[derive(Debug, thiserror::Error)]\npub enum AuthError {\n    #[error(\"request auth build error: {0}\")]\n    Build(String),\n    #[error(\"transient auth error: {0}\")]\n    Transient(String),\n}\n\nimpl From<AuthError> for TransportError {\n    fn from(error: AuthError) -> Self {\n        match error {\n            AuthError::Build(message) => TransportError::Build(message),\n            AuthError::Transient(message) => TransportError::Network(message),\n        }\n    }\n}\n\n/// Applies authentication to API requests.\n///\n/// Header-only providers can implement `add_auth_headers`; providers that sign\n/// complete requests can override `apply_auth`.","sourceCodeStart":1,"sourceCodeEnd":29,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/codex-api/src/auth.rs#L1-L29","documentation":"Error \"request auth build error: {0}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/codex-api/src/auth.rs:11 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"}