Skip to content

Investigate: clicking on hero card throw 'displayText' of undefined error #2876

@compulim

Description

@compulim

This one need investigations to see if the hero card payload is valid or not.

Version

4.6.0-es5

Describe the bug

When clicked on the following hero card, it does not invoke the expected submit.

{
  attachments: [
    {
      contentType: "application/vnd.microsoft.card.hero",
      content: { buttons: [{ type: "postBack", title: "LET'S GET STARTED" }] },
      buttons: [{ type: "postBack", title: "LET'S GET STARTED" }]
    }
  ];
}

Then send another hero card,

{
  "attachments": [
    {
      "contentType": "application/vnd.microsoft.card.hero",
      "content": {
        "buttons": [
          {
            "type": "openUrl",
            "title": "LOG IN",
            "value": "https://login.microsoftonline.com/microsoft.onmicrosoft.com/oauth2/authorize?client_id="
          }
        ]
      }
    }
  ]
}

Click on it will say, 'displayText' of undefined error.

Steps to reproduce

  1. Bot to send the hero card payload as above
  2. Click on the button
  3. Expect postback to the bot, but not happened
  4. Bot to send the second hero card payload
  5. Click on the button

Expected behavior

The first one should send a postBack to the bot.

The second one should not error out.

Additional context

[Bug]

Metadata

Metadata

Assignees

Labels

Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.bugIndicates an unexpected problem or an unintended behavior.community-help-wantedThis is a good issue for a contributor to take on and submit a solutioncustomer-replied-toRequired for internal reporting. Do not delete.customer-reportedRequired for internal Azure reporting. Do not delete.needs-reproWaiting for repro or investigation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions