tinyhumansai/openhuman · error

whatsapp_data_list_messages: {e}

Error message

whatsapp_data_list_messages: {e}

What it means

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.

Source

Thrown at src/openhuman/channels/whatsapp_data/tools/list_messages.rs:99

        );
        let messages: Vec<WhatsAppMessage> =
            match BUS.native().request(methods::LIST_MESSAGES, req).await {
                Ok(messages) => messages,
                Err(e) if is_handler_absent(&e) => {
                    log::debug!(
                        "[tool][whatsapp_data] list_messages handler_absent — degrading ({e})"
                    );
                    let body = serde_json::to_string(&json!({
                        "provider": "whatsapp",
                        "count": 0,
                        "messages": [],
                        "note": UNAVAILABLE_NOTE,
                    }))?;
                    return Ok(ToolResult::success(body));
                }
                Err(e) => {
                    log::warn!("[tool][whatsapp_data] list_messages bridge_error error={e}");
                    return Err(anyhow::anyhow!("whatsapp_data_list_messages: {e}"));
                }
            };
        log::debug!(
            "[tool][whatsapp_data] list_messages returning count={}",
            messages.len()
        );
        let body = serde_json::to_string(&json!({
            "provider": "whatsapp",
            "count": messages.len(),
            "messages": messages,
        }))?;
        Ok(ToolResult::success(body))
    }

    fn is_concurrency_safe(&self, _args: &serde_json::Value) -> bool {
        true
    }
}

View on GitHub (pinned to 7491200858)

Solutions

  1. Check the wrapped error for the scan/read cause
  2. Verify the chat_id exists in the connected WhatsApp account
  3. Retry once the WhatsApp data source is healthy
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at src/openhuman/channels/whatsapp_data/tools/list_messages.rs:99 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17). Data as JSON: /api/errors/1f2966f1db76705d. Report an issue: GitHub.