OfficeDev / microsoft-teams-library-js

JavaScript library for use by Microsoft Teams apps
https://docs.microsoft.com/microsoftteams/platform/
Other
434 stars 198 forks source link

Deep Links to tab stop working occasionally #2595

Open nbelyh opened 3 weeks ago

nbelyh commented 3 weeks ago

Dear Teams team,

We periodically face the following issue: navigating to the "deep links" to our custom tab, results in error "tab not found or was deleted", like this:

image

If, after receiving this message, you actually go to that team where the link points to, and open that tab manually, the link start working. I.e. if you navigate such a link again, the tab will be opened properly. And it will also open tomorrow, etc. I.e. the tab is actually there, just the link does not open it. Looks like it happens more often for the tabs that were not used for quite a while (like, weeks), but that may be subjective.

The link looks like this:

https://teams.microsoft.com/l/entity/<app>/<entity>?context={"subEntityId":"<something>","channelId":"<channelid>"}

Example:

https://teams.microsoft.com/l/entity/04239e5b-bcbb-4548-8ead-780874cd8fbf/be13c124b28d49d1ab0911e60be00f88?context=%7B%22subEntityId%22:%22TITLE%7CTITLE%22,%22channelId%22:%2219:2d085ab9869c4422916121dc1f1f6bd8@thread.tacv2%22%7D

The issue happens both in desktop and web clients. Any recommendation what to look for? We cannot provide exact steps to reproduce as the issue happens Intermittently, buy a customer. The link that worked before stops working, and start working again if you navigate to that tab "manually". Looks somewhat like some cache issue?

nbelyh commented 3 weeks ago

@maglims Our app works only in teams, so I could only confirm it happens in teams, not sure about the office apps.

Meghana-MSFT commented 3 weeks ago

@nbelyh - Thank you for your report! We are unable to reproduce the issue you’re experiencing. We are checking internally if this is a known issue for tabs that weren't opened recently.

Also, could you please provide the following information to help us better assist you?

If available, please share any relevant error logs.

nbelyh commented 3 weeks ago

@Meghana-MSFT

Thank you for coming back to this.

Unfortunately I do cannot provide steps to reproduce the issue. It "just happens" sometimes (intermittently, i.e. more or less random). Today the link works, tomorrow the same link stops working.

I will try to collect more information so that I can provide the steps, or film a short video, and add a as a comment to this issue.

Meghana-MSFT commented 2 weeks ago

@nbelyh - Could you please share the Teams Client logs collected after seeing this dialog? This will help engineering team to figure out the root cause. Please share logs at microsoftteamsdev@microsoft.com.