botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[Skype SMBA] Encountered error when used Adaptive Cards

Open labin-share opened this issue 9 years ago • 6 comments

Pre-flight checklist


System Information (Required)

  • SDK Pletform: Node?
  • SDK Version: 3.8.3
  • Development Environment: localhost

Issue Description

when I want to send a message container a adaptive card attachment, It appeared a error: Error: Request to 'https://smba.trafficmanager.net/apac-client-ss.msg/v3/conversations/a%3A1bDvKvzkBsuUKhMFE7AyNGF2L5sX6_CTpKZ1pdfw6hbd9MIj0mdtONhSzxx3x8KAH5yYh2xF-kZxT71Y4dCXkbPMaI8JhXEYoDwXjkj_1TO9k_fcq3A8f0TQ38Fr3Wex4/activities/1495005732722' failed: [400] Bad Request at Request._callback (d:\git_code\swat_oa_bot\node_modules\botbuilder\lib\bots\ChatConnector.js:452:46) at Request.self.callback (d:\git_code\swat_oa_bot\node_modules\request\request.js:188:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request. (d:\git_code\swat_oa_bot\node_modules\request\request.js:1171:10) at emitOne (events.js:96:13) at Request.emit (events.js:188:7) at IncomingMessage. (d:\git_code\swat_oa_bot\node_modules\request\request.js:1091:12) at IncomingMessage.g (events.js:292:16) at emitNone (events.js:91:20) at IncomingMessage.emit (events.js:185:7) at endReadableNT (_stream_readable.js:974:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickDomainCallback (internal/process/next_tick.js:122:9)

Example Code

bot.dialog('/', [ function (session, args) { var msg = new builder.Message(session) .addAttachment({ contentType: "application/vnd.microsoft.card.adaptive", content: { type: "AdaptiveCard", body: [ { "type": "TextBlock", "text": "Adaptive Card design session", "size": "large", "weight": "bolder" }, { "type": "TextBlock", "text": "Conf Room 112/3377 (10)" }, { "type": "TextBlock", "text": "12:30 PM - 1:30 PM" } ], "actions": [ { "type": "Action.Http", "method": "POST", "url": "http://foo.com", "title": "Snooze" } ] } }); session.send(msg); } ]);

Expected Behavior

What you expected to happen.

Actual Results

What actually happened. Please give examples and support it with screenshots, copied output or error messages.

labin-share avatar May 17 '17 14:05 labin-share

Unfortunately Skype apps don't yet support Adaptive cards - we're working on them for a future release.

nickcordrey avatar May 17 '17 20:05 nickcordrey

@nickcordrey ok.. thanks for your answer. But I have tried to use in ms teams, it is the same error above.

labin-share avatar May 18 '17 01:05 labin-share

MS Teams also does not support adaptive cards yet.

nwhitmont avatar May 18 '17 01:05 nwhitmont

@nwhitmont ok, I got it, thanks for help. I want to confirm that:

1.when ms teams support adaptive cards? 2.which channel support adaptive cards? thanks!

labin-share avatar May 18 '17 01:05 labin-share

Recently Microsoft introduced Bot Framework Adaptive Cards. I want to know this is in preview stage or implemented. Please let me know any of these channels like Skype,Facebook,Microsoft Teams,kik,Slack and Telegram supports Bot Framework Adaptive Cards,Please reply asap.

RaoVenka avatar May 18 '17 06:05 RaoVenka

@lweibin and @RaoVenka Please see answer here https://github.com/Microsoft/BotBuilder/issues/2803

EricDahlvang avatar May 19 '17 19:05 EricDahlvang