There was a problem submitting your changes. Try again in

Copper Contributor

I am using Adaptivecards which has few buttons using HttpPost action. When I click on that I get the error "Failed to send-There was a problem submitting your changes. Try again in a minute.".
On checking the console, url "executeAction" is returning 500 code.

But after clicking it again for 1-2 times more it starts working as expected.
Checked the logs on my service as well, I do not recieve any request for the first few times when I get these error.

This is happening from last one month, we have not done any code change in our service as well.

Can anyone help with this or faced this kind of issue?


14 Replies
It looks like your issue is similar to the one reported here at https://techcommunity.microsoft.com/t5/teams-developer/message-card-action-buttons-not-working-consi.... Could you please confirm?

@Meghana-MSFT Yes, It is the same issue. When clicking on the buttons multiple times, it starts working.

@praveshsonkusare - Could you please share your card JSON with us?

@Meghana-MSFT 

 

Example Message:
{
    "messageCard": "messageCard",
    "@context": "http://schema.org/extensions",
    "summary": "critical Alert - LMD1",
    "themeColor": "#FF0000",
    "sections": [
        {
            "activitySubtitle": "Wed Jul 21 11:44 PM UTC 2021",
            "activityTitle": "critical Alert - LMD1",
            "activityImage": "https://images.g2crowd.com/uploads/product/hd_favicon/1487566436/logicmonitor.png",
            "facts": [
                {
                    "name": "LogicMonitor",
                    "value": "[Link to Alert]"
                },
                {
                    "name": "Message",
                    "value": "critical - 127.0.0.1_collector_47548 Host Status heartbeat<br>Alert Rule: This alert matches the rule ms-teams-rule<br>Recipients: Alert now is going to stage 1 recipients: email address removed for privacy reasons(MS Teams Integration)"
                },
                {
                    "name": "Host",
                    "value": "127.0.0.1_collector_47548"
                }
            ]
        }
    ],
    "potentialAction": [
        {
            "@type": "HttpPOST",
            "name": "Acknowledge",
            "target": "<url>",
            "headers": [
                {
                    "name": "content-type",
                    "value": "application/json"
                },
                {
                   "name": "lm-x-token",
                   "value": "*****"
                }
            ]
            "body": "{}",
            "isPrimary": true
        },
        {
            "@type": "actionCard",
            "name": "Schedule Down Time",
            "inputs": [
                {
                    "@type": "MultichoiceInput",
                    "id": "sdt_type",
                    "isRequired": true,
                    "title": "Set SDT For",
                    "choices": [
                        {
                            "display": "Instance",
                            "value": "INSTANCE"
                        },
                        {
                            "display": "Device",
                            "value": "DEVICE"
                        }
                    ],
                    "value": "INSTANCE"
                },
                {
                    "@type": "MultichoiceInput",
                    "id": "sdt_duration",
                    "isRequired": true,
                    "title": "Select the SDT duration",
                    "choices": [
                        {
                            "display": "30 Minutes",
                            "value": "30"
                        },
                        {
                            "display": "1 Hour",
                            "value": "60"
                        },
                        {
                            "display": "2 Hours",
                            "value": "120"
                        },
                        {
                            "display": "8 Hours",
                            "value": "480"
                        },
                        {
                            "display": "24 Hours",
                            "value": "1440"
                        },
                        {
                            "display": "7 Days",
                            "value": "10080"
                        },
                        {
                            "display": "30 Days",
                            "value": "43200"
                        }
                    ]
                },
                {
                    "@type": "textInput",
                    "id": "sdt_comment",
                    "title": "SDT Notes (optional)",
                    "isMultiline": true
                }
            ],
            "actions": [
                {
                    "@type": "HttpPOST",
                    "name": "Save",
                    "target": "<URL>",
                    "headers": [
                        {
                            "name": "content-type",
                            "value": "application/json"
                        },
                        {
                            "name": "lm-x-token",
                            "value": "*****"
                        }
                    ],
                    "body": "{}",
                    "isPrimary": true
                }
            ]
        },
        {
            "@type": "HttpPOST",
            "name": "Full Alert Details",
            "target": "<URL>",
            "headers": [
                {
                    "name": "content-type",
                    "value": "application/json"
                },
                {
                    "name": "lm-x-token",
                    "value": "*****"
                }
            ],
            "body": "{}",
            "isPrimary": true
        }
    ]
}

Hello @praveshsonkusare - We are able to repro your issue and raise a bug.
Please refer this thread: Message Card Action Buttons not working consistently - Microsoft Community Hub

@ChetanSharma-msft @Meghana-MSFT Is there any update on this issue?

@praveshsonkusare  - Sorry for delay in response.
We will check the bug status and inform you accordingly.

can you please provide any update on this bug?
We currently do not have an ETA to share with you. Team is working on the fix, we will keep you posted on the updates. Thank you for your understanding.

@Meghana-MSFT Is there any update on this issue?
Any ETA or any progress on this issue would help us. We are heavily dependent on teams which are causing issue for our services.

We see this issue is fixed in Teams T2 but does not work in Teams classic. We are checking with engineering team.
Sure, please let us know the update as soon as possible.
Is there any update on the fix for teams classic for this issue?
We are following up with engineering team for Teams classic version. We will keep you posted on the updates. Thank you.