Received multiple message
events last night without 'X-Slack-Retry-Num' #2141
Open
Description
I’m not sure if this is the appropriate repository for this issue, but I was unable to sign up for the Slack Forum, so I'm posting here.
Packages:
Select all that apply:
-
@slack/web-api
-
@slack/rtm-api
-
@slack/webhooks
-
@slack/oauth
-
@slack/socket-mode
-
@slack/types
- [] I don't know
Reproducible in:
The Slack SDK version
"@slack/web-api": "7.3.1",
Node.js runtime version
AWS Lambda Node.js 20.x
OS info
Steps to reproduce:
- We use Slack’s Event Subscriptions to receive
message
events at an AWS API Gateway → AWS Lambda endpoint. - Between January 27, 2024 at 20:00 (JST) and January 28, 2024 at 01:00 (JST), multiple events referencing the same message (
event_ts
) were sent, each with a differentevent_id
. - These events arrived a few minutes apart, and none had the usual
X-Slack-Retry-Num
orX-Slack-Retry-Reason
headers. - After that timeframe, the issue has not recurred.
Expected result:
- A single event (or, in the case of retries, events with
X-Slack-Retry-*
headers) for each message.
Actual result:
- For a single message, we sometimes received up to 11 events.
- Each event had a unique
event_id
(the request body also varied slightly), indicating this was not caused by any retry mechanism on our side but rather multiple sends from Slack. - It happened in both our development and production environments.
- No incidents were reported on Slack’s status page during that period.
- It has not happened again since.
Requirements
We understand that general questions about the Slack API platform or its server-side logic can be sent to https://my.slack.com/help/requests/new, but we believe this to be unexpected behavior in event delivery, so we wanted to share it here.