cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jonalink
Regular Visitor

Request to the Bot framework failed with error on Bot that has been working

I've had a bot that's been working now since April without any major issues. It takes the responses from a form, puts them into an adaptive card, and posts them as Flow to a Teams channel. But on the 14th it stopped working in the evening and I receive this error:

 

Request to the Bot framework failed with error: '{"error":{"code":"BadArgument","message":"Unable to decrypt userId, it is null or agentData is null"}}'.

 

I can't find anything on this, and a different bot that is on the same account works, even though it's almost identical.

 

Anyone familiar with where this error is coming from?

1 ACCEPTED SOLUTION

Accepted Solutions
Jonalink
Regular Visitor

Looks like I found the issue. There was code in the adaptive card that was no longer allowed with whatever the recent update of Teams/Automate was.

 

I had this in there:

 

   "msteams": {
        "entities": [
            {
                "type""mention",
                "text""<at>@{body('Get_user_profile_(V2)')?['displayName']}</at>",
                "mentioned": {
                    "id""@{body('Get_user_profile_(V2)')?['id']}",
                    "name""@{body('Get_user_profile_(V2)')?['displayName']}"
                }
            }
        ]
    },
When I was tinkering with getting the @mentions to work, which is now part of the Flow. Removing that fixed my issue.

View solution in original post

1 REPLY 1
Jonalink
Regular Visitor

Looks like I found the issue. There was code in the adaptive card that was no longer allowed with whatever the recent update of Teams/Automate was.

 

I had this in there:

 

   "msteams": {
        "entities": [
            {
                "type""mention",
                "text""<at>@{body('Get_user_profile_(V2)')?['displayName']}</at>",
                "mentioned": {
                    "id""@{body('Get_user_profile_(V2)')?['id']}",
                    "name""@{body('Get_user_profile_(V2)')?['displayName']}"
                }
            }
        ]
    },
When I was tinkering with getting the @mentions to work, which is now part of the Flow. Removing that fixed my issue.

View solution in original post

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (55,793)