{"record":{"id":"e7ab5a786ec92735","repo":"openai/codex","slug":"aws-auth-refresh-command-must-be-aws","errorCode":null,"errorMessage":"AWS auth refresh command must be `aws`","messagePattern":"AWS auth refresh command must be `aws`","errorType":"validation","errorClass":"std::io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/model-provider/src/amazon_bedrock/auth_refresh.rs","lineNumber":30,"sourceCode":"#[derive(Debug)]\npub(crate) struct AwsAuthRecovery {\n    config: AwsAuthRefreshConfig,\n    refresh_lock: Semaphore,\n    generation: AtomicU64,\n}\n\nimpl AwsAuthRecovery {\n    pub(crate) fn new(config: AwsAuthRefreshConfig) -> Self {\n        Self {\n            config,\n            refresh_lock: Semaphore::new(/*permits*/ 1),\n            generation: AtomicU64::new(0),\n        }\n    }\n\n    pub(crate) async fn refresh(&self) -> std::io::Result<()> {\n        if self.config.command != \"aws\" {\n            return Err(std::io::Error::new(\n                std::io::ErrorKind::InvalidInput,\n                \"AWS auth refresh command must be `aws`\",\n            ));\n        }\n\n        let generation = self.generation.load(Ordering::Acquire);\n        let _refresh_lock = self\n            .refresh_lock\n            .acquire()\n            .await\n            .map_err(std::io::Error::other)?;\n        if self.generation.load(Ordering::Acquire) != generation {\n            return Ok(());\n        }\n\n        let mut command = Command::new(&self.config.command);\n        command\n            .args(self.config.args.iter().map(Deref::deref))","sourceCodeStart":12,"sourceCodeEnd":48,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/model-provider/src/amazon_bedrock/auth_refresh.rs#L12-L48","documentation":"Error \"AWS auth refresh command must be `aws`\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/model-provider/src/amazon_bedrock/auth_refresh.rs:30 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"}