AIBots

Azure Bot Service “Couldn’t send” error on emulator

Yesterday I wanted to deploy a new bot with the Azure Bot Service to start developing a new digital assistant within the Azure Bot Framework platform. But as I created my bot from the Azure portal I ran into a strange error upon testing the bot immediately, which you can see below:

Azure Bot Service error message
Azure Bot Service error message

As you can see the bot’s function started, but it didn’t finish successfully and in the test window I got the error message “couldn’t send retry” which was quite strange as I didn’t modify the code at all. I started to check if it’s something in my Azure’s region and the subscription but I also failed when deploying a new bot in another region with another subscription. So I asked the Azure support team for help and they immediately helped me solving the problem.

Solution

If you run into this issue, go to your bot’s package.json file and check the botbuilder package version:

Azure Bot Service botbuilder wrong package version
Azure Bot Service botbuilder wrong package version

If you see the same botbuilder version then please change it to 3.12.0 like shown below:

Azure Bot Service botbuilder right package version
Azure Bot Service botbuilder right package version

Now you need to update your npm packages for your solution. So please go to https://<your-bot-name->.scm.azurewebsites.net and click on Debug console and choose CMD. Now you have to navigate to D:\home\site\wwwroot\messages where you need to execute npm update like shown below:

Azure Bot Service npm update
Azure Bot Service npm update

When this operation has finished, you should be fine now and your bot should be starting to work now and you can develop and test it from now on, have fun!

Kudos to the Azure Support Team and Andrea Orimoto who immediately helped me with my problem!

If you still face the problem mentioned please refer to https://stackoverflow.com/questions/47661295/azure-bot-service-couldnt-send-retry-on-emulator?noredirect=1#comment82292876_47661295

Leave a Reply

Your email address will not be published. Required fields are marked *