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.
Teams Messaging extension search command is not working

Sahi Repswal
161
Reputation points
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": {}
}
{count} votes
1 answer
Sort by: Most helpful
-
Wajeed-MSFT 226 Reputation points Microsoft Employee
2021-07-11T20:11:06.823+00:00
Extrenal resouces means what you are trying in search command. Could you please share more info and repro steps?
@Nikitha-MSFT
Actually I have created messaging search command extension and on type it is calling external URL which is configured to Bot Extension address.
It is calling Bot endpoint also but after response, above error is coming.