MicrosoftDocs/AdaptiveCards

Carousel Issue

Opened this issue · 0 comments

I have a adaptive card with version 1.6 which has suggested actions. It is printing fine at client side when we use the context.SendActivity(IActivity).

But the Adaptive card with version 1.6 having carousel type and a page inside is not being sent to client and I am getting the below error at context.SendActivity(IActivity).

Microsoft.Bot.Schema.ErrorResponseException: Operation returned an invalid status code 'BadRequest'

Can anyone help on this......

this is the sample adaptive json:

{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.6",
"body": [
{
"type": "Carousel",
"rtl": false,
"pages": [
{
"type": "CarouselPage",
"rtl": false,
"items": [
{
"type": "TextBlock",
"text": "Page 1",
"wrap": true
}
]
},
{
"type": "CarouselPage",
"rtl": false,
"items": [
{
"type": "TextBlock",
"text": "page 2",
"wrap": true
}
]
}
]
}
]
}