You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
This library runs an event listener before responding to an incoming request from Slack with 200 OK. This means if an event handler takes over 3 seconds, the event request times out and the Slack API server resends the same event up to 3 times. You can easily reproduce this issue with the following code snippet.
As a workaround, developers can use threads to run time-consuming tasks asynchronously. Mixing asyncio may not be a great idea as this is a Flask extension and Flask does not support the mechanism.
Improving this library is of course worth considering but in the short run, it's not a priority. Also, not only due to this matter, we recommend using Bolt for Python. The new library supports not only Events API but also all the latest features including interactivity.
What type of issue is this? (place an x in one of the [ ])
bug
enhancement (feature request)
question
documentation related
testing related
discussion
Requirements
I've read and understood the Contributing guidelines and have done my best effort to follow them.
I'm sorry to say this, but we are not going to implement this feature.
If you build a Slack app with time-consuming event listeners, we recommend using Bolt for Python instead. The novel framework has great consideration of 3 second timeouts out-of-the-box. You can call ack() method first and then do whatever takes longer than 3 seconds in the same method (under the hood, it uses threads). In addition to that, Bolt has a built-in adapter for Flask. You can find working examples here: https://github.com/slackapi/bolt-python/tree/main/examples/flask
I hope developers in the community will like Bolt too.
Activity
seratch commentedon Jun 2, 2021
I'm sorry to say this, but we are not going to implement this feature.
If you build a Slack app with time-consuming event listeners, we recommend using Bolt for Python instead. The novel framework has great consideration of 3 second timeouts out-of-the-box. You can call
ack()method first and then do whatever takes longer than 3 seconds in the same method (under the hood, it uses threads). In addition to that, Bolt has a built-in adapter for Flask. You can find working examples here: https://github.com/slackapi/bolt-python/tree/main/examples/flaskI hope developers in the community will like Bolt too.