node.jsazureazure-web-app-serviceazure-bot-service

There was an error sending this message to your bot: HTTP status code NotFound


I tried to deploy the bot in azure. Initially I created a web app bot in azure and then I download the code from azure. After that I added all the production files like .bot, .env, web.config files in my git repository. After that I added my git repository to the azure. I also included the microsoft app id and app password in app.js file and web.config files.

When I start giving test in web chat it is not running properly instead it shows "There was an error sending this message to your bot: HTTP status code NotFound"

Where I missed, please help me.


Solution

  • I would suggest you to make sure you have followed below steps exactly:

    1. First of all make sure you have configured the messaging endpoint as an https URL as it does not supports http.
    2. Check Your Messaging endpoint that you specified and make sure it is same as your using in the bot emulator. See the screen shot.

    enter image description here

    1. On your bot azure portal go to Channel menu and make sure there is no issues. see the screen shot below:

    enter image description here

    1. Azure portal Configuration under App Service Settings there will be MicrosoftAppId and MicrosoftAppPassword do not change these after downloading it. See the below image

    enter image description here

    Note: I also suggest you to create a new project on portal and test it on there whether it is working exactly then download it for your enhancement. you could refer here. For remote debug please take a look here. To publish your local project you could refer this

    If you still have any concern feel free share in comment. Thank you and happy coding!