Forum Discussion
moransh
Dec 02, 2022Copper Contributor
Adaptive/Hero card Action.Submit/Button {type: "imBack"} not working on PC
Hi, I'm using graph API to send an Adaptive card or Hero card (tried both) containing a number of options, listed as buttons. and require the text value of the button to be sent back through the chat...
moransh
Copper Contributor
here is a snippet from the log, hope it helps.
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] useSlotConfigCallbacksAndCustomProperties: Entity options are (incorrectly) being asked for type and action that do not pertain to the entity. chats != chats or view != share, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462173852, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27307440, freeMemory: 4515139584, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] useSlotConfigCallbacksAndCustomProperties: Entity options are (incorrectly) being asked for type and action that do not pertain to the entity. chats != chats or view != share, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 0, scenarioDelta: 0, elapsed: 462173852, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27328756, freeMemory: 4515135488, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] useSlotConfigCallbacksAndCustomProperties: Entity options are (incorrectly) being asked for type and action that do not pertain to the entity. chats != chats or view != share, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462173870, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27367856, freeMemory: 4514861056, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] useSlotConfigCallbacksAndCustomProperties: Entity options are (incorrectly) being asked for type and action that do not pertain to the entity. chats != chats or view != share, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 1, scenarioDelta: 1, elapsed: 462173871, stepDelta: 1, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27382976, freeMemory: 4514861056, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462173887, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27439248, freeMemory: 4514861056, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 0, scenarioDelta: 0, elapsed: 462173887, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27453968, freeMemory: 4514861056, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462174072, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27507816, freeMemory: 4424298496, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 0, scenarioDelta: 0, elapsed: 462174072, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27522680, freeMemory: 4424298496, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462174155, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27567368, freeMemory: 4419440640, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 0, scenarioDelta: 0, elapsed: 462174155, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27582344, freeMemory: 4419440640, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462174185, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27603896, freeMemory: 4415299584, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 0, scenarioDelta: 0, elapsed: 462174185, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27618616, freeMemory: 4415299584, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] chatServiceSubscriptionContainer: convId: 19:<Email>, replyChainId: -1:: cachedMessages is undefined!, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462174200, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27638720, freeMemory: 4415324160, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] chatServiceSubscriptionContainer: convId: 19:<Email>, replyChainId: -1:: cachedMessages is undefined!, status: success, , scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 1, scenarioDelta: 1, elapsed: 462174201, stepDelta: 1, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27653440, freeMemory: 4415324160, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462179444, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27732856, freeMemory: 4287361024, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 0, scenarioDelta: 0, elapsed: 462179444, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27747992, freeMemory: 4287361024, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success,, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462179591, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27823664, freeMemory: 4286967808, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 0, scenarioDelta: 0, elapsed: 462179591, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27838384, freeMemory: 4286963712, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462179841, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27883952, freeMemory: 4284620800, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
<11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 0, scenarioDelta: 0, elapsed: 462179841, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27898816, freeMemory: 4284604416, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,
Meghana-MSFT
Dec 06, 2022Microsoft
We tried by sending the above share adaptive card json directly via bot and it is working fine on web and Desktop app. Can you please share doc that you are following for sending the above card using json.dumps(adaptive_card) via Graph API.
- moranshDec 06, 2022Copper Contributor
didn't read this in any doc, I just wanted to split the generation of the card content from the card headers, so I did it this way and the content needs to be in json format (saw that in some example), so I converted it to json using json.dumps(...)
im not using the bot framework, I built a very simple module that sends a card (preferably a hero card) with some options and waits for a response.
full code:content = { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.5", "actions": [ { "type": "Action.Submit", "title": "Submit", "data": { "msteams": { "type": "imBack", "value": "some value" } } } ] } card = { "subject": None, "body": { "contentType": "html", "content": "<attachment id=\"xxxxxxxxxxx\"></attachment>" }, "attachments": [ { "id": "xxxxxxxxxxx", "contentType": "application/vnd.microsoft.card.adaptive", "content": json.dumps(content) } ] } headers = { 'Authorization': 'Bearer {0}'.format(token), 'Content-Type': 'application/json' } res = requests.post( 'https://graph.microsoft.com/v1.0/chats/{0}/messages'.format(chat_id), headers=headers, data=json.dumps(card))
and again, this does seem to work with the android application.
just the PC app has the error I listed in the previous reply.
- Meghana-MSFTDec 13, 2022MicrosoftApologies for the delay, we are also able to repro this issue locally. We are raising a bug for the same. We will keep you posted on the updates. Thanks.
- moranshDec 20, 2022Copper Contributorhi, any update?