Receiving multiple events for simple messages in web socket mode #2188
Labels
needs info
An issue that is claimed to be a bug and hasn't been reproduced, or otherwise needs more info
question
M-T: User needs support to use the project
@slack/bolt
version"@slack/bolt": "^3.3.0", running in typescript
Your
App
and Receiver ConfigurationNode.js runtime version
Not quite sure, but it should be modern. Probably 22
Issue
My slack bot responds multiple times to a single event. It follows a consistent pattern of responding, then Slackbot tells me that it failed to dispatch, and then it runs again. On my backend, I actually get three events, once of which is marked as a retry, the other two marked as first tries, but all for the exact same message.
Looking in my logs, the event notifications say:
This happens not only for general messages (where I have a matching string), but also for slash commands, which also follow the same pattern. I also explicitly make sure to ack those commands (see example below).
The only thing I'm thinking could be that I have a commonly used message event trigger, but only at most once a minute. I'm on socket mode, and this bot is only added to one workspace.
I'm running on K8S on GKE (not thought AWS Lambda like seems to be an issue in lots of other people's questions about this like #2031 or #914). This issue only starts occurring after about a couple of weeks of it running.
I've tried looking at #1727, but that didn't seem like it would help in my case.
In the meantime, I'll just keep restarting the bot periodically, but this is pretty annoying to my end users, so I would like to fix it.
Thanks for any help!
The text was updated successfully, but these errors were encountered: