MS Teams Bot message-extension- Agent returned unsuccessful status code InternalServerError

103 Views Asked by At

I have a problem with the configuration of the bot in message-extension. I am using the app in MS Teams for both the bot (message-extension in channels only) and tabs for personal use. Everything locally worked. As I published for the organization, only tabs works, message-extension does not respond to the query and to the others, that is, the whole for the bot solution does not work.

Result: Unable to reach app. Please try again.

After checking in the console, I see something like this:

enter image description here

enter image description here

Locally for the bot, I use the Bot Framework implemented by dev.teams.microsoft, while the production version of the bot is generated for Azure as Azure Bot.

This is the configuration I have for env local files:

enter image description here

For the production version, on the other hand, I have these:

enter image description here

In addition, the Bot was converted to ES6 language, I defined it in package.json to read the type as a module:

enter image description here

The manifest.json is set up like this:

enter image description here

enter image description here

I'm missing an idea of what to set in Azure or what to set in code to make message-extension start responding to user requests.

1

There are 1 best solutions below

5
David Dupré On

Got the same problem, I followed this tutorial https://microsoft.github.io/app-camp/new-adventure/05-add-sso/, all works fine in local, but I get "Agent returned unsuccessful status code InternalServerError" when I publish the bot on Azure...

I'll return here if I find something