I create and send a message attachment:
var zz = { "text": "Would you like to play a game??", "attachments": [ { "text": "Choose a game to play", "fallback": "You are unable to choose a game", "callback_id": "wopr_game", "color": "#3AA3E3", "attachment_type": "default", "actions": [ { "name": "chess", "text": "Chess", "type": "button", "value": "chess" } ] } ] } web.chat.postMessage(message.source.channel, '', zz);
The button message displays well on Slack, but when I press the button, there is no PACK response from Slack to my local ngrok or express route:
app.post('/slackaction', function(req, res)
While other messages send a message to this route.
I see this error from Slack after clicking a button:
"Oh no, something went wrong. Please try that again"
Slack Interactive Messages request_url set as: https://xxx.ngrok.io/slackaction
source share