Slack · api · fg-0361

Slack bot posts the same reply two or three times for one message

If you see Duplicate replies to a single user message, the cause and the fix for Slack are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
Duplicate replies to a single user messageRequests carry X-Slack-Retry-Num 1, 2 or 3X-Slack-Retry-Reason: http_timeout
Cause
Slack treats any event request not answered with a 2xx within three seconds as failed and retries up to three times. A handler that does slow work before responding gets each retry and acts again.
Fix
Return 200 at once and do the work afterwards, dedupe on event_id, and ignore or answer retries. Send x-slack-no-retry: 1 on a non-200 if you never want a redelivery.
Apply
if req.headers.get("X-Slack-Retry-Num"): return Response(status=200) if seen(event["event_id"]): return Response(status=200)
Affected
Slack Events API over HTTP, all versions as of 2026-10
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun