Henry8012
Henry8012

Reputation: 13

Empty exception when saving a Connector configuration in Microsoft Teams

I'm creating a simple Microsoft Teams Connector that's intended to broadcast messages from an external application to a channel within teams, with some follow-on functionality to come later.

For now, essentially it's a branded version of the "Incoming Webhook" Connector. To use it, my expectation is that the user will copy a webhook URL from MS Teams and paste it into the external app, the way apps like Pivotal Tracker and others work.

I've registered the Connector on the "Connectors Developer Dashboard" and am testing it out by manually sideloading a manifest file into teams.

The external app is serving a configuration HTML page that's specified in the manifest per the docs. The page has the MS Teams Javascript SDK loaded and displays the webhookUrl in a copy paste input element populated by a microsoftTeams.settings.getSettings() call.

This all seems to work fine, but I can't the the configuration to save. Here's the error I see in the browser console:

Received error from connectors:
{  
   "seq":1538668381965,
   "timestamp":1538680770343,
   "flightSettings":{  
      "Name":"ConnectorFrontEndSettings",
      "AriaSDKToken":"d127f72a3abd41c9b9dd94faca947689-d58285e6-3a68-4cab-a458-37b9d9761d35-7033",
      "SPAEnabled":true,
      "ClassificationFilterEnabled":true,
      "ClientRoutingEnabled":true,
      "EnableYammerGroupOption":true,
      "EnableFadeMessage":false,
      "EnableDomainBasedOwaConnectorList":false,
      "EnableDomainBasedTeamsConnectorList":false,
      "DevPortalSPAEnabled":true,
      "ShowHomeNavigationButtonOnConfigurationPage":false
   },
   "status":500,
   "clientType":"SkypeSpaces",
   "connectorType":"760108a2-3c13-45e2-aa70-11a8acd32e3a",
   "name":"handleMessageError",
   "nonPIIInfo":"{\"exception\":{}}"
}

As you can see, the exception is blank. I've tried the suggestions from similar questions (removing validDomains in the manifest and pre-pending the ones in the Connector Dashboard with protocols) to no avail.

How can I find out why my configuration is not getting saved?

Note: normally I'd just file a ticket with the MS Teams dev support team for something like this, but this seems to be the only support channel available. For MS Teams staff, the connector ID I have is 760108a2-3c13-45e2-aa70-11a8acd32e3a.

Upvotes: 1

Views: 896

Answers (1)

Wajeed Shaikh
Wajeed Shaikh

Reputation: 3168

I could see that microsoftTeams.settings.setSettings() code is commented out in your config page. It's required step for Connector configuration to work. Please have a look at Connector Configuration documentation.Here is Connector config page sample code.

Here is how you can call setSettings:

  microsoftTeams.settings.setSettings({
       entityId: "statushero",
       contentUrl: "https://staging.statushero.com/microsoft-teams/configuration.html",
        configName: "statusheroConfig"
     });

Make sure that you add https://staging.statushero.com in valid domains section in Connector dashboard.

Upvotes: 1

Related Questions