Slack messages do not reach Azure - azure

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://learn.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.

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

Related

Can't talk to QnAMaker bot in Azure or Teams, but can locally with emulator

I created a QnAMaker bot through the website https://www.qnamaker.ai, which then took me through the steps creating the bot in Azure.
When I click on the Test in Web Chat section of the bot in Azure, before I've even typed anything, an error message arrives in Channels > Web Chat > Issues that states: "There was an error sending this message to your bot: HTTP status code Unauthorized"
I have download the code of the bot locally, and running it with npm, using ngrok and the Bot Emulator, I have successfully managed to connect to the bot and it works.
I haven't touched the AppID or Password in the Bot's settings in Azure, and these are the same credentials I used for the local bot that works.
Could someone please help?
Thanks
I solved this by removing the bot entirely and creating a brand new one. I think the issue with some sort of mix up with the AppID and AppPassword, even though they were both correct in the settings

Azure Bot: There was an error sending this message to your bot: HTTP status code Forbidden

PROBLEM: When I try to test my bot using the web chat in the MS Azure GUI, it gives me the error
There was an error sending this message to your bot: HTTP status code Forbidden
I've done the following:
Created a bot using the Microsoft Bot Framework, LUIS, and NodeJS
Created resource for the bot in MS azure
Successfully tested the bot locally using the bot emulator (without using the bot ID and password)
Set up continuous deployment so all updates made to my repo are reflected in the Azure bot service
Defined all environment variables in the application settings tab of the azure bot service (bot id and password are correct and included)
Included web.config, iisnode.yml, and publish.js files
Heeelp. I've googled this, tried alternative solutions mentioned for similar problems, but no luck.
NEVERMIND! I had stopped the application weeks ago, that's why it gave the forbidden error. I didn't realize until I tried to make a GET request in Postman to the bot endpoint.

Microsoft Azure Bot App Skype Channel not Working

I have now spent too much time on this issue and still can't seem to fix it.
I have an Azure Bot and I have configured it for Microsoft Teams and Skype.
They do not seem to be working.
The Skype Bot Publish is still 'inReview', I can add the Bot as a contact on skype/teams and when I send a message it is 'Sent' according to Skype, but I do not get a reply.
The Azure Webchat (Test in Webchat) works flawlessly on the Azure Web interface.
There must be something that I'm missing?
Since the last update there does not seem to be an updated how to or explanation to the newly added fields.
When you publish the Skype channel there is an option:
Bot website? What should be put here?
Also on the Calling section:
Webhook (for calling)
Thank you.
More pictures:

Bot Framework bot randomly doesn't answer messages

I have a bot that consists of a Facebook Messenger connected to my bot code via the Microsoft Bot Framework. The bot works fine in the webchat, however on Facebook Messenger only about 1/3 of my messages get delivered to the bot.
That means that I have to send "hi" three or four times before the bot answers me once. Before it answers, the message shows as undelivered. There is nothing in the Bot Framework log in the web interface at dev.botframework.com, and my bot code (running on Azure) doesn't even receive anything from the bot framework - no HTTPS request whatsoever. When it does receive something (which, again, is about 1/3 of the times), the bot answers properly.
In facebook settings, I am using the standard endpoint (https://facebook.botframework.com/api/v1/bots/[my bot name]).
It just seems that most messages are somehow lost between Facebook and Bot Framework, and never reach my bot code.
There is no logging on the Facebook side so I'm out of ideas how to debug - there are no traces of any errors anywhere.
Update: the problem seems to occur only with bots registered using the Microsoft's new method of registering bots via Azure Portal. Bots registered at dev.botframework.com don't seem to be affected.
In case the application is hosted in an Azure WebApp or Azure Function App, please turn on Always On for the application. Might be when you call the Bot API, it switches it from stand by mode to On, that might come with some latency since Microsoft idles it's WebApp by default. And by default, Always On is kept to OFF.
Refer here to turn On , Always ON.
If you have not hosted the Bot Framework in Azure, then it might be a different issue altogether.

New bot not answering messages in microsoft teams

I'm running a bot with Microsoft Teams and have it setup in Azure. It's a demo bot from the bot builder code Microsoft released. I'm pointing it to a local server that has ngrok running. This works fine when I test via Web Chat in Azure but it doesn't work at all when working with Teams.
The app sideloads properly and the manifest is accepted by teams. No response appears to be making it to the server. When I click to show the Bot Channels in Azure some kind of OPTIONS query is being sent to the server and the demo bot throws a 405 error.
The bot id is f22039b8-5400-4569-a0f2-5bdceb8431f2 but I can't talk to it in 1:1 chat either when I specify this ID.
There are no logs in Azure or teams- I don't see any errors, so I have no idea how to start debugging this.
This is a link to someone with the exact same question:
Bot not answering messages in microsoft teams
There is currently a bug in our bot registration code that is causing this. We are currently investigating its root cause.
As a workaround, add the Skype channel and the MS Teams channel to the bot.

Resources