Prakash
Prakash

Reputation: 621

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.

Upvotes: 3

Views: 1306

Answers (2)

ford
ford

Reputation: 21

I have answered here: "There was an error sending this message to your bot: HTTP status code NotFound"

But I'll paste the answer here as well for convenience.

What solved my problem was changing the Protocol Setting of the App Service. IF you've deployed your bot using Bot Composer, in the resource group you will find 2 App Services -- one with a 'qna' suffix and the other without. Choose the one without the 'qna' suffix.

Select the App Service --> TLS/SSL settings --> HTTPS Only --> On

Image for reference

Upvotes: 1

ranusharao
ranusharao

Reputation: 1854

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.

Upvotes: 1

Related Questions