slash command "dispatch_failed"

Asim Zaidi picture Asim Zaidi · Aug 31, 2020 · Viewed 12.6k times · Source

I have went through creating the custom slash command configuration via slack and installed it on workspace. However when I run it I get this /testing failed with the error "dispatch_failed"

I tried multiple workspaces but same issue. Anyone experienced this?

enter image description here

Answer

Asim Zaidi picture Asim Zaidi · Sep 1, 2020

So after a few tests, I found out that this is just a generic message of anything that fails at slack at this point. I have first my endpoint that was unreachable. So it was returning this message. I fixed that, used ngrok for tunnel so that I could debug and that is how I found this issue.

Also, this error can occur due to the following reasons as well.

  • Errors in code
  • Unreachable backend or Invalidly configured slash command in the app