AdaptiveCards icon indicating copy to clipboard operation
AdaptiveCards copied to clipboard

[MSTeams]Unable to reach app. Please try again on Adaptive card

Open Chekrii opened this issue 6 years ago • 80 comments

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.
Unable

Please help.

Thanks.

Chekrii avatar Jan 06 '20 07:01 Chekrii

@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?)

shalinijoshi19 avatar Jan 06 '20 19:01 shalinijoshi19

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.

RajaniJillaGit avatar Jan 07 '20 05:01 RajaniJillaGit

We have triaged this issue report. Please continue to follow the issue for updates/progress/questions. @matthidinger/@dclaux/@rebeccaanne/@paulcam206 FYI.

ghost avatar Jan 07 '20 16:01 ghost

Assigning to you @ckkashyap for a first look. Thanks!

shalinijoshi19 avatar Jan 07 '20 18:01 shalinijoshi19

We have triaged this issue report. Please continue to follow the issue for updates/progress/questions. @matthidinger / @dclaux / @rebeccaanne / @paulcam206 FYI.

ghost avatar Jan 07 '20 18:01 ghost

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.

ckkashyap avatar Jan 07 '20 22:01 ckkashyap

@Chekrii, @RajaniJillaGit - Thanks for reaching out! Can you make sure Teams channel is added on Azure portal for your bots?

image

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?

siduppal avatar Jan 07 '20 23:01 siduppal

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.

RajaniJillaGit avatar Jan 08 '20 04:01 RajaniJillaGit

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.

ckkashyap avatar Jan 08 '20 22:01 ckkashyap

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?

siduppal avatar Jan 09 '20 00:01 siduppal

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

RajaniJillaGit avatar Jan 09 '20 08:01 RajaniJillaGit

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 :)

matthidinger avatar Jan 09 '20 19:01 matthidinger

Hi @matthidinger it’s not a flowbot. It is on v4 and using adaptive cards with external systems for conversations.

RajaniJillaGit avatar Jan 11 '20 15:01 RajaniJillaGit

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. ...

Dzixxx avatar Jan 16 '20 10:01 Dzixxx

Assigning to you as well @siduppal since Teams seems to be driving it at the moment. @ckkashyap unassigning you for now, FYI. Thanks!

shalinijoshi19 avatar Jan 17 '20 20:01 shalinijoshi19

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?

pradeepananth avatar Jan 17 '20 20:01 pradeepananth

Hi @pradeepananth, 5 second timeout was the issue ( my server didn't responded to that time )

Dzixxx avatar Jan 18 '20 21:01 Dzixxx

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?

sree00718 avatar Mar 03 '20 07:03 sree00718

Is your code responding to the Submit request within 5 seconds?

Wajeed-msft avatar Mar 03 '20 07:03 Wajeed-msft

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.

sree00718 avatar Mar 03 '20 12:03 sree00718