microsoft / microsoft/AdaptiveCards

[Rendering] The adaptive cards sometimes cannot be rendered

Open
#9,297 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Renderers Bug
Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

Target Platforms

NodeJS

SDK Version

1.2.3

Application Name

Microsoft Teams

Problem Description

With the same adaptive card content input, the adaptive card isn't rendering for a Teams bot while it works for another bot with the same code.

Screenshots

The bot that works:
Image

The bot that doesn't work:
Image

No response

Card JSON
{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "actions": [
        {
            "card": {
                "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                "actions": [
                    {
                        "card": {
                            "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                            "actions": [
                                {
                                    "data": {
                                        "action": "feedback-like",
                                        "reasons": [
                                            "It solved my question",
                                            "The response gives clear guidance",
                                            "The reference link(s) is helpful",
                                            "Other"
                                        ]
                                    },
                                    "title": "Submit👍",
                                    "type": "Action.Submit"
                                }
                            ],
                            "body": [
                                {
                                    "text": "Tell us more.",
                                    "type": "TextBlock",
                                    "wrap": true
                                },
                                {
                                    "id": "reason_0",
                                    "title": "It solved my question",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "reason_1",
                                    "title": "The response gives clear guidance",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "reason_2",
                                    "title": "The reference link(s) is helpful",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "reason_3",
                                    "title": "Other",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "feedbackComment",
                                    "isMultiline": true,
                                    "placeholder": "Please provide feedback on how we can improve this content. If applicable, provide the first part of the sentence or string at issue.",
                                    "type": "Input.Text"
                                }
                            ],
                            "type": "AdaptiveCard",
                            "version": "1.6"
                        },
                        "title": "👍Yes",
                        "type": "Action.ShowCard"
                    },
                    {
                        "card": {
                            "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                            "actions": [
                                {
                                    "data": {
                                        "action": "feedback-dislike",
                                        "reasons": [
                                            "It misunderstood my question",
                                            "The response is hard to understand",
                                            "Out of date/obsolete",
                                            "The solution doesn't work",
                                            "The reference link(s) is broken",
                                            "Other"
                                        ]
                                    },
                                    "title": "Submit👎",
                                    "type": "Action.Submit"
                                }
                            ],
                            "body": [
                                {
                                    "text": "Tell us more.",
                                    "type": "TextBlock",
                                    "wrap": true
                                },
                                {
                                    "id": "reason_0",
                                    "title": "It misunderstood my question",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "reason_1",
                                    "title": "The response is hard to understand",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "reason_2",
                                    "title": "Out of date/obsolete",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "reason_3",
                                    "title": "The solution doesn't work",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "reason_4",
                                    "title": "The reference link(s) is broken",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "reason_5",
                                    "title": "Other",
                                    "type": "Input.Toggle",
                                    "value": "false"
                                },
                                {
                                    "id": "feedbackComment",
                                    "isMultiline": true,
                                    "placeholder": "Please provide feedback on how we can improve this content. If applicable, provide the first part of the sentence or string at issue.",
                                    "type": "Input.Text"
                                }
                            ],
                            "type": "AdaptiveCard",
                            "version": "1.6"
                        },
                        "title": "👎No",
                        "type": "Action.ShowCard"
                    }
                ],
                "body": [
                    {
                        "text": "Was the response helpful?",
                        "type": "TextBlock",
                        "wrap": true
                    }
                ],
                "type": "AdaptiveCard",
                "version": "1.6"
            },
            "title": "👍Feedback👎",
            "type": "Action.ShowCard"
        },
        {
            "card": {
                "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                "actions": [
                    {
                        "title": "TypeSpec Discussion",
                        "type": "Action.OpenUrl",
                        "url": "https://teams.microsoft.com/l/channel/19%3A906c1efbbec54dc8949ac736633e6bdf%40thread.skype/TypeSpec%20Discussion?groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47"
                    },
                    {
                        "title": "Javascript",
                        "type": "Action.OpenUrl",
                        "url": "https://teams.microsoft.com/l/channel/19%3A344f6b5b36ba414daa15473942c7477b%40thread.skype/Language%20%E2%80%93%20JS%E2%80%89%EF%BC%86%E2%80%89TS%20%F0%9F%A5%B7?groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47"
                    },
                    {
                        "title": ".Net",
                        "type": "Action.OpenUrl",
                        "url": "https://teams.microsoft.com/l/channel/19%3A7b87fb348f224b37b6206fa9d89a105b%40thread.skype/Language%20-%20DotNet?groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47"
                    },
                    {
                        "title": "Java",
                        "type": "Action.OpenUrl",
                        "url": "https://teams.microsoft.com/l/channel/19%3A5e673e41085f4a7eaaf20823b85b2b53%40thread.skype/Language%20-%20Java?groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47"
                    },
                    {
                        "title": "Python",
                        "type": "Action.OpenUrl",
                        "url": "https://teams.microsoft.com/l/channel/19%3Ab97d98e6d22c41e0970a1150b484d935%40thread.skype/Language%20-%20Python?groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47"
                    },
                    {
                        "title": "Go",
                        "type": "Action.OpenUrl",
                        "url": "https://teams.microsoft.com/l/channel/19%3A104f00188bb64ef48d1b4d94ccb7a361%40thread.skype/Language%20-%20Go?groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47"
                    },
                    {
                        "title": "Engineering System",
                        "type": "Action.OpenUrl",
                        "url": "https://teams.microsoft.com/l/channel/19%3A59dbfadafb5e41c4890e2cd3d74cc7ba%40thread.skype/Engineering%20System%20%F0%9F%9B%A0%EF%B8%8F?groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47"
                    }
                ],
                "body": [],
                "type": "AdaptiveCard",
                "version": "1.6"
            },
            "title": "🕵️‍♂️Support Channels🕵️‍♀️",
            "type": "Action.ShowCard"
        }
    ],
    "body": [
        {
            "text": "🤖The responses are generated by AI and may contain outdated information. Please verify any important details independently. 🔁For follow-up questions, @mentioning the bot is recommended. 📝Please note that the bot is unable to reply to edited messages.",
            "type": "TextBlock",
            "wrap": true
        }
    ],
    "type": "AdaptiveCard",
    "version": "1.6"
}
Sample Code Language

No response

Sample Code

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in NodeJS with SDK version 1.2.3, the supplied Adaptive Card JSON, and Microsoft Teams. Compare the rendering behavior between the working and failing bots, documenting their environment differences. Done means the cause of the inconsistent rendering is identified and the same card renders reliably in both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.