question

MoukeTrollington-8095 avatar image
0 Votes"
MoukeTrollington-8095 asked PrithviKamble-MSFT-9239 commented

Testing an Office 365 Connector in Teams with localhost urls

Hello there.

I am trying to create an app for MS Teams with an incoming webhook through a connector. My final goal is allow users to link their Teams channel to my app so that I can post notifications in their channel automatically.

I've made an app through the App Studio in Teams. I want to point the Configuration URL to my localhost nginx server (so that I can actually develop the configuration URL process) but I can't manage to make it work.

An URL pointing to localhost or 127.0.0.1 is considered invalid. I've modified my /etc/hosts file so that calling a fake URL will redirect to my localhost. This is allowed, but when I install my app and go in the "Configure" section, I get a white page. I assume that the call is made from Teams servers, not my machine.

Is there any way to setup the app so that I can develop on my local machine ?

Regards,

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.

Hi, can you share more details on what you are trying to do. Do you want to send message in teams using webhook ? Also can you share steps to repro this issue ?

0 Votes 0 ·

Hello,

To sum up, yes i am trying to create a connector to send messages in Teams through some webhooks, connector that will be published to the Teams app store. My specific issue being to create the configuration page (everything else is working, I manage to send a message to teams from my app).

On my screenshot (taken from the connector edit popup in the App Studio), I am asked an URL for configuration page. I can't put a localhost url (or something pointing to my localhost) in order to create and test that configuration page, which seems to be necessary in order to distribute the App.

127671-capture-decran-2021-08-30-a-165209.png


0 Votes 0 ·

Hi can you try using ngrok to route your localhost url of the configuration page and see if that works. You can refer this https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/debug#locally-hosted

Make sure your solution is running locally while testing the hosted URL

0 Votes 0 ·

0 Answers