{"record":{"id":"9620ad86dcd12fa6","repo":"openai/codex","slug":"invaliddata-9620ad","errorCode":"InvalidData","errorMessage":"{FS_READ_BLOCK_METHOD} returned {} bytes, maximum is {}","messagePattern":"(.+?) returned (.+?) bytes, maximum is (.+?)","errorType":"exception","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/exec-server/src/remote_file_stream.rs","lineNumber":61,"sourceCode":"        .map_err(map_remote_error)?;\n    Ok(FileSystemReadStream::new(futures::stream::try_unfold(\n        Some((registration, 0_u64)),\n        |state| async move {\n            let Some((mut registration, offset)) = state else {\n                return Ok(None);\n            };\n            let response = registration\n                .client\n                .fs_read_block(FsReadBlockParams {\n                    handle_id: registration.handle_id.clone(),\n                    offset,\n                    len: FILE_READ_CHUNK_SIZE,\n                })\n                .await\n                .map_err(map_remote_error)?;\n            let chunk = Bytes::from(response.chunk.into_inner());\n            if chunk.len() > FILE_READ_CHUNK_SIZE {\n                return Err(io::Error::new(\n                    io::ErrorKind::InvalidData,\n                    format!(\n                        \"{FS_READ_BLOCK_METHOD} returned {} bytes, maximum is {}\",\n                        chunk.len(),\n                        FILE_READ_CHUNK_SIZE\n                    ),\n                ));\n            }\n            if response.eof {\n                if registration\n                    .client\n                    .fs_close(FsCloseParams {\n                        handle_id: registration.handle_id.clone(),\n                    })\n                    .await\n                    .is_ok()\n                {\n                    registration.active = false;","sourceCodeStart":43,"sourceCodeEnd":79,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/exec-server/src/remote_file_stream.rs#L43-L79","documentation":"Error \"{FS_READ_BLOCK_METHOD} returned {} bytes, maximum is {}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/exec-server/src/remote_file_stream.rs:61 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"}