New Foundry - Publishing an Agent to Web / Teams channel (No code) Results in 400 error #277
Replies: 3 comments 9 replies
-
|
Are you getting an 400 code when testing the web chat to the agent connected to the MCP server? I wanna make sure we're having the same issue. Using the new foundry portal and publishing an agent to an Azure bot im also getting 400 returns with no way (that I've found) of tracing this to see where something might be misconfigured |
Beta Was this translation helpful? Give feedback.
-
|
This looks related to what I’m seeing. When a published Azure AI Foundry Agent is invoked via the ActivityProtocol API, the agent runtime itself uses the ActivityProtocol execution path to send the reply activity. In this path, the callback activity contains an error message instead of a normal response. The same agent configuration works correctly in inline chat / playground. So the issue does not appear in inline chat, but only when the bot runtime responds via the ActivityProtocol path (in my case especially when Knowledge is enabled). I’ve described the full reproduction and observations here for additional context: |
Beta Was this translation helpful? Give feedback.
-
|
Hi @alexanderdanson and @smbakker thanks for sharing your experience and feedback on the new foundry portal experience connecting to Web/Teams. Since New Foundry Portal came out of public preview we have made a repository for open feedback available here: https://github.com/microsoft-foundry/new-foundry-portal the team have asked if you can submit the an issue on this topic so they can assign and investigate |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've attempted to publish a couple of agents on the new Foundry using a no code approach. In one case, I've connected a Knowledge Base using the built-in foundry tools (connected via Azure Search), and in the other case I've connected a custom MCP server. Both approaches work fine in the playground.
However, when I publish to Teams using the "one click publish", an Azure bot is created for me. When testing the web chat preview, and also after having deployed my bot as an app in Teams, I receive the same error:
Encountered error=Response status code does not indicate success: 400 (Bad Request).. If issue persists, please use following identifiers in any support request: ConversationId = XXXXX, activityId = XXXXX
I've added Application Insights, but the error seems to be happening before the agent runtime resulting in a lack of traces. I'm also writing from the Bot to my application insights resource. Log Analytics is also set up both for the Bot and for the agent, but doesn't provide any further details on the error.
I've attempted to solve by giving the Bot (Service Principal) a role of AI User / Developer on my Foundry resource in case this was an authentication issue but this didn't solve it.
Has anyone else experienced a similar issue and found a solution?
Beta Was this translation helpful? Give feedback.
All reactions