{"record":{"id":"799a969f11698632","repo":"tinyhumansai/openhuman","slug":"apify-run-finished-with-status-status","errorCode":null,"errorMessage":"Apify run finished with status: {status}","messagePattern":"Apify run finished with status: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/agent/learning/linkedin_enrichment.rs","lineNumber":659,"sourceCode":"        actor = LINKEDIN_SCRAPER_ACTOR,\n        url_len = profile_url.len(),\n        \"[linkedin_enrichment] invoking Apify actor\"\n    );\n\n    // The backend wraps the Apify response in its standard envelope.\n    // `IntegrationClient::post` already unwraps `{ success, data }`.\n    let resp: serde_json::Value = client\n        .post(\"/agent-integrations/apify/run\", &body)\n        .await\n        .map_err(|e| anyhow::anyhow!(\"Apify run failed: {e:#}\"))?;\n\n    let status = resp\n        .get(\"status\")\n        .and_then(|v| v.as_str())\n        .unwrap_or(\"UNKNOWN\");\n\n    if status != \"SUCCEEDED\" {\n        anyhow::bail!(\"Apify run finished with status: {status}\");\n    }\n\n    // Extract the first item from the inline results array.\n    let items = resp\n        .get(\"items\")\n        .and_then(|v| v.as_array())\n        .ok_or_else(|| anyhow::anyhow!(\"Apify run returned no items array\"))?;\n\n    items\n        .first()\n        .cloned()\n        .ok_or_else(|| anyhow::anyhow!(\"Apify run returned an empty items array\"))\n}\n\n/// Build a local memory client for profile persistence.\nfn build_memory_client() -> anyhow::Result<crate::openhuman::memory::store::MemoryClient> {\n    crate::openhuman::memory::store::MemoryClient::new_local()\n        .map_err(|e| anyhow::anyhow!(\"memory client unavailable: {e}\"))","sourceCodeStart":641,"sourceCodeEnd":677,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/a221052e0df5b1f7598fceba7329fd1af95d6699/src/openhuman/agent/learning/linkedin_enrichment.rs#L641-L677","documentation":"Error \"Apify run finished with status: {status}\" thrown in tinyhumansai/openhuman.","triggerScenarios":"Thrown at src/openhuman/agent/learning/linkedin_enrichment.rs:659 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":"a221052e0df5b1f7598fceba7329fd1af95d6699","analyzedAt":"2026-08-16T12:47:06.542Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}