{"record":{"id":"a9adaa90993cd036","repo":"tinyhumansai/openhuman","slug":"runtime-python-server-method-failed-message","errorCode":null,"errorMessage":"runtime python server `{method}` failed: {message}","messagePattern":"runtime python server `(.+?)` failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/runtime/python_server/server.rs","lineNumber":213,"sourceCode":"                        \"[runtime_python_server] unparseable response skipped: {error}; line_len={}\",\n                        line.len()\n                    );\n                    continue;\n                }\n            };\n            if response.id.as_deref() != Some(id.as_str()) {\n                log::debug!(\n                    \"[runtime_python_server] skipped response for different id={:?}\",\n                    response.id\n                );\n                continue;\n            }\n            if !response.ok {\n                let message = response\n                    .error\n                    .map(|error| format!(\"{}: {}\", error.code, error.message))\n                    .unwrap_or_else(|| \"unknown python server error\".to_string());\n                bail!(\"runtime python server `{method}` failed: {message}\");\n            }\n            let result = response.result.unwrap_or(Value::Null);\n            return serde_json::from_value(result)\n                .with_context(|| format!(\"decoding runtime python server `{method}` result\"));\n        }\n    }\n\n    async fn reset(&self) {\n        let mut guard = self.inner.lock().await;\n        if let Some(mut inner) = guard.take() {\n            if let Err(error) = inner._child.start_kill() {\n                log::debug!(\"[runtime_python_server] failed to signal child shutdown: {error}\");\n            }\n        }\n    }\n\n    async fn mark_used(&self) {\n        *self.last_used.lock().await = Instant::now();","sourceCodeStart":195,"sourceCodeEnd":231,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/runtime/python_server/server.rs#L195-L231","documentation":"The runtime python server answered a well-formed JSON-RPC response with ok=false — the failure happened inside the python backend (model error, bad input for that method) and its message is surfaced verbatim. Transport and protocol were fine.","triggerScenarios":"Thrown at src/openhuman/runtime/python_server/server.rs:213 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the server-supplied message to identify the backend failure","Fix or shrink the input that triggered it","Retry if the message indicates a transient model/resource error"],"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-14T00:17:10.932Z"}