Unclear about responding to modal submissions using only Python Requests & Slack SDK
The Slack SDK version
3.31.0
Python runtime version
3.12.4
OS info
Mac
Have setup a Lambda that listens to events. There's not a lot in the documentation (outside of the Bolt-python readmes) that outline how to ack when a view submission payload is received. Looking for some guidance.
Is it a request to an endpoint that Slack Hosts?
The current issue I'm running into, is that when the submit button is clicked "something went wrong, please try connecting again later" error pops up in the Modal that I've created.
Using solely Slack_SDK and the python requests library.
Edit: Sorry about the boilerplate text
Hi, @jason-jjxy! Thanks for submitting your question 🙌
For ease of development, if possible I recommend using Bolt Python for this use case. As you mentioned, there are a lot more examples a lot of useful functionality with Bolt that will help you with developing with Slack and AWS Lambda, including a built-in ack() function to quickly acknowledge requests.
In the event that you aren't able to migrate to Bolt, you could try to mimic the Bolt Python ack() logic. Essentially, you need to send an HTTP response with a body string that includes the response_action + view. You can reference this answer for more info.
However, my first recommendation would definitely be to migrate over to Bolt Python for ease of use and more support.
👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized.
As this issue has been inactive for more than one month, we will be closing it. Thank you to all the participants! If you would like to raise a related issue, please create a new issue which includes your specific details and references this issue number.