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.

Emulator does not render valid adaptive card in an activity

See original GitHub issue

Version of emulator: 4.9.1

The below activity has a valid adaptive card that renders properly in adaptivecards.io. In emulator it looks like the below. It seems related to having a curly bracest in the string value. If I change it to obj= and remove the trailing curly brace it works fine.

In emulator (wrong): image

In adaptive cards designer (right): image

Activity:

{
    "type": "message",
    "attachments": [
        {
            "contentType": "application/vnd.microsoft.card.adaptive",
            "content": {
                "type": "AdaptiveCard",
                "version": "1.0",
                "body": [
                    {
                        "type": "TextBlock",
                        "text": "simple",
                        "size": "large"
                    },
                    {
                        "type": "FactSet",
                        "facts": [
                            {
                                "title": "due",
                                "value": "{timex: [2020-06-01], type: date}"
                            }
                        ]
                    }
                ],
                "$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
            }
        }
    ]
}

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
corinagumcommented, Mar 16, 2021

In progress now - sorry @chrimc62 for the wait. Low on manpower haha.

1reaction
stevkancommented, Jun 1, 2020

Possibly related to Web Chat bug #3165

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adaptive cards are not rendering on Bot Emulator v4.14.1
Even if I run the default code, the cards are not rendered. How do I resolve this and test the bot locally? teamsBot.js...
Read more >
Add card actions in a bot - Teams - Microsoft Learn
Adaptive Cards with imBack action​​ You can include additional hidden properties in the data object, if required. Set to imBack .
Read more >
Bot Framework in Node.js - Adaptive Cards (part 7)
We first send the Adaptive Card as an attachment. We then send a Text prompt - but with no text. The Text prompts...
Read more >
How to: Adaptive Cards and the MS Bot Framework - DEV ...
This time, I'd like to show you how to create a simple bot that can return an adaptive card as a response to...
Read more >
Action.Execute - Schema Explorer | Adaptive Cards
Clients process the event by sending an Invoke activity of type adaptiveCard/action to the target Bot. The inputs that are gathered are those...
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