BotFramework-Composer: Bot returning error "Operation returned an invalid status code 'BadRequest'" in MS Teams

Describe the bug

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.

Version

2.1.2

Browser

  • Electron distribution
  • Chrome
  • Safari
  • Firefox
  • Edge

OS

  • macOS
  • Windows
  • Ubuntu

To Reproduce

Steps to reproduce the behavior:

  1. Created a bot in BF Composer consisting of multiple Hero Cards
  2. Upload the Bot to MS Teams using App Studio
  3. The error occurs

Expected behavior

After user chooses an option on initial hero card, another one should pop up, like in a menu.

Screenshots

Additional context

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 23

Most upvoted comments

Interesting. Thanks for following up with your resolution!