问题
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.
回答1:
I would suggest you to make sure you have followed below steps exactly:
- First of all make sure you have configured the messaging endpoint as
an
https
URL as it does not supportshttp
. - Check Your Messaging endpoint that you specified and make sure it is same as your using in the bot emulator. See the screen shot.
- On your bot azure portal go to
Channel
menu and make sure there is no issues. see the screen shot below:
- Azure portal
Configuration
underApp Service Settings
there will beMicrosoftAppId
andMicrosoftAppPassword
do not change these after downloading it. See the below image
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!
来源:https://stackoverflow.com/questions/55980254/there-was-an-error-sending-this-message-to-your-bot-http-status-code-notfound