[MSTeams]Unable to reach app. Please try again on Adaptive card
Platform
- .Net
Author or host
- Host - MsTeams
Details
- Hi , We are using adaptive card in our bot to fill forms. We are doing postBack on Action.submit to send details filled by users to Bot. After some few seconds we are getting the error on the card saying "Unable to reach app. Please try again on Adaptive card". I don't want to show that error on the card.
Please help.
Thanks.
@chekrii is there a sample card that you can share along with repro steps for us here at all? Is this happening only for that specific card or all action.submit flows for you? @matthidinger /@dandriscoll / @ckkashyap / @siduppal is this an AdaptiveCards issue? In Adaptivecards we don't actually control the actual host app for the post-back do we? Is there any debugging here that we can possibly glean (either post-mortem or live debugging?)
Hi Team,
Have raised the same issue https://github.com/microsoft/AdaptiveCards/issues/2924. Kindly please help as it is a road block for the features now. It is happening for all the cards where all we are interacting with external systems.
We have triaged this issue report. Please continue to follow the issue for updates/progress/questions. @matthidinger/@dclaux/@rebeccaanne/@paulcam206 FYI.
Assigning to you @ckkashyap for a first look. Thanks!
We have triaged this issue report. Please continue to follow the issue for updates/progress/questions. @matthidinger / @dclaux / @rebeccaanne / @paulcam206 FYI.
Hi @Chekrii - can you please paste the adaptive card that you are rendering? This will help with diagnosing this issue further. Also, can you please confirm if you see the same error in your fiddler trace as in #2924.
@Chekrii, @RajaniJillaGit - Thanks for reaching out! Can you make sure Teams channel is added on Azure portal for your bots?

If not, pls add it and let us know if the issue still repros.
If the issue still repros, pls share the bot-id (guid) for your bots which are showing this issue?
Hi @Chekrii - can you please paste the adaptive card that you are rendering? This will help with diagnosing this issue further. Also, can you please confirm if you see the same error in your fiddler trace as in #2924.
Yes its the same issue. Teams channel is enabled on Azure. please share the email to share the bot id for the same.
Hi @RajaniJillaGit - can you please try and follow the instructions at this link and debug the bot locally. You can send over the bot id and some recent conversation id's (that dont work) to botframework AT microsoft.com.
Hey @RajaniJillaGit - can you open Teams in browser (https://teams.microsoft.com), open Developer Tools, and share the console logs you see for your scenario when you get the "Unable to reach app" error?
Hi @siduppal and @ckkashyap here are the errors logged developer tools.
[BotCardService::onButtonClicked_messageback()] sendInvoke failed: {"statusCode":502,"headers":{"cache-control":"no-store, must-revalidate, no-cache","content-length":"86","content-type":"application/json; charset=utf-8","contextid":"tcid=5882757895929148753,server=SG2PEPF0000045F,cv=ywGwvOiBh0KJbisGmRApkQ.1.0","pragma":"no-cache","set-registrationtoken":"redacted"},"errorMessage":"Error Code: 1008 ","errorCode":1008,"request":{}}
[Bot invoke failed]: Invoke agent action failed with status code: BadGateway
Is this card using FlowBot by chance? If so, Actions do not work with FlowBot/Power Automate yet, but we're actively working on it. No timelines yet but hopefully not much longer.
If you aren't using Flowbot, please continue with the current debugging :)
Hi @matthidinger it’s not a flowbot. It is on v4 and using adaptive cards with external systems for conversations.
Hi, I also faced that issue (JS, botframework v4.6.2) I can paste logs from devtools but not sure how much they will help.
I was using core.ActionTypes.OpenUrl type ( which was working on 15th December - now it stopped )
angular.min.js:113 2020-01-16T09:34:27.189Z value not found in enum type. value: 561
(anonymous) @ angular.min.js:113
e.logMessage @ msteams-web-ng1-services.min.js:1
e.error @ msteams-web-ng1-services.min.js:1
E.tryGetEnum @ shared.min.js:1
t.logBiTelemetryOnOpen @ msteams-web-ng1.min.js:1
(anonymous) @ msteams-web-ng1.min.js:1
...
[Bot invoke failed]: Invoke agent action failed with status code: BadGateway
r @ backend.js:6
(anonymous) @ msteams-web-ng1-services.min.js:1
f @ angular.min.js:126
(anonymous) @ angular.min.js:126
...
InputExtensionService: Input extension invoke command failed
(anonymous) @ angular.min.js:113
e.logMessage @ msteams-web-ng1-services.min.js:1
e.error @ msteams-web-ng1-services.min.js:1
(anonymous) @ msteams-web-common.min.js:1
...
InputExtensionViewModel: Failed to complete command request for loadDefaultItems.
...
Assigning to you as well @siduppal since Teams seems to be driving it at the moment. @ckkashyap unassigning you for now, FYI. Thanks!
I am unable to repro with submit and open urls action types in adaptive card. This error Invoke agent action failed with status code: BadGateway usually indicates bot is taking too long (> 5 seconds) to respond to the request or bot's endpoint is not reachable. And error code 1008 always indicate bot failure @Dzixxx could you please let us know if the bot is able to respond and if the latency for the response is less than 5 seconds?
Hi @pradeepananth, 5 second timeout was the issue ( my server didn't responded to that time )
Hi ,is there fix to this issue as of yet? When i click on submit button on my adaptive cards values are passed ,but i do get this warning. Any way to hide this warning?
Is your code responding to the Submit request within 5 seconds?
Is your code responding to the Submit request within 5 seconds?
I believe this is the issue. Its not respoding within 5 sec ,but when it does i see no error messages.