Slack · sdk · fg-0363

Slack command shows operation_timeout or the work never finishes on Lambda or Cloud Functions

If you see /command failed with the error "operation_timeout", the cause and the fix for Slack are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
/command failed with the error "operation_timeout"ack() runs but the follow-up message is never postedWorks locally, fails only after deploy to a function runtime
Cause
Bolt acknowledges first and keeps working afterwards, but function runtimes freeze or stop once the HTTP response is sent. Without process_before_response the rest of the listener never runs, and with it the whole listener must still finish within three seconds.
Fix
Set processBeforeResponse in Bolt JS (or use AwsLambdaReceiver), and in Bolt Python set process_before_response=True and move slow work into lazy listeners.
Apply
app = App(process_before_response=True) app.command("/report")(ack=lambda ack: ack(), lazy=[build_and_post_report])
Affected
Bolt for JavaScript and Bolt for Python on AWS Lambda, Google Cloud Functions and similar runtimes, as of 2026-10
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun