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.