-
Notifications
You must be signed in to change notification settings - Fork 244
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
Bolt lazy listener with modal submission error #531
Comments
@srajiang Thanks for the link to the other thread. My ack includes a non-empty string, so I don't believe I'm hitting the same issue. Code is below - please let me know if you see something I'm doing incorrectly. Thanks!
|
Oooh @joshight - Thanks for sharing your code sample. You can fix your issue by modifying your code here to return an empty string or nothing,
The ack() for view submission handling must actually return either "" (empty string) or {"response_action": ... } data otherwise you get that acknowledgement error in the Slack UI. |
@joshight If you want to display some loading message on the modal after submission, you can do something similar to the following example (the app code is built with bolt-js but you can do the same with bolt-python): |
(Describe your issue and goal here)
Reproducible in:
The
slack_bolt
version(Paste the output of
pip freeze | grep slack
)Python runtime version
(Paste the output of
python --version
)python3.9
OS info
AWS Lambda
(Paste the output of
sw_vers && uname -v
on macOS/Linux orver
on Windows OS)Steps to reproduce:
(Share the commands to run, source code, and project settings (e.g., setup.py))
Expected result:
(Tell what you expected to happen)
User enters data into pop-up modal and clicks submit. Submission triggers an API call to create a Jira issue and replies back to user with ticket info.
Actual result:
All of the functionality works as expected - Jira ticket gets created, bot responds to user with details of ticket, but as soon as the user clicks submit on the modal it returns an error "We had some trouble connecting".
(Tell what actually happened with logs, screenshots)
No errors in app logs. Only error is in Slack itself that the user sees as soon as they click submit.
Shouldn't the lazy listener functionality ack the initial response when the user clicks submit and allow time for the additional api call and response in Slack?
Screenshot is attached.
Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules
.
The text was updated successfully, but these errors were encountered: