{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BotFramework-Emulator/issues/244","repository_url":"https://api.github.com/repos/Microsoft/BotFramework-Emulator","labels_url":"https://api.github.com/repos/Microsoft/BotFramework-Emulator/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BotFramework-Emulator/issues/244/comments","events_url":"https://api.github.com/repos/Microsoft/BotFramework-Emulator/issues/244/events","html_url":"https://github.com/Microsoft/BotFramework-Emulator/issues/244","id":242469409,"node_id":"MDU6SXNzdWUyNDI0Njk0MDk=","number":244,"title":"Adaptive card not working on Emulator","user":{"login":"jazzedge","id":5101767,"node_id":"MDQ6VXNlcjUxMDE3Njc=","avatar_url":"https://avatars2.githubusercontent.com/u/5101767?v=4","gravatar_id":"","url":"https://api.github.com/users/jazzedge","html_url":"https://github.com/jazzedge","followers_url":"https://api.github.com/users/jazzedge/followers","following_url":"https://api.github.com/users/jazzedge/following{/other_user}","gists_url":"https://api.github.com/users/jazzedge/gists{/gist_id}","starred_url":"https://api.github.com/users/jazzedge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jazzedge/subscriptions","organizations_url":"https://api.github.com/users/jazzedge/orgs","repos_url":"https://api.github.com/users/jazzedge/repos","events_url":"https://api.github.com/users/jazzedge/events{/privacy}","received_events_url":"https://api.github.com/users/jazzedge/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-07-12T18:14:43Z","updated_at":"2018-08-10T16:40:48Z","closed_at":"2017-07-14T11:37:20Z","author_association":"NONE","body":"Hi, despite guidance to the contrary, it looks like the adaptive card isn't working on the latest version of the Emulator. I get the following error: [File of type 'application/vnd.microsoft.card.adaptive'] when trying to display the card from this repo: https://github.com/Microsoft/BotBuilder-Samples/blob/master/Node/cards-AdaptiveCards/app.js#L138-L153. Any suggestions?\r\n\r\nThe code is as follows:\r\n\r\nvar bot = new builder.UniversalBot(connector, function (session) {\r\nvar card = {\r\n'contentType': 'application/vnd.microsoft.card.adaptive',\r\n'content': {\r\n'$schema': 'http://adaptivecards.io/schemas/adaptive-card.json',\r\n'type': 'AdaptiveCard',\r\n'version': '1.0',\r\n'body': [\r\n{\r\n'type': 'Container',\r\n'speak': 'Hello!Are you looking for a flight or a hotel?',\r\n'items': [\r\n{\r\n'type': 'ColumnSet',\r\n'columns': [\r\n{\r\n'type': 'Column',\r\n'size': 'auto',\r\n'items': [\r\n{\r\n'type': 'Image',\r\n'url': 'https://placeholdit.imgix.net/~text?txtsize=65&txt=Adaptive+Cards&w=300&h=300',\r\n'size': 'medium',\r\n'style': 'person'\r\n}\r\n]\r\n},\r\n{\r\n'type': 'Column',\r\n'size': 'stretch',\r\n'items': [\r\n{\r\n'type': 'TextBlock',\r\n'text': 'Hello!',\r\n'weight': 'bolder',\r\n'isSubtle': true\r\n},\r\n{\r\n'type': 'TextBlock',\r\n'text': 'Are you looking for a flight or a hotel?',\r\n'wrap': true\r\n}\r\n]\r\n}\r\n]\r\n}\r\n]\r\n}\r\n],\r\n'actions': [\r\n// Hotels Search form\r\n{\r\n'type': 'Action.ShowCard',\r\n'title': 'Hotels',\r\n'speak': 'Hotels',\r\n'card': {\r\n'type': 'AdaptiveCard',\r\n'body': [\r\n{\r\n'type': 'TextBlock',\r\n'text': 'Welcome to the Hotels finder!',\r\n'speak': 'Welcome to the Hotels finder!',\r\n'weight': 'bolder',\r\n'size': 'large'\r\n},\r\n{\r\n'type': 'TextBlock',\r\n'text': 'Please enter your destination:'\r\n},\r\n{\r\n'type': 'Input.Text',\r\n'id': 'destination',\r\n'speak': 'Please enter your destination',\r\n'placeholder': 'Miami, Florida',\r\n'style': 'text'\r\n},\r\n{\r\n'type': 'TextBlock',\r\n'text': 'When do you want to check in?'\r\n},\r\n{\r\n'type': 'Input.Date',\r\n'id': 'checkin',\r\n'speak': 'When do you want to check in?'\r\n},\r\n{\r\n'type': 'TextBlock',\r\n'text': 'How many nights do you want to stay?'\r\n},\r\n{\r\n'type': 'Input.Number',\r\n'id': 'nights',\r\n'min': 1,\r\n'max': 60,\r\n'speak': 'How many nights do you want to stay?'\r\n}\r\n],\r\n'actions': [\r\n{\r\n'type': 'Action.Submit',\r\n'title': 'Search',\r\n'speak': 'Search',\r\n'data': {\r\n'type': 'hotelSearch'\r\n}\r\n}\r\n]\r\n}\r\n},\r\n{\r\n'type': 'Action.ShowCard',\r\n'title': 'Flights',\r\n'speak': 'Flights',\r\n'card': {\r\n'type': 'AdaptiveCard',\r\n'body': [\r\n{\r\n'type': 'TextBlock',\r\n'text': 'Flights is not implemented =(',\r\n'speak': 'Flights is not implemented',\r\n'weight': 'bolder'\r\n}\r\n]\r\n}\r\n}\r\n]\r\n}\r\n};\r\n\r\nvar msg = new builder.Message(session)\r\n    .addAttachment(card);\r\nsession.send(msg);\r\n});\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/BotFramework-Emulator/issues/comments/412138555","html_url":"https://github.com/Microsoft/BotFramework-Emulator/issues/244#issuecomment-412138555","issue_url":"https://api.github.com/repos/Microsoft/BotFramework-Emulator/issues/244","id":412138555,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjEzODU1NQ==","user":{"login":"giorigor","id":10777906,"node_id":"MDQ6VXNlcjEwNzc3OTA2","avatar_url":"https://avatars1.githubusercontent.com/u/10777906?v=4","gravatar_id":"","url":"https://api.github.com/users/giorigor","html_url":"https://github.com/giorigor","followers_url":"https://api.github.com/users/giorigor/followers","following_url":"https://api.github.com/users/giorigor/following{/other_user}","gists_url":"https://api.github.com/users/giorigor/gists{/gist_id}","starred_url":"https://api.github.com/users/giorigor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giorigor/subscriptions","organizations_url":"https://api.github.com/users/giorigor/orgs","repos_url":"https://api.github.com/users/giorigor/repos","events_url":"https://api.github.com/users/giorigor/events{/privacy}","received_events_url":"https://api.github.com/users/giorigor/received_events","type":"User","site_admin":false},"created_at":"2018-08-10T16:40:48Z","updated_at":"2018-08-10T16:40:48Z","author_association":"NONE","body":"I'm having this issue with the latest version (4.0.15 alpha). It works on channels (Slack, Teams, etc) but it can't render the card in the emulator itself.\r\n\r\n[Emulator](https://user-images.githubusercontent.com/10777906/43969905-07779842-9ca2-11e8-85ff-4c14957853b0.png) | [Teams](https://user-images.githubusercontent.com/10777906/43969866-e95cc5a8-9ca1-11e8-8e0a-b129c6dce066.png)\r\n\r\n```c#\r\nAdaptiveCard card = new AdaptiveCard();\r\ncard.Body = new List<AdaptiveElement>()\r\n{\r\n    new AdaptiveTextBlock()\r\n    {\r\n        Text = \"Lorem ipsun\"\r\n    },\r\n    new AdaptiveDateInput()\r\n    {\r\n        Value = DateTime.Now.ToShortDateString()\r\n    },\r\n    new AdaptiveTimeInput()\r\n    {\r\n        Value = DateTime.Now.ToShortTimeString()\r\n    }\r\n};\r\n\r\nvar msg = context.MakeMessage();\r\nmsg.Attachments.Add(\r\n    new Attachment()\r\n    {\r\n        Content = card,\r\n        ContentType = \"application/vnd.microsoft.card.adaptive\",\r\n        Name = \"Lorem Ipsun\"\r\n    }\r\n);\r\n\r\nawait context.PostAsync(msg);\r\ncontext.Wait(this.MessageReceived);\r\n```\r\n"}}
{"actor":{"display_login":"giorigor"}}