question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

slash commands result in `dispatch_failed`

See original GitHub issue

Description

I’m using a localtunnel type service to send commands to my bot But on sending /commands, I just get an error message when sending to my local machine via the port forwarding tunnel.

/hint failed with the error "dispatch_failed"

the code works when deployed other commands work fine over the tunnel service.

is there anything special about slash commands? they seem to use http (or https) not sockets or anything fancy.

Describe your issue here.

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • I’ve read and understood the Contributing guidelines and have done my best effort to follow them.
  • I’ve read and agree to the Code of Conduct.
  • I’ve searched for any related issues and avoided creating a duplicate issue.

Bug Report

bolt latest “@slack/bolt”: “^2.1.1”,

Reproducible in:

package version:

node version:

OS version(s):

Steps to reproduce:

setup app configure slash commands configure local tunnel service nothing arrives at server

Expected result:

slash command events

Actual result:

What actually happened

image

Attachments:

see above

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

27reactions
mwbrookscommented, Aug 31, 2020

Thanks for looping around on this issue @tommyvn!

Judging from #604 and this issue (#579), we may want to clarify that all incoming requests (actions/events/commands/etc) are received on /slack/events.

If others find that @tommyvn hint toward /slack/events solves their issue, can you please add a 👍🏻 to this comment so that we know this is the problem. If it is, then I’ll try to update the docs!

13reactions
tommyvncommented, Aug 31, 2020

author of localhost.run here. I looked into this and I had this exact error. You need to make sure your Request URL in the screenshot @dcsan posted above has the event path in, ie: https://your-domain/slack/events. I posted a minimal viable example for commands at https://gist.github.com/tommyvn/62a6c4dc574430e06f3dbcf528511953 to hopefully hint others towards this solution. edit: removed unnecessary comments above after @stevengill set me on the right path on #604

Read more comments on GitHub >

github_iconTop Results From Across the Web

slash command "dispatch_failed" - slack - Stack Overflow
I have went through creating the custom slash command configuration via slack and installed it on workspace. However when I run it I...
Read more >
Slack slash command failed with the error "dispatch_failed"
Hello. I'm trying to build a simple "Suggestions Box" slash command in Slack and use Power Automate to document the suggestions we receive....
Read more >
Slack Integration using Slash command - ServiceNow
I am trying to achieve an integration with slack using slash commands such that based on the command and params passed with the...
Read more >
slack command /genie failed with the error "dispatch_failed"
All of our slack command failed with > /genie failed with the error "dispatch_failed" And I already try to reinstall the slack.
Read more >
Enabling interactivity with Slash Commands - Slack API
Slash Commands allow users to invoke your app by typing a string into the message composer box. A submitted Slash Command will cause...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found