2

So I have been trying to make a very simple slash command since last 3 days that just triggers a lambda function using an api gateway. The lambda function is quite simple too. I am following the below tutorial to make this

https://medium.com/@farski/learn-aws-api-gateway-with-the-slack-police-ca8d636e9fc0

Before this I have tried many myself with a just hello work lambda function, but no matter what whenever I try to run the command in slack I always get this "dispatch_failed" error.

/appname failed with the error "dispatch_failed"

As you can see this is se generic I dont know whats going wrong in this. Looks like slack is not even hitting the request url which I configured, i am not sure though. Anyone has ever faced this and knows how we can resolve this? Thanks

(The endpoint of api gateway works fine if I just use browser or postman)

P.S If you can suggest any tutorial that shows me how can I integrate slash command with api gateway and lambda, then please.

Faisal Shani
  • 698
  • 1
  • 13
  • 37
  • were you able to resolve this? I am stuck on a similar problem. Thanks! – nit May 02 '22 at 20:20
  • @nit yup. Whats your scenario btw? Can you please tell me so I will be able to guide. – Faisal Shani May 04 '22 at 10:45
  • I am using bolt with Springboot and keep getting this error. I don't know where to see the errors. With normal https post mapping it seems to work ok. I should mention though that my springboot version is 2.0.x, which is lower than what was recommended. – nit May 05 '22 at 22:28
  • This is a general error from slack and it usually comes when something goes wrong on the slack side. They just dont tell you what went wrong and simply show this error. – Faisal Shani May 08 '22 at 09:24

1 Answers1

-1

Use HTTP API you might have using REST API.

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Feb 08 '22 at 18:14