{"record":{"id":"1f2966f1db76705d","repo":"tinyhumansai/openhuman","slug":"whatsapp-data-list-messages-e","errorCode":null,"errorMessage":"whatsapp_data_list_messages: {e}","messagePattern":"whatsapp_data_list_messages: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/channels/whatsapp_data/tools/list_messages.rs","lineNumber":99,"sourceCode":"        );\n        let messages: Vec<WhatsAppMessage> =\n            match BUS.native().request(methods::LIST_MESSAGES, req).await {\n                Ok(messages) => messages,\n                Err(e) if is_handler_absent(&e) => {\n                    log::debug!(\n                        \"[tool][whatsapp_data] list_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] list_messages bridge_error error={e}\");\n                    return Err(anyhow::anyhow!(\"whatsapp_data_list_messages: {e}\"));\n                }\n            };\n        log::debug!(\n            \"[tool][whatsapp_data] list_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":81,"sourceCodeEnd":117,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/channels/whatsapp_data/tools/list_messages.rs#L81-L117","documentation":"The native LIST_MESSAGES bus request to the WhatsApp data handler failed with a real handler-side error (not handler-absent, which degrades to an empty list). Means the desktop handler is registered but scanning or reading messages for the chat failed.","triggerScenarios":"Thrown at src/openhuman/channels/whatsapp_data/tools/list_messages.rs:99 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error for the scan/read cause","Verify the chat_id exists in the connected WhatsApp account","Retry once the WhatsApp data source is healthy"],"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"}