Nodejs bot return 404 when deployed to Azure app service

Viewed 46

I tried to run the bot and deploy it to azure: https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/javascript_nodejs/05.multi-turn-prompt

I followed this doc to do deployment: https://docs.microsoft.com/en-us/azure/bot-service/provision-and-publish-a-bot?view=azure-bot-service-4.0&tabs=multitenant%2Cjavascript

After setup the identity, the bot works well locally, but when I test it from web chat, there is no response, and if I access by https://0915-bots-app-service.azurewebsites.net/api/messages I got this error: The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. I suspect this is caused by the generated web.config file, but seems there is no issue in it.

picture from wwwroot

The MicrosoftAppId and password are set correctly for both the Azure bot and app service.

Does anyone have some clue? Thanks!

0 Answers
Related