question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bot created using Bot Framework Composer throws: 'Operation returned an invalid status code 'BadRequest'

See original GitHub issue

Describe 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:

MicrosoftTeams-image

Exception thrown after adaptive card.

Screenshot 2022-05-24 163411

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:closed
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
rishabh7kcommented, May 25, 2022

@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.

0reactions
msomanathancommented, Jul 15, 2022

@rishabh7k - Closing this issue due to inactivity. Please feel free to reopen if the solution provided does not resolve your issue. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bot returning error "Operation returned an invalid status code ...
Created a bot in BF Composer consisting of multiple Hero Cards; Upload the Bot to MS Teams using App Studio; The error occurs....
Read more >
Bot returning error "Operation returned an invalid status code ...
I created a bot in BF Composer. It relies mostly on a series of adaptive Hero Cards. In Emulator and in Azure Web...
Read more >
Azure Bot skill - Operation returned an invalid status code ...
Parent bot works fine, but invoking skill gives error has below: Operation returned an invalid status code 'NotFound' at Microsoft.Bot.
Read more >
Operation Returned An Invalid Status Code 'Forbidden
Operation returned an invalid status code 'badrequest' is returned when the bot is published on Teams channel.: Bot Framework. This occurs particularly when ......
Read more >
Microsoft/BotBuilder - Gitter
I tried to publish template 02.echo-bot and now I am receiving the error ... was an error sending this message to your bot:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found