0

I am creating a custom connector for MS Teams for my system, so in the iFrame of the connector config screen, we run our setup service, and then use the TeamsSDK, @microsoft/teams-js": "^2.2.0 to enable the save button, and then used the registerOnSaveHandler to handle the event. According to the teams documentation, in this after setting the contentUrl,remove Url in the setConfig, I should be able to get the webhookUrl in the getConfig call.

The issue I am facing is, the first couple of times I try to set up the connector, it fails and the browser console shows a 500 error call to the API,

https://outlook.office.com/connectors/ConnectToO365Inline/Manage/UpdateAsync?MailboxAddress=00f72c4f-46f7-4a11-bce4-d55f18e5e18e%40fa1b21ce-4ca5-4009-bdf5-09f090b36c64&client=SkypeSpaces&SSThread=19%3D7a0LqqJGDFlMRBtj-ZM0JjoEaL3a0Uaopoinzxm6llw1%40thread.tacv2&HostName=teams.microsoft.com&culture=en-gb&upn=sagar%40rasaa.com&SSEnv=DM2P&ssChannelName=General&ssApiHost=in.ng.msg.teams.microsoft.com&iframe=true&SSTheme=default&SSTokenType=SkypeToken&SSFormat=Swift&isDesktopClient=false&enableConnectorApps=true&ProviderId=0be66ca5-81bd-4e3e-9b51-57f919d57f3b

After that it successfully create the webhook, and I am able to post messages into the channel with it. Has anyone else faced the issue? I am unable to point out why its the first couple of times.

  • Could you please share any refer sample or document , so that we can investigate from our end? – Sayali-MSFT Aug 19 '22 at 13:32
  • Prior to TeamsJS v.2.0.0, your code must call microsoftTeams.authentication.registerAuthenticationHandlers() with the URL and success or failure callback methods before calling authenticate() due to cross-client compatibility reasons. Starting with TeamsJS v.2.0.0, registerAuthenticationHandlers has been deprecated in favor of directly calling authenticate() with the required authentication parameters. https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-creating#integrate-the-configuration-experience – Sayali-MSFT Aug 23 '22 at 12:23
  • Hi, sorry for the delayed response, the issue was due to some redundant cookie. Upon clearing it works fine, So sorry for the trouble – avadaKedavera Sep 28 '22 at 06:09

0 Answers0