{"record":{"id":"eb2e0941986520f7","repo":"tinyhumansai/openhuman","slug":"whatsapp-data-search-messages-e","errorCode":null,"errorMessage":"whatsapp_data_search_messages: {e}","messagePattern":"whatsapp_data_search_messages: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/channels/whatsapp_data/tools/search_messages.rs","lineNumber":88,"sourceCode":"        );\n        let messages: Vec<WhatsAppMessage> =\n            match BUS.native().request(methods::SEARCH_MESSAGES, req).await {\n                Ok(messages) => messages,\n                Err(e) if is_handler_absent(&e) => {\n                    log::debug!(\n                        \"[tool][whatsapp_data] search_messages handler_absent — degrading ({e})\"\n                    );\n                    let body = serde_json::to_string(&json!({\n                        \"provider\": \"whatsapp\",\n                        \"count\": 0,\n                        \"messages\": [],\n                        \"note\": UNAVAILABLE_NOTE,\n                    }))?;\n                    return Ok(ToolResult::success(body));\n                }\n                Err(e) => {\n                    log::warn!(\"[tool][whatsapp_data] search_messages bridge_error error={e}\");\n                    return Err(anyhow::anyhow!(\"whatsapp_data_search_messages: {e}\"));\n                }\n            };\n        log::debug!(\n            \"[tool][whatsapp_data] search_messages returning count={}\",\n            messages.len()\n        );\n        let body = serde_json::to_string(&json!({\n            \"provider\": \"whatsapp\",\n            \"count\": messages.len(),\n            \"messages\": messages,\n        }))?;\n        Ok(ToolResult::success(body))\n    }\n\n    fn is_concurrency_safe(&self, _args: &serde_json::Value) -> bool {\n        true\n    }\n}","sourceCodeStart":70,"sourceCodeEnd":106,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/channels/whatsapp_data/tools/search_messages.rs#L70-L106","documentation":"The native SEARCH_MESSAGES bus request to the WhatsApp data handler failed with a genuine handler error — handler-absent is matched separately and degrades to an empty result, so this error means the registered handler's search itself failed.","triggerScenarios":"Thrown at src/openhuman/channels/whatsapp_data/tools/search_messages.rs:88 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped bus error for the search cause","Verify the WhatsApp connection and local store","Retry after the handler recovers"],"exampleFix":null,"handlingStrategy":"fallback","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-14T05:17:10.506Z"}