{"record":{"id":"5ed49cdc613ee20c","repo":"openai/codex","slug":"openai-file-blob-upload-to-host-failed-after-el","errorCode":null,"errorMessage":"OpenAI file blob upload to {host} failed after {elapsed_ms} ms ({error_kind}, azure_client_request_id={azure_client_request_id}): {source}","messagePattern":"OpenAI file blob upload to (.+?) failed after (.+?) ms \\((.+?), azure_client_request_id=(.+?)\\): (.+?)","errorType":"exception","errorClass":"OpenAiFileError","httpStatus":null,"severity":"error","filePath":"codex-rs/codex-api/src/files.rs","lineNumber":58,"sourceCode":"}\n\n#[derive(Debug, thiserror::Error)]\npub enum OpenAiFileError {\n    #[error(\n        \"file `{file_name}` is too large: {size_bytes} bytes exceeds the limit of {limit_bytes} bytes\"\n    )]\n    FileTooLarge {\n        file_name: String,\n        size_bytes: u64,\n        limit_bytes: u64,\n    },\n    #[error(\"failed to send OpenAI file request to {url}: {source}\")]\n    Request {\n        url: String,\n        #[source]\n        source: RouteAwareRequestError,\n    },\n    #[error(\n        \"OpenAI file blob upload to {host} failed after {elapsed_ms} ms ({error_kind}, azure_client_request_id={azure_client_request_id}): {source}\"\n    )]\n    BlobUploadRequest {\n        host: String,\n        elapsed_ms: u128,\n        error_kind: &'static str,\n        azure_client_request_id: String,\n        #[source]\n        source: RouteAwareRequestError,\n    },\n    #[error(\n        \"OpenAI file blob upload to {host} failed with status {status} (azure_client_request_id={azure_client_request_id}, azure_request_id={azure_request_id}, azure_error_code={azure_error_code})\"\n    )]\n    BlobUploadStatus {\n        host: String,\n        status: StatusCode,\n        azure_client_request_id: String,\n        azure_request_id: String,","sourceCodeStart":40,"sourceCodeEnd":76,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/codex-api/src/files.rs#L40-L76","documentation":"Error \"OpenAI file blob upload to {host} failed after {elapsed_ms} ms ({error_kind}, azure_client_request_id={azure_client_request_id}): {source}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/codex-api/src/files.rs:58 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"}