Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[socketmode] EventsAPI is called multiple times for a single event #1345

Open
rustycl0ck opened this issue Nov 8, 2024 · 1 comment
Open

Comments

@rustycl0ck
Copy link

What happened

The app-mention event (this function) is triggered multiple times sometimes. I have observed it being triggered upto a total of 4 times maximum. Many times just 2-3 times too.

Expected behavior

It should be triggered just once per mention/message.

Steps to reproduce

Run the example and then wait for some time after mentioning the bot. The Yes, hello (from here) message is posted after a few seconds or minutes again.

reproducible code

https://github.com/slack-go/slack/blob/00d0e9a995c975504c6db72b35c9da491e493ae2/examples/socketmode_handler/socketmode_handler.go

manifest.yaml

Versions

  • Go: go1.23.2 darwin/amd64
  • slack-go/slack: v0.15.0
@nickolashkraus
Copy link

nickolashkraus commented Dec 19, 2024

@rustycl0ck Are you responding to the request within three seconds:

Your app should respond to the event request with an HTTP 2xx within three seconds. If it does not, we'll consider the event delivery attempt failed. After a failure, we'll retry three times, backing off exponentially.

Source: Events API | Responding to events

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants