Bot returning error "Operation returned an invalid status code 'BadRequest'" in MS Teams
See original GitHub issueDescribe 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:
- Created a bot in BF Composer consisting of multiple Hero Cards
- Upload the Bot to MS Teams using App Studio
- 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
Issue Analytics
- State:
- Created 2 years ago
- Comments:22
Top GitHub Comments
Interesting. Thanks for following up with your resolution!
I have found the issue and resolved it:
When specifying parameters for the Adaptive Card (Options) one cannot leave parameter # IconUrl() empty if the bot is to be published on Teams.
I’m closing this issue.
Thanks for help @anishprasad01 😃