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.

[Rendering] Adaptive cards are not rendering

See original GitHub issue

Target Platforms

NodeJS

SDK Version

1.4

Application Name

Microsoft Teams

Problem Description

Adaptive cards are not rendering in Channels, When adaptive cards or being posted in channel by Bot or webhooks the card is not being rendered for some users

Screenshots

image image

Card JSON

{
            "type": "AdaptiveCard",
            "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
            "version": "1.3",
            "body": [
                {
                    "type": "TextBlock",
                    "text": "Please fill the form to get traceroute",
                    "wrap": true,
                    "size": "large",
                    "weight": "bolder",
                    "id": "title"
                }, 
                {
                    "type": "Input.Text",
                    "placeholder": "Enter an IP Address or Hostname",
                    "isMultiline": false,
                    "wrap": true,
                    "width": "stretch",
                    "maxLength": 100,
                    "id": "destinationIP",
                    "isRequired": true,
                    "errorMessage": "Please enter an IP Address or Hostname",
                    "label": "Destination Endpoint"
                },
                {
                    "type": "Input.ChoiceSet",
                    "value": "",
                    "choices": [
                      {
                          "title": "NAME",
                           "value": "URL"
                          },
                          {
                              "title": "NAME",
                              "value": "URL"
                              },
                              {
                                "title": "NAME",
                                  "value": "URL"
                                  },
                                  {
                                      "title": "NAME",
                                    "value": "URL"
                                    },
                                    {
                                        "title": "NAME",
                                        "value": "URL"
                                        }
                    ],
                    "placeholder": "Please select a value",
                    "id": "sourceDatacenter",
                    "isRequired": true,
                    "errorMessage": "Please select a source datacenter",
                    "label": "Source Datacenter"
                },
                {
                    "type": "ActionSet",
                    "actions": [
                        {
                            "type": "Action.Submit",
                            "title": "Submit",
                            "data": {
                                "postback_prop": true,
                                "postback_activity": "getTracerouteActivity"
                              },
                            
                            "requiredInputs": [
                            "destinationIP",
                            "sourceDatacenter"
                            ]
                            
                        }
                    ]
                }
            ]
          }

Sample Code Language

No response

Sample Code

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
Ajaykumar661commented, Nov 7, 2022

@DanielSmithGKGAB Thanks for the solution ! I found the fix last week forgot to update this thread, @ringoc thanks for confirming. For those who are still facing this issue after trying out @DanielSmithGKGAB’s solution, Try this: Open the Run dialog box by pressing the Windows logo key +R. In the Run dialog box, enter %appdata%\Microsoft\Teams, and then select OK. Delete all files and folders in the %appdata%\Microsoft\Teams directory. Restart Teams.

1reaction
ringoccommented, Nov 7, 2022

@DanielSmithGKGAB , confirmed this is working, thanks for the workaround

@Ajaykumar661 worth a shot !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Images in Adaptive Cards not rendering
Re: Images in Adaptive Cards not rendering​​ We were able to resolve this for apps under our control by moving images from Imgur...
Read more >
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 >
Troubleshooting Adaptive card rendering issue in iOS
Adaptive card will not render in iOS mobile teams in some cases. This video explains way to troubleshoot the same.
Read more >
Power automate outlook actionable adaptive cards not ...
I have a power automate where it sends an email to a specific user with two text boxes within the email body (implemented...
Read more >
Adaptive Cards
Adaptive Cards are platform-agnostic snippets of UI, authored in JSON, that apps and services can openly ... Adaptive Cards render native UI on...
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