Hey all, I'm having trouble closing a modal after the user submits the view. My code is in AWS Lambda and I have already tried several iterations of returning 200's with empty bodies, as per the documentation, but nothing seems to close the modal.
Am I missing something?

I was able to solve this, though I'm not sure how or why. I solved it by changing my return statement in the AWS Lambda for the following:
returnobject={
"statusCode": 200,
"headers": {
"Content-Type": "application/json"
},
"body": "",
"response_action": "clear"
}
return returnobject
If anybody can explain why this works I would appreciate it a lot
Hi @tinoargentino, thanks for using this SDK!
I'm also not sure why your code didn't work and the current version works so far yet. As you may know, response_action: clear is a bit different operation. If you're fine to try our another library built on top of this SDK - Bolt, implementing this type of apps should be much easier.
https://github.com/slackapi/bolt-python/blob/v0.9.6b0/examples/aws_lambda/aws_lambda.py
If you have questions with Bolt, please feel free to post it to the project's issue tracker.
https://github.com/slackapi/bolt-python/issues
Thanks once again Seratch. My project is finished for now but I'll have this in mind.
Thanks for your reply! Let me close this issue now but please feel free to write in or reopen as necessary.
Most helpful comment
Hi @tinoargentino, thanks for using this SDK!
I'm also not sure why your code didn't work and the current version works so far yet. As you may know,
response_action: clearis a bit different operation. If you're fine to try our another library built on top of this SDK - Bolt, implementing this type of apps should be much easier.https://github.com/slackapi/bolt-python/blob/v0.9.6b0/examples/aws_lambda/aws_lambda.py
If you have questions with Bolt, please feel free to post it to the project's issue tracker.
https://github.com/slackapi/bolt-python/issues