-
Notifications
You must be signed in to change notification settings - Fork 276
Description
I have a slack application running 100% on AWS and have been having problems for some time with expired_trigger_id error.
As is already known, it is necessary to respond to the slack API within 3 seconds to avoid this error. I even had to create a lambda to run every 3 minutes, invoking the main lambda to escape the cold start, but this is always the wrong solution.
AWS allows the lambdas to be loaded by default by activating the provisioned concurrency option and indicating how many containers you want to leave on, thus avoiding the cold start problem.
It turns out that I configured everything correctly, but when I call the slack API, instead of the request going to the lambda that is already running, it ends up invoking a new one, thus generating the expired_trigger_id error.
I'm in doubt if this is an AWS or Slack Bolt API problem, I even created a topic on stackoverflow: Provisioned lambda correctly configured but not working as it should
If anyone here can help me with this, I appreciate it.