{"record":{"id":"918177553703200c","repo":"tinyhumansai/openhuman","slug":"ingest-document-ingestion-failed-e","errorCode":null,"errorMessage":"ingest_document: ingestion failed: {e}","messagePattern":"ingest_document: ingestion failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/memory/query/ingest_document.rs","lineNumber":127,"sourceCode":"            source_ref,\n        };\n\n        let req = rpc::IngestRequest {\n            source_kind: SourceKind::Document,\n            source_id: source_id.clone(),\n            owner,\n            tags: vec![\"agent_ingested\".to_string()],\n            payload: serde_json::to_value(&doc).map_err(|e| {\n                log::debug!(\"[tool][memory_tree] ingest_document payload_serialize_failed err={e}\");\n                anyhow::anyhow!(\"ingest_document: failed to serialize payload: {e}\")\n            })?,\n        };\n\n        let outcome = rpc::ingest_rpc(&cfg, req).await.map_err(|e| {\n            log::debug!(\n                \"[tool][memory_tree] ingest_document rpc_failed source_id={source_id} err={e}\"\n            );\n            anyhow::anyhow!(\"ingest_document: ingestion failed: {e}\")\n        })?;\n\n        let n = outcome.value.chunks_written;\n        log::info!(\n            \"[tool][memory_tree] ingest_document done source_id={} chunks={}\",\n            source_id,\n            n\n        );\n        Ok(ToolResult::success(format!(\n            \"Ingested document \\\"{}\\\" as source_id={}. {} chunks created and indexed.\",\n            title, source_id, n\n        )))\n    }\n}\n\n#[cfg(test)]\nmod tests {\n    use super::*;","sourceCodeStart":109,"sourceCodeEnd":145,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/memory/query/ingest_document.rs#L109-L145","documentation":"The rpc::ingest_rpc call into the memory driver failed after the request was built and serialized — the engine rejected or failed the ingestion. The driver's error is chained; the tool logs it before re-raising.","triggerScenarios":"Thrown at src/openhuman/memory/query/ingest_document.rs:127 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the chained error: quota, vault, or embedder failures have distinct fixes","Retry transient engine failures (busy store, module restart)","Verify the memory module is healthy before re-ingesting"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}