Teams Messaging extension search command is not working

Sahi Repswal 161 Reputation points
2021-06-29T15:06:20.493+00:00

I am trying to integrate Teams Search command extension. While I am trying to search external resources, it is not working. Below is the browser console error:
{
"statusCode": 502,
"headers": {
"cache-control": "no-store, must-revalidate, no-cache",
"content-length": "87",
"content-type": "application/json; charset=utf-8",
"contextid": "tcid=0,server=msgapi-production-ejp-azsc1-1-0,cv=5LgZ4hbEx0WE93KtNAitDQ.0",
"pragma": "no-cache"
},
"errorMessage": "<BotError>Bot returned unsuccessful status code NotFound",
"errorCode": 1008,
"request": {}
}

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,777 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Wajeed-MSFT 231 Reputation points Microsoft Employee
    2021-07-11T20:11:06.823+00:00

    Hi @Sahi Repswal , Based on error, looks like the OnTeamsMessagingExtensionQueryAsync is not implemented correctly. Could you please try Teams messaging extension search sample code and let me know if you face any issues.

    0 comments No comments