Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load my adaptive card #2409

Closed
piyush97 opened this issue Jan 18, 2023 · 4 comments
Closed

Can't load my adaptive card #2409

piyush97 opened this issue Jan 18, 2023 · 4 comments
Assignees
Labels
Bot Services equired for internal Azure reporting. Do not delete. Do not change color. Bug Your classic code defect customer-replied-to Required for internal reporting. Do not delete. customer-reported Required for internal Azure reporting. Do not delete.

Comments

@piyush97
Copy link

piyush97 commented Jan 18, 2023

Version of emulator

4.14.1

Describe the bug

To Reproduce

Steps to reproduce the behavior:

  1. Use the json attached
{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.4",
    "speak": "Weather forecast for Monday is high of 62 and low of 42 degrees with a 20% chance of rainWinds will be 5 mph from the northeast",
    "body": [
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "width": 35,
                    "items": [
                        {
                            "type": "Image",
                            "url": "https://images.unsplash.com/photo-1500648767791-00dcc994a43e?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MXx8cmFuZG9tJTIwcGVvcGxlfGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=100&q=60",
                            "size": "Stretch"
                        }
                    ]
                },
                {
                    "type": "Column",
                    "width": 65,
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "Piyush Mehta",
                            "weight": "Bolder",
                            "size": "Large",
                            "color": "Dark"
                        },
                        {
                            "type": "TextBlock",
                            "text": "16 January 2023",
                            "size": "Medium",
                            "spacing": "None"
                        }
                    ]
                }
            ]
        },
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "width": "stretch",
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "Project",
                            "wrap": true
                        }
                    ]
                },
                {
                    "type": "Column",
                    "width": "stretch",
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "Time",
                            "wrap": true
                        }
                    ]
                }
            ]
        }
    ]
}
  1. It fails to load, although I'm using the stable version 1.4
    image

  2. I used adaptive card designer to make and design the card

Expected behavior

Should show adaptive card in emulator or should show an error on adaptivecard.io designer.

Adaptive Card shows like this
image

[bug]

@piyush97 piyush97 added the Bug Your classic code defect label Jan 18, 2023
@InfinytRam InfinytRam added Bot Services equired for internal Azure reporting. Do not delete. Do not change color. customer-reported Required for internal Azure reporting. Do not delete. labels Jan 19, 2023
@stevkan
Copy link
Contributor

stevkan commented Jan 19, 2023

@piyush97 - Trying to repro the issue. I'll keep you posted on what I find.

@stevkan stevkan self-assigned this Jan 19, 2023
@stevkan
Copy link
Contributor

stevkan commented Jan 30, 2023

@piyush97, thank you for your patience. Emulator utilizes BotFramework-WebChat in its code base for the construction of the transcript window, send box, and certain other features. While Web Chat has been updated to support up to version 1.5 of Adaptive Cards, Emulator has yet to be updated to the current version of Web Chat. Unfortunately, Emulator only supports up to version 1.3.

As an alternative, you could use the 04.api/f.selectable-activity Web Chat sample which allows inspecting each message activity as they pass thru, and it is up-to-date.

In the meantime, I'll create an issue to track this bug. Please be aware that there is no ETA at this time on when an update will be available.

@stevkan stevkan added the customer-replied-to Required for internal reporting. Do not delete. label Jan 30, 2023
@piyush97
Copy link
Author

Thank you so much for the prompt reply, I've moved my cards to version 1.3, unfortunately, 1.3 doesn't support tables. I'm excited to try the updated version as soon as it gets released.

@stevkan
Copy link
Contributor

stevkan commented Feb 13, 2023

Tracking issue in #2407

@stevkan stevkan closed this as completed Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bot Services equired for internal Azure reporting. Do not delete. Do not change color. Bug Your classic code defect customer-replied-to Required for internal reporting. Do not delete. customer-reported Required for internal Azure reporting. Do not delete.
Projects
None yet
Development

No branches or pull requests

3 participants