Forum Discussion
Message extension based on API throwing "Unable to reach app. Please try again."
Hi,
I have built a new message extension based on OpenAPI spec using Teams tool kit. I then launch it in dev for testing (F5). I can see the app and invoke it but when I give input parameter it throws "Unable to reach app. Please try again." Screenshot below.
I then try to build another one by following the step by step guide in the link below. Its same result again. I can access the app but when I give input value it throws "Unable to reach app. Please try again."
https://learn.microsoft.com/en-us/microsoftteams/platform/sbs-api-me-ttk?tabs=vscode%2Cviscode
This is my first ever message extension. I am not sure what I am missing. Appreciate any help to resolve this.
Thanks
5 Replies
- ChetanSharma-msft
Microsoft
Hello SatBhat - Thanks for raising your query.
We will look into it and let you know the updates.- ChetanSharma-msft
Microsoft
Hello SatBhat - We have followed all the steps mentioned in this documentation and it is working fine for us: https://learn.microsoft.com/en-us/microsoftteams/platform/sbs-api-me-ttk?tabs=vscode%2Cviscode
Please verify if you have provisioned your application before debugging the code.
Please refer this issue: https://github.com/MicrosoftDocs/msteams-docs/issues/10370- SatBhatCopper ContributorHi ChetanSharma-msft thanks for looking into this.
I figured out that I had to manually click on Provision. Without that my message extension wasn’t getting listed at all. Once I started manually provisioning I started seeing the message extension in the list, but was getting that 'Unable to reach...' error
1) What change you had to do to resolve that issue of getting NA/NA in search result?
2) When I changed the openapi:3.0.1 to 3.1.0 I was getting below error while provisioning.
[m365.UnhandledError]: An unexpected error has occurred while performing the M365 task. {"message":"Request failed with status code 400","detail":"{\"error\":{\"code\":\"BadRequest\",\"message\":\"OpenAPI specification version '3.1.0' is not supported.\"}}","tracingId":"00-508e6fd14f9aebfd1f6b96273433def0-8d2e04ed3b95ed46-00"}
So stayed with 3.0.1 although it was highlighting error around this version. Could that be the cause for the issue "Unable to reach app. Please try again."
My teams tool kit version is 5.4.1
3) You ok to share .zip file that was produced when you followed below step by step guide? I would like to compare it with my set of files
https://learn.microsoft.com/en-us/microsoftteams/platform/sbs-api-me-ttk?tabs=vscode%2Cviscode
Once again thanks for your help with this.
Thanks