MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
281 stars 502 forks source link

The bot embed code link breaks Teams #11436

Open MoChilia opened 1 month ago

MoChilia commented 1 month ago

Steps to reproduce

  1. Open the link: https://teams.microsoft.com/l/chat/0/0?users=28:b8a22302e-9303-4e54-b348-343232
  2. New users who open this link to chat with the bot will experience Teams freezing.

The embed code for MS Teams should be found in Azure bot service. image For security concern, here I use the bot id you posted in the document, see https://learn.microsoft.com/en-us/azure/bot-service/channel-connect-teams?view=azure-bot-service-4.0#configure-your-bot-in-azure. image

Expected behavior

The link https://teams.microsoft.com/l/chat/0/0?users=28:[my_bot_id] should work fine.

Actual behavior

I previously used the deep link https://teams.microsoft.com/l/chat/0/0?users=28:[my_bot_id] given by Azure Bot Service to chat with my Teams bot. However, new users are currently unable to chat with the bot using this link. When they attempt to open it, Teams freezes and requires a restart. How to solve this issue? Any help will be appreciated!

Error details

No response

Prasad-MSFT commented 1 month ago

Hi @MoChilia, we tried to repro this issue in New Teams both in MS Teams web and desktop client and observed that this works fine. We are able to navigate to bot chat using this deep link format: https://teams.microsoft.com/l/chat/0/0?users=28:<botId>

We have Microsoft Teams version 24215.1000.3037.6292. The client version is 49/24061318413.

MoChilia commented 1 month ago

Hi @Prasad-MSFT, thanks for your reply! My Microsoft Teams version is 24193.1805.3040.8975. The client version is 49/24071128823. My teammate failed with the Microsoft Teams version 24193.1804.3021.7765 and the client version 49/24071128823. Is the issue related to the client version? And I cannot open the link on MS Teams web either.

MoChilia commented 1 month ago

Please note that only new users who open the bot's deep link will experience Teams crashing. It works well for bots already added in my chat.

Prasad-MSFT commented 1 month ago

@MoChilia, initially we tried to repro this issue in New Teams both in MS Teams web and desktop client and observed that this works fine. We are able to navigate to bot chat using this deep link format: https://teams.microsoft.com/l/chat/0/0?users=28:<botId>

Later as suggested, tried accessing the deep link with a new user login who hasn't installed the app at their end . In this case also we can navigate to that particular app chat page (although it doesnt allow us to post any message in that bot chat as its not installed) image

MoChilia commented 1 month ago

@Prasad-MSFT, thanks for the investigation. I believe it's due to the Teams version. When I use the Teams with a lower version, it works. It's now working well on the Microsoft Teams version 24193.1804.3021.7765 and the client version 49/24080212003. I have to keep this lower version without an update. Hope the newer Teams version will not encounter this issue again.

ths4u commented 3 weeks ago

Hi everyone, Can this issue be re-opened? The issue has not been solved since it still doesn't work with newer versions of Teams. Many of my colleagues experience the same issue and it is not an option for us to downgrade Teams to a lower version.

We all have the same version of Teams (24193.1805.3040.8975) and the same client version (49/24071128825) Direct links to a newly created and not installed "Azure bot" freeze Teams for most of my team members, but not all of them. Additional observation: direct links to older, not installed bots (created as "Bot channels registration") work fine for everyone.

MoChilia commented 3 weeks ago

Hi @ths4u, I'd like to share with you a temporary workaround: Go to Settings > About Teams > Early Access > Public Preview ->Restart Teams.

While this might help, I agree that Teams should provide a stable experience on this feature across all versions. @Prasad-MSFT, could you please review this issue again? It's frustrating to encounter this repeatedly.

ths4u commented 3 weeks ago

Hi @ths4u, I'd like to share with you a temporary workaround: Go to Settings > About Teams > Early Access > Public Preview ->Restart Teams.

@MoChilia Thank you for this workaround. It worked for at least one of my team members (we are currently testing it with more people). This hopefully means that this issue is been worked on by MSFT and will be fixed in a future version of Teams?

martijnschouwe commented 2 weeks ago

We can confirm that the workaround works. We also bump into the same issue as described. Teams is totally unresponsive.

With the workaround or initiating the chat on a mobile phone and later use the chat on desktop (osx) also works. As mentioned , it will hopefully be fixed, as it is affecting a rollout of our in company chatbot.