Reputation: 21
When a user submits the modal, which I am using to collect information for a Slack bot, a lambda function is launched and an event is scheduled using hasura. I always receive this error when user is submitting the modal:
We had some trouble connecting. Try again?
return {statusCode:200}
didn't solve the issue, and neither did the following:
let res = {
body:"",
statusCode:200,
headers: {
"content-type": "application/json",
}
}
return res;
But none of the above worked. Any suggestions on what could be going wrong and how to proceed?
Upvotes: 1
Views: 260
Reputation: 1
The problem may originate from the button you're using to submit the modal. Showing the json structure could shine some light on that.
Upvotes: -1