santhini s
santhini s

Reputation: 71

What could be the reasons for a slack expired_trigger_id error?

At times when I try to open a slack modal, it gives an expired_trigger_id error in production. How do I debug and find out why it is happening? I am using slack bolt in js for creating the chatbot.

Upvotes: 7

Views: 3382

Answers (1)

dmongit
dmongit

Reputation: 53

The trigger_id expires after 3 seconds. So, if you have any processes in between the command in slack to the point where you attempt to open a modal, 3 seconds could have elapsed. I would start with logging time stamps. My guess is that you have other resources causing a delay that intermittently exceed 3 seconds. Without seeing your code, it's hard to give you a jump point on starting to debug, but I would start with logging.

Upvotes: 4

Related Questions