Unable to listen to button actions in my bolt app but able to listen to events.
I have setup request URL for interactivity and shortcuts.
x in one of the [ ])x in each of the [ ])Filling out the following details about bugs will help us solve your issue sooner.
package version: @slack/bolt => 2.0.1
node version: v12.16.1
OS version(s): Mac OS
Code as same mentioned in the website.
// Listens to incoming messages that contain "hello"
app.message('hello', async ({ message, say }) => {
// say() sends a message to the channel where the event was triggered
await say({
blocks: [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": `Hey there <@${message.user}>!`
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "Click Me Button"
},
"action_id": "button_click"
}
}
]
});
});
__Button Listener__
app.action({ action_id: 'button_click' },
async ({ action, ack, context }) => {
await ack();
try {
const result = await app.client.reactions.add({
token: context.botToken,
name: 'white_check_mark',
timestamp: action.ts,
channel: action.channel.id
});
}
catch (error) {
console.error(error);
}
});
The action listener has to be invoked.
No events fired in the Bolt app.
What actually happened
I see the following in ngrok POST /slack/actions 404 Not Found


Logs, screenshots, screencast, sample project, funny gif, etc.
馃憢 Bolt framework receives all kinds of events with the path /slack/events and properly dispatch them for you. Set the /slack/events also for the Request URL in the Interactivity section.
Thank you so much for the quick reply. IT WORKED 馃ぉ.
It would have been good if the document has some reference mentioning, about the URLs to use for events and interactivity. Spent close to 4 hours yesterday. Thanks again @seratch !!!!
I'm happy to know that 馃槃 Enjoy Slack app development!
Thanks @seratch
Most helpful comment
馃憢 Bolt framework receives all kinds of events with the path
/slack/eventsand properly dispatch them for you. Set the/slack/eventsalso for the Request URL in the Interactivity section.