{"record":{"id":"25ea6bab4da70b6c","repo":"openai/codex","slug":"openai-file-upload-for-file-id-is-not-ready-ye","errorCode":null,"errorMessage":"OpenAI file upload for `{file_id}` is not ready yet","messagePattern":"OpenAI file upload for `(.+?)` is not ready yet","errorType":"exception","errorClass":"OpenAiFileError","httpStatus":null,"severity":"error","filePath":"codex-rs/codex-api/src/files.rs","lineNumber":91,"sourceCode":"        host: String,\n        status: StatusCode,\n        azure_client_request_id: String,\n        azure_request_id: String,\n        azure_error_code: String,\n    },\n    #[error(\"OpenAI file request to {url} failed with status {status}: {body}\")]\n    UnexpectedStatus {\n        url: String,\n        status: StatusCode,\n        body: String,\n    },\n    #[error(\"failed to parse OpenAI file response from {url}: {source}\")]\n    Decode {\n        url: String,\n        #[source]\n        source: serde_json::Error,\n    },\n    #[error(\"OpenAI file upload for `{file_id}` is not ready yet\")]\n    UploadNotReady { file_id: String },\n    #[error(\"OpenAI file upload for `{file_id}` failed: {message}\")]\n    UploadFailed { file_id: String, message: String },\n}\n\n#[derive(Deserialize)]\nstruct CreateFileResponse {\n    file_id: String,\n    upload_url: String,\n    #[serde(default)]\n    pdf_c2pa_reservation: bool,\n}\n\n#[derive(Deserialize)]\n#[serde(rename_all = \"snake_case\")]\nstruct DownloadLinkResponse {\n    status: String,\n    download_url: Option<String>,","sourceCodeStart":73,"sourceCodeEnd":109,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/codex-api/src/files.rs#L73-L109","documentation":"Error \"OpenAI file upload for `{file_id}` is not ready yet\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/codex-api/src/files.rs:91 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"}