{"record":{"id":"e393aec8e40de203","repo":"openai/codex","slug":"openai-file-request-to-url-failed-with-status-s","errorCode":null,"errorMessage":"OpenAI file request to {url} failed with status {status}: {body}","messagePattern":"OpenAI file request to (.+?) failed with status (.+?): (.+?)","errorType":"http","errorClass":"OpenAiFileError","httpStatus":null,"severity":"error","filePath":"codex-rs/codex-api/src/files.rs","lineNumber":79,"sourceCode":"    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,\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)]","sourceCodeStart":61,"sourceCodeEnd":97,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/codex-api/src/files.rs#L61-L97","documentation":"Error \"OpenAI file request to {url} failed with status {status}: {body}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/codex-api/src/files.rs:79 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"}