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 returning error "Operation returned an invalid status code 'BadRequest'" in MS Teams

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:22

github_iconTop GitHub Comments

1reaction
anishprasad01commented, Apr 4, 2022

Interesting. Thanks for following up with your resolution!

0reactions
krassussofficialcommented, Apr 4, 2022

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 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bot returning error "Operation returned an invalid status code ...
So it turns out when specifying parameters for the Adaptive Card one cannot leave parameter IconUrl() empty if one wants to publish it...
Read more >
Operation returned an invalid status code 'Forbidden'/'NotFound'
I am having a recurring problem with our Bot in Teams that I am struggling to find a root cause and fix for....
Read more >
Operation returned an invalid status code 'BadRequest'
Solved: I tried to use RLS with PowerBi embedded analytics. I followed steps from Using row-level security with embedded content in Power BI ......
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 >
PowerShell Azure RM Api Management Import Api Error
Your open channel to Microsoft engineering teams. Select a page ... ##[error]Operation returned an invalid status code 'BadRequest'. The command is...
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