Slack prints failed with the error "operation_timeout"
when slack command runs and finishes successfully in AWS Lambda
#1435
Labels
bug
M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented
Milestone
Description
Using an ExpressReceiver with AWS Lambda causes successfully run commands to finish with the error
failed with the error "operation_timeout"
.I was able to diagnose that lambda keeps function running because there is an open setTimeout so the function waits for the timeout to run before finishing the lambda invocation. Thanks to the recent updates, I was able to set the option
unhandledRequestTimeoutMillis
to a low number and made theunhandledRequestHandler
an empty function like so:After setting these two values, slack no longer shows the operation_timeout error to the user. I am aware of the AwsLambdaReceiver and that this may not be the prescribed usage. Just wanted to document this behavior for anyone else that might come across it. Also, with the
processBeforeResponse
option, it seems like there is some desire for the ExpressReceiver to work in the AWS Lambda environment.Feel free to close if you don't see any changes being needed and what I suggested as a good enough work around. If there are some thoughts for changes, let me know what you'd like to see and I might be able to put up a PR.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version: 3.11.0
node version: 14
OS version(s): AWS Lambda
Steps to reproduce:
app.command('/my-command', () => {...})
failed with the error "operation_timeout"
Expected result:
The command will succeed and not post an operation_timeout to the user.
Actual result:
The command will succeeds but the user is shown an error.
Attachments:
Logs, screenshots, screencast, sample project, funny gif, etc.
The text was updated successfully, but these errors were encountered: