zeroclaw-labs/zeroclaw · error · anyhow::Error
Slack conversations.list failed: {err}
Error message
Slack conversations.list failed: {err} What it means
Error "Slack conversations.list failed: {err}" thrown in zeroclaw-labs/zeroclaw.
Source
Thrown at crates/zeroclaw-channels/src/slack.rs:3830
let status = resp.status();
let body = resp
.text()
.await
.unwrap_or_else(|e| format!("<failed to read response body: {e}>"));
if !status.is_success() {
let sanitized = zeroclaw_providers::sanitize_api_error(&body);
anyhow::bail!("Slack conversations.list failed ({status}): {sanitized}");
}
let data: serde_json::Value = serde_json::from_str(&body).unwrap_or_default();
if data.get("ok") == Some(&serde_json::Value::Bool(false)) {
let err = data
.get("error")
.and_then(|e| e.as_str())
.unwrap_or("unknown");
anyhow::bail!("Slack conversations.list failed: {err}");
}
channels.extend(Self::extract_channel_ids(&data));
cursor = data
.get("response_metadata")
.and_then(|rm| rm.get("next_cursor"))
.and_then(|c| c.as_str())
.map(str::trim)
.filter(|c| !c.is_empty())
.map(ToOwned::to_owned);
if cursor.is_none() {
break;
}
}
channels.sort();View on GitHub (pinned to 88bb9c8533)
Solutions
- Check network connectivity and the error detail; verify the Slack token.
When it happens
Trigger: Thrown at crates/zeroclaw-channels/src/slack.rs:3830 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zeroclaw-labs/zeroclaw@88bb9c8533 (2026-08-23).
Data as JSON: /api/errors/4b19b06a69722e4c.
Report an issue: GitHub.