Interactive Message Filtering Bricked in Latest Update
Description
Describe your issue here.
- [X ] bug
- [X ] question
Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Steps to reproduce:
- Use block kit found here
- Send to interactive message app
- Middleware can't filter properly for this message
slackInteractions.action({'action_id': "escalation_response"}, escalationResponseHandler)
Expected result:
I expect middleware to be able to detect it when I use action id as a filter. The version from to 1.1.0 did that successfully. This version does not.
Actual result:
What actually happened, middleware skips this.
Request:
- How do I fix my middleware to be able to listen to the messages I have in the block kit?
- How do I set up a catch all filter so I can record all unrelated events?
- Could the slack team add me to the slack team where I Can message them directly please? Customer support was not helpful.
@awcchungster Sorry to hear you ran into this issue. I'm not quite sure how your listener was working up until 1.1.0 but you should be able to fix your issue by changing 'action_id' to actionId. Using Block Kit-supported listeners is documented on the README and you can find examples relevant to your listener at https://github.com/slackapi/node-slack-interactive-messages#user-content-action-matching-with-blocks.
If you run into any more issues, let me know
@shanedewael
Changed to:
slackInteractions.action({'actionId': "escalation_response"}, escalationResponseHandler)
Still not working.
Could someone reach out to me directly so we can move faster on this please?
It should be
slackInteractions.action({actionId: "escalation_response"}, escalationResponseHandler)
(no quotes)
Actually, I don't think the change above has an effect since Javascript will treat 'actionId' and actionId the same when it's in an object.
That being said, it might be helpful to turn on debugging to try and get to the bottom of what's happening. To enable it for the entire package, you can add DEBUG=@slack/interactive-messages:* when you're running the app from the command line. So if you previously ran your app using node app.js, you would use the command DEBUG=@slack/interactive-messages:* node app.js. This is talked about in the maintainers guide.
On our opensource projects, we don't typically offer 1-on-1 support and do our best to answer any open Github issues in a timely manner.
@slack/interactive-messages:http-handler request received - method: POST, path: / +0ms @slack/interactive-messages:http-handler request signature is not valid +2ms
Ah, that error makes sense.
You'll want to make sure you're passing in a valid Signing Secret from your app configuration page

You pass the signing secret into the app when you instantiate the adapter:
// Create the adapter using the app's signing secret, read from environment variable
const slackInteractions = createMessageAdapter(YOUR_SIGNING_SECRET_HERE);
Okay, hmm interesting, somehow the keys got changed. Thank you for the clarification.
escalationResponseHandler = (payload, respond) => {
// for help, refer to this documentation page: // https://github.com/slackapi/node-slack-interactive-messages let message_immediate_response = payload.message .... return message_immediate_response
I return message_immediate_response to update the post, and then the respond() is used in my callback after the steps are fully processed. The return message_immediate_response isn't changing anything. Any thoughts of what I'm missing?
@awcchungster we just released v1.1.1 of this package yesterday, which contained a pretty critical fix. i'm not sure whether this would have affected your app in the way you're asking about here, but its possible. can you give it a try with the latest release and see if its still happening?
if for some reason your app takes longer than 2.5 seconds to (synchronously) process the message before returning in the callback, then you might find that the return message_immediate_response has no effect. if you shared the debug logs, we would be able to figure out if that was happening. also, you might be able to look at them yourself and trace any problems.