-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modal data submission takes too long to acknowledge when processBeforeResponse is true #1374
Comments
Hi @AmanKishore, thanks for writing in! Do you use either If you don't use any of the above settings, sharing a bit more details (such as complete app code) for reproducing your situation would be helpful for others here. I hope this helps! |
I see I am using
|
Is there a way to ack() and then respond() so that I can update the message twice. Like this:
|
@seratch Is there documentation for ack() and respond() with bolt? |
Thanks for sharing the detail. Thus, as I mentioned above, this is an expected behavior. If your code has some time-consuming parts, consider moving them to asynchronous execution such as a different AWS Lambda execution.
Here is the reference page for those: https://slack.dev/bolt-js/reference#listener-function-arguments However, the page provides the overview of the available arguments. The details on the topic that you asked here are not mentioned there. Also, searching https://slack.dev/bolt-js by keyword such as
No, there isn't. Please stop using For your use case, I would suggest using I think that I've provided answers to all your questions here. Thanks again for asking the question! Is everything clear now? If so, would you mind closing this issue? |
What does this mean? Any examples?
One more question, apologies if I missed it, is it possible to send an ack() and then do database calls (that take more than 3 seconds) within the same function? Or do you recommend implementing a queue? |
This means invoking a new Lambda function from the internet-facing Lambda function that runs your bolt-js code. Here is a simple example: #914 (comment)
As already mentioned above, as long as you use
Yes, I do if you have a certain reason to use FaaS. You can have a queue between your internet-facing Lambda and asynchronous Lambda. As I suggested above, a simpler way would be directly calling |
Decided to switch to Heroku! Much better.
|
Description
I am trying to close the modal and update my database. The code is all running but the modal isn't closing since the acknowledge isn't being sent fast enough.
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.9.0
node version: v14.17.6
OS version(s): macOS Monterey 12.2.1
Steps to reproduce:
Expected result:
Modal to close
Actual result:
Modal stays open
Attachments:
The text was updated successfully, but these errors were encountered: