- Symptom
- expired_trigger_id from views.openModal opens in local testing but not in productionFailure only when the handler awaits another API or a cold start first
- Cause
- A trigger_id expires three seconds after Slack sends it. Any lookup, cold start or queue hop before views.open can push past that window.
- Fix
- Call views.open first with a loading view, then fill it in with views.update once the slow data arrives.
- Apply
res = client.views_open(trigger_id=body["trigger_id"], view=loading_view) data = slow_lookup() client.views_update(view_id=res["view"]["id"], view=build_view(data))- Affected
- Slack modals opened from shortcuts, slash commands and block actions, as of 2026-10
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders