{"record":{"id":"f534e45ed79096df","repo":"tinyhumansai/openhuman","slug":"apify-run-failed-e","errorCode":null,"errorMessage":"Apify run failed: {e:#}","messagePattern":"Apify run failed: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/agent/learning/linkedin_enrichment.rs","lineNumber":651,"sourceCode":"        \"input\": {\n            \"profileUrls\": [profile_url],\n        },\n        \"sync\": true,\n        \"timeoutSecs\": 120,\n    });\n\n    tracing::debug!(\n        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()","sourceCodeStart":633,"sourceCodeEnd":669,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/agent/learning/linkedin_enrichment.rs#L633-L669","documentation":"The backend route /agent-integrations/apify/run (used to invoke the LinkedIn scraper actor) returned an error — backend auth expired, the route rejected the request, or the Apify call failed server-side. The scrape stage of profile enrichment cannot produce data.","triggerScenarios":"Thrown at src/openhuman/agent/learning/linkedin_enrichment.rs:651 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the backend session is valid and retry the enrichment run","Check the Apify integration is enabled for the account and the actor name/limits are correct","Skip the scrape stage and continue with a profile built from other stages"],"exampleFix":null,"handlingStrategy":"try-catch","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-23T08:17:48.524Z"}