2
votes

So I have an issue to make the communication possible between Slack and BotFramework. I deploied once a bot on Slack to test the deployment and everything was working fine. I worked on another bot and when I try to deploy it there is no message reaching the bot on Azure.

Since I can not see errors on Azure or from Slack, I think my issue does not come from my code. What seems very strange is that I did not get any message from Slack telling me that the messages can not reach the bot and yet I can not see message reaching Azure.

I use this to install the bot on Slack https://docs.microsoft.com/en-us/azure/bot-service/bot-service-channel-connect-slack except that I did not suscribe to events which was working fine with my initial deployment.

I tried with a sample bot, I got the same issue. So I must be missing something about the configuration.

My bot is working fine with cortana and directline.

1
Do you see any requests incoming to the server? - Amit be
I do not see any - Thomas
Do your try to turn on application insight to trace and check if the requests hit the server? Beisdes, does your bot work as expected with other channels, such as webchat? - Fei Han
As I said, my bot works fine with the channels Cortana and DirectLine and it also works fine in the web chat. I do not see any request coming from Slack in Application Insight. - Thomas
Have you tried deleting the configuration for Slack and then attempting to re-add the channel back? If not, can you try the process again and open up a Developer console in your browser when you start the process? This is so if you receive any error messages during the process you can get the .har file. - Steven G.

1 Answers

0
votes

First thing I'd try is to find out if the problem is on the Slack side or the Bot Service side.

To test out the Bot Service side:

  • Have you tried running in the test chat?
  • Or tried debugging the bot service on your local machine?

If it helps, I've written up a little tutorial on how to debug a bot service.

Hope that helps!

Tim