{"record":{"id":"9bcff6261a637984","repo":"openai/codex","slug":"fs-readfile-returned-invalid-base64-database64-e","errorCode":null,"errorMessage":"fs/readFile returned invalid base64 dataBase64: {err}","messagePattern":"fs/readFile returned invalid base64 dataBase64: (.+?)","errorType":"validation","errorClass":"std::io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/exec-server/src/sandboxed_file_system.rs","lineNumber":121,"sourceCode":"        options: ReadFileOptions,\n        sandbox: Option<&FileSystemSandboxContext>,\n    ) -> FileSystemResult<Vec<u8>> {\n        let sandbox = require_platform_sandbox(sandbox)?;\n        validate_native_path(path)?;\n        let response = self\n            .run_sandboxed(\n                sandbox,\n                FsHelperRequest::ReadFile(FsReadFileParams {\n                    path: path.clone(),\n                    follow_symlinks: (!options.follow_symlinks).then_some(false),\n                    sandbox: None,\n                }),\n            )\n            .await?\n            .expect_read_file()\n            .map_err(map_sandbox_error)?;\n        STANDARD.decode(response.data_base64).map_err(|err| {\n            io::Error::new(\n                io::ErrorKind::InvalidData,\n                format!(\"fs/readFile returned invalid base64 dataBase64: {err}\"),\n            )\n        })\n    }\n\n    async fn write_file(\n        &self,\n        path: &PathUri,\n        contents: Vec<u8>,\n        options: WriteFileOptions,\n        sandbox: Option<&FileSystemSandboxContext>,\n    ) -> FileSystemResult<()> {\n        let sandbox = require_platform_sandbox(sandbox)?;\n        validate_native_path(path)?;\n        self.run_sandboxed(\n            sandbox,\n            FsHelperRequest::WriteFile(FsWriteFileParams {","sourceCodeStart":103,"sourceCodeEnd":139,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/exec-server/src/sandboxed_file_system.rs#L103-L139","documentation":"Error \"fs/readFile returned invalid base64 dataBase64: {err}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/exec-server/src/sandboxed_file_system.rs:121 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"}