Search code examples
node.jsazurebotframework

Azure web chat testing shows "There was an error sending this message to your bot: HTTP status code Unauthorized"


I depolyed my microsoft bot to azure. After deployment I went to check my bot response through "Test in Web Chat", But it shows message could not send, So I went to channels and view my web chat then it shows "There was an error sending this message to your bot: HTTP status code Unauthorized".

Where I missed ? I do not do any mistakes in microsoft app id and microsoft app password. I correctly updated that.

Please help to resolve this issue.


Solution

  • You need to add the 'production' endpoint in the .bot file. This needs to be added by the developer after deployment, along with App Id and App Password. If your bot file does not have a production endpoint and you don't have the app id and password stored somewhere else, you will have to follow this guide to register your bot on the Azure Portal.