Bot created using Bot Framework Composer throws: 'Operation returned an invalid status code 'BadRequest'
See original GitHub issueDescribe the bug
Bot created using Bot Composer throws 'Operation returned an invalid status code ‘BadRequest’ immediately after printing dynamic data using Adaptive Card. The Bot is a Skill that is called from a Root bot. The error is only thrown when the bot is called as a skill and does not throw the exception when run on its own. Bot is being tested on composer webchat and emulator.
Version
Version: 2.1.2 Electron: 8.2.4 Chrome: 80.0.3987.165 NodeJS: 12.13.0 V8: 8.0.426.27-electron.0
Browser
- Chrome
OS
- Windows
To Reproduce
Steps to reproduce the behavior:
- Create a Root and Skill bot.
- In the Skill bot, BeginDialog -> Dialog A ->Dialog B
- Dialog B contains adaptive card that prints dynamic data.
- Call Skill bot from the Root bot
- Skill Bot prints adaptive card and immediately throws exception.
Expected behavior
The Skill bot should print the adaptive card without throwing the exception and allow user to pick a choice and process further activities.
Screenshots
Stack Trace:
Exception thrown after adaptive card.
The adaptive card here prints choices that are passed to it dynamically through an array.
Additional context
The skill bot logic seems fine and does not throw any exceptions when run directly through composer. But it throws the above exception when called from any RootBot.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (1 by maintainers)
Top GitHub Comments
@ramfattah Yes, the issue seems to be similar to ours and the flow as well. In our case it doesn’t throw the exception when Adaptive card containing dialog (Dialog C) is directly called through Begin Dialog. The exception is thrown even after publishing the skill bot to azure.
Overall the issue is very similar to the one you mentioned above.
@rishabh7k - Closing this issue due to inactivity. Please feel free to reopen if the solution provided does not resolve your issue. Thanks!