Mohit Fafat
Mohit Fafat

Reputation: 1

Error after publishing the App on Azure

I am working on Bot framework technology. Everything was working fine(when I was using localhost url in bot emulator) but after I published my bot in azure, then by using the publish URL I am trying to test it in bot framework channel emulator, it always responds with the same message "Sorry, my bot code is having an issue". The log says "POST Request to 'https://************.azurewebsites.net/api/messages' failed: [500] Internal Server Error". I get the same reply when I register my bot on https://dev.botframework.com/bots and try to send messages using web chat(I filled the App ID and App Password fields in web.config). Why am I getting that error?

Thanks for your help.

Upvotes: 0

Views: 327

Answers (1)

Ezequiel Jadib
Ezequiel Jadib

Reputation: 14787

Please review the Connect to a bot that is hosted remotely documentation section.

In summary, you need to:

  • Populate the Microsoft App ID and Microsoft App Password fields with the ones you obtained after registering the bot in the Bot Framework portal
  • Ensure that ngrok is installed and that the emulator's App Settings specify the path to the ngrok executable. ngrok enables the emulator to communicate with your remotely-hosted bot.

Upvotes: 1

Related Questions