Stable acknowledgement for incoming requests #84
Labels
bug
M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented
discussion
M-T: An issue where more input is needed to reach a decision
enhancement
M-T: A feature request for new functionality
Description
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[ ]
)Requirements
The text was updated successfully, but these errors were encountered: