question

SahiRepswal-9632 avatar image
0 Votes"
SahiRepswal-9632 asked bgervin edited

Teams Messaging extension search command is not working

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": {}
}

office-teams-app-dev
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@SahiRepswal-9632,
As we are mainly responsible for general question of Microsoft Teams, your question related to development is not in our scope. I will change office-teams-windows-itpro tag to office-teams-app-dev tag. Thanks for your understanding.

0 Votes 0 ·

Extrenal resouces means what you are trying in search command. Could you please share more info and repro steps?

0 Votes 0 ·

@NikithaMSFT-0176
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.

0 Votes 0 ·

1 Answer

Wajeed-MSFT avatar image
0 Votes"
Wajeed-MSFT answered

Hi @SahiRepswal-9632, 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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.