Reputation: 376
I have enabled interactive component for my slack app with an URL from AWS API Gateway which triggers a lambda function. Whenever I click on the interactive component eg. button, I am not receiving POST request from slack.
Instead I get an error message on the slack window.
Darn – that didn't work (error message:
400_client_error
). Manage the app at testApp.
Upvotes: 0
Views: 1778
Reputation: 376
Action URL will receive an HTTP POST request, including a payload
body parameter, itself containing an application/x-www-form-urlencoded
JSON string.
I was trying to parse the request body as JSON
For reference: https://medium.com/@farski/learn-aws-api-gateway-with-the-slack-police-ca8d636e9fc0
Upvotes: 1