zeroclaw-labs/zeroclaw · error · anyhow::Error

Slack reactions.remove failed ({status}): {sanitized}

Error message

Slack reactions.remove failed ({status}): {sanitized}

What it means

Error "Slack reactions.remove failed ({status}): {sanitized}" thrown in zeroclaw-labs/zeroclaw.

Source

Thrown at crates/zeroclaw-channels/src/slack.rs:5553

            "channel": channel_id,
            "timestamp": ts,
            "name": name
        });

        let resp = self
            .http_client()
            .post("https://slack.com/api/reactions.remove")
            .bearer_auth(&self.bot_token)
            .json(&body)
            .send()
            .await?;

        let status = resp.status();
        let text = resp.text().await.unwrap_or_default();

        if !status.is_success() {
            let sanitized = zeroclaw_providers::sanitize_api_error(&text);
            anyhow::bail!("Slack reactions.remove failed ({status}): {sanitized}");
        }

        let parsed: serde_json::Value = serde_json::from_str(&text).unwrap_or_default();
        if parsed.get("ok") == Some(&serde_json::Value::Bool(false)) {
            let err = parsed
                .get("error")
                .and_then(|e| e.as_str())
                .unwrap_or("unknown");
            if err != "no_reaction" {
                anyhow::bail!("Slack reactions.remove failed: {err}");
            }
        }

        Ok(())
    }

    async fn listen(&self, tx: tokio::sync::mpsc::Sender<ChannelMessage>) -> anyhow::Result<()> {
        // Cache the bot user id on the struct so `self_handle` (sync,

View on GitHub (pinned to 88bb9c8533)

Solutions

  1. Verify the reaction exists on the message and the token has reactions:write scope; check the returned status.

When it happens

Trigger: Thrown at crates/zeroclaw-channels/src/slack.rs:5553 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/be405efead3ae9d7. Report an issue: GitHub.