{"record":{"id":"92063de2b8a12a3a","repo":"zeroclaw-labs/zeroclaw","slug":"chat-update-failed-status-sanitized","errorCode":null,"errorMessage":"chat.update failed ({status}): {sanitized}","messagePattern":"chat\\.update failed \\((.+?)\\): (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/zeroclaw-channels/src/slack.rs","lineNumber":1312,"sourceCode":"        });\n\n        let resp = self\n            .http_client()\n            .post(\"https://slack.com/api/chat.update\")\n            .bearer_auth(&self.bot_token)\n            .json(&body)\n            .send()\n            .await?;\n\n        let status = resp.status();\n        let raw = resp\n            .text()\n            .await\n            .unwrap_or_else(|e| format!(\"<failed to read response body: {e}>\"));\n\n        if !status.is_success() {\n            let sanitized = zeroclaw_providers::sanitize_api_error(&raw);\n            anyhow::bail!(\"chat.update failed ({status}): {sanitized}\");\n        }\n\n        let parsed: serde_json::Value = serde_json::from_str(&raw).unwrap_or_default();\n        if parsed.get(\"ok\") == Some(&serde_json::Value::Bool(false)) {\n            let err = parsed\n                .get(\"error\")\n                .and_then(|e| e.as_str())\n                .unwrap_or(\"unknown\");\n            anyhow::bail!(\"chat.update failed: {err}\");\n        }\n\n        Ok(())\n    }\n\n    /// Check if a Slack user ID is in the allowlist.\n    /// Empty list means deny everyone until explicitly configured.\n    /// `\"*\"` means allow everyone.\n    fn is_user_allowed(&self, user_id: &str) -> bool {","sourceCodeStart":1294,"sourceCodeEnd":1330,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/crates/zeroclaw-channels/src/slack.rs#L1294-L1330","documentation":"Error \"chat.update failed ({status}): {sanitized}\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at crates/zeroclaw-channels/src/slack.rs:1312 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the message timestamp and channel are correct and the bot authored the message; only own messages can be updated."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}