slackapi / bolt-python

A framework to build Slack apps using Python
https://slack.dev/bolt-python/
MIT License
1.02k stars 236 forks source link

@app_mention event is not being triggered sometimes #1070

Closed TALUPURI-DIMPLE-HIMA-BINDU closed 1 month ago

TALUPURI-DIMPLE-HIMA-BINDU commented 2 months ago

We are using our slack app by doing @app_mention from workflow message . In most cases the app_mention wrks as expected but in some instances we see that the app_mention doesn't trigger. We thought it's a backend error from our side but it seems like the app_mention is not happening at all for some cases. Does this happen when multiple events trigger simultaneously if so how to handle it .

The events we are triggering are :

  1. @app_mention
  2. Some button actions total 3 different button actions.

We are using app in 5 different channels simultaneously , and for each request an app_mention is triggered and other events as well . Is this happening due simultaneous events being triggered ?

seratch commented 2 months ago

Hi @TALUPURI-DIMPLE-HIMA-BINDU, thanks for asking the question.

It's totally fine to use your app within a few channels at a time. Thus, that shouldn't be the reason why your app server does not receive some of the events.

The only possible cause apart from network/infra issues and/or Slack outage is ratelimits for Events API. Your app can receive only 30K events per hour. This means that if your app subscribes other events that can be delievered a lot (e.g., message events in a busy channel), app_mention event delivery can be affected by that. Please refer to the document for more details: https://api.slack.com/apis/rate-limits#events

If that's not your case, please contact our customer support team to check what's happening with your app and workspace. Since this is a public place, we're unable to ask you to provide any sensitive information like your workspace / channel metadata. If you're observing some unexpected behavior / errors, customer support agents can check server-side logs upon your approval. You can reach out to them via either /feedback in your Slack workspace or https://my.slack.com/help/requests/new . I hope this helps.

TALUPURI-DIMPLE-HIMA-BINDU commented 2 months ago

Thank you @seratch for the reply we will contact support team .

github-actions[bot] commented 1 month ago

👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized.

github-actions[bot] commented 1 month ago

As this issue has been inactive for more than one month, we will be closing it. Thank you to all the participants! If you would like to raise a related issue, please create a new issue which includes your specific details and references this issue number.