Sarath
Sarath

Reputation: 376

Slack - Interactive Message URL is not getting invoked

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.

Error

Darn – that didn't work (error message: 400_client_error). Manage the app at testApp.enter image description here

Upvotes: 0

Views: 1778

Answers (1)

Sarath
Sarath

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

Related Questions