Search code examples
azurebotframeworkmicrosoft-teamsbot-framework-composer

Bot returning error "Operation returned an invalid status code 'BadRequest'" in MS Teams


I created a bot in BF Composer. It relies mostly on a series of adaptive Hero Cards. In Emulator and in Azure Web Chat the bot works fine but once I uploaded it to MS Teams (using App Studio) it returned error: Operation returned an invalid status code 'BadRequest'

Initial hero card loads fine and the problem occurs once user chooses an option from the initial hero card (it should be followed by another hero card).

In Azure portal in Teams Channel I'm getting the following error:

March 17, 2022, 9:04 AM GMT+1
Invalid image URI

but I don't see how it relates and how it's problem only on Teams.

I'm using also App Insights but haven't seen anything useful there.

Help would be greatly appreciated.


Solution

  • So it turns out when specifying parameters for the Adaptive Card one cannot leave parameter IconUrl() empty if one wants to publish it in Teams!