Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Something Went Wrong" When trying to launch Microsoft Teams App template #7608

Closed
Aurimas-TheDev opened this issue Jan 30, 2023 · 13 comments
Closed
Assignees
Labels
investigating TA:E2E Team Area: E2E upstream The issue is tracked external dependency

Comments

@Aurimas-TheDev
Copy link

Describe the bug
When trying to launch Microsoft Teams App template from Visual Studio it throws an error of "Something Went Wrong". I just started to work on it today, made a fresh Azure Development account. Using Visual Studio 17.4.4.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Visual Studio
  2. Click on "Create a new project"
  3. Scroll down to Microsoft Teams App
  4. Download and install ngrok (https://ngrok.com/)
  5. Open a command prompt and run "ngrok http 5130"
  6. Right-click your project and select Teams Toolkit > Prepare Teams App Dependencies.
  7. If prompted, sign in with a Microsoft 365 account for the Teams organization you want
    to install the app to.
  8. Wait for it to load.
  9. Press F5, or select the Debug > Start Debugging menu in Visual Studio
  10. In the launched browser, select the Add button to load the app in Teams
  11. See error

Expected behavior
Based on video: https://www.youtube.com/watch?v=n2HrdzpBg-8 it had to be added to Teams so I could use it to trigger bot. However it failed to add. I am still able to find it under search apps:
image
However, app still doesn't work:
image

Screenshots
image
image

Operating System:

  • OS: Windows 11 Pro
  • Version [e.g. 22]: 10.0.22621
@ghost
Copy link

ghost commented Jan 30, 2023

Thank you for contacting us! Any issue or feedback from you is quite important to us. We will do our best to fully respond to your issue as soon as possible. Sometimes additional investigations may be needed, we will usually get back to you within 2 days by adding comments to this issue. Please stay tuned.

@llowevad
Copy link

llowevad commented Feb 1, 2023

I ran into this issue today and noticed that in botframework.com, my bot had the Teams Channel added, but wasn't showing any health (such as "healthy").. took a look at the developer portal and checked the bot and noticed that "Teams" channel wasn't checked.. i checked to add it and the bot started working and botframework.com showed the health as "Healthy".

Developer Portal > Tools > Bot Management > select your bot > channels:
image

Seems to me that the TeamsFx script is not completely adding the teams channel to the bot.

@ghost ghost added the needs attention This issue needs the attention of a contributor. label Feb 1, 2023
@Aurimas-TheDev
Copy link
Author

Thanks for your response. This was marked, so I guess it was not related with that. However, for some kind of unknonw reasons it started to work today... Not sure if I should close this pull request, or if you would like to continue investigation.

@nliu-ms
Copy link
Contributor

nliu-ms commented Feb 2, 2023

Thanks @llowevad for providing some insights.

@Aurimas-TheDev Did you log the console/Network info when you meet "Something went wrong" error? I may need more information to do the investigation, thanks!

@nliu-ms
Copy link
Contributor

nliu-ms commented Feb 2, 2023

cc @IvanJobs as it seems to be related to bot projects.

@andrewd666
Copy link

@Aurimas-TheDev I had same issue now from a new Teams app project. I used @llowevad suggestion after I hit the "Something went wrong" when debugging the project through Ngrok, but my menu's different - Teams dev portal -> Tools -> Bot management -> Select the new bot -> Channels and then tick Microsoft Teams. And its working now

@Aurimas-TheDev
Copy link
Author

The thing is that I tried these steps, but it was marked already... next day it all worked anyway

@kuojianlu
Copy link
Contributor

@llowevad Can you share which version of Teams Toolkit you used when encountering teams channel not completely added issue?

@adashen adashen added needs more info Need user to provide more info and removed needs attention This issue needs the attention of a contributor. labels Feb 7, 2023
@llowevad
Copy link

llowevad commented Feb 7, 2023

Teams Toolkit version 4.2.1
VSCode Version 1.74.3

@ghost ghost added the needs attention This issue needs the attention of a contributor. label Feb 7, 2023
@nliu-ms
Copy link
Contributor

nliu-ms commented Feb 8, 2023

Hi all, with some investigations the root cause does from invalid/missing Teams channel configured in bot caused by some underlying service live incident. We have reported the issue to the corresponding team and wait for their reply.

The workaround is basically the same as @llowevad described above:

  1. Go to Teams Developer Portal
  2. Find your bot
  3. Check the Microsoft Teams channel and save
    image

Sorry for the inconvenience, I will keep updating the status in this issue.

@nliu-ms nliu-ms added the upstream The issue is tracked external dependency label Feb 8, 2023
@nliu-ms nliu-ms pinned this issue Feb 8, 2023
@adashen adashen removed needs more info Need user to provide more info needs attention This issue needs the attention of a contributor. labels Feb 8, 2023
@nliu-ms nliu-ms unpinned this issue Feb 10, 2023
@nliu-ms nliu-ms pinned this issue Feb 16, 2023
@SLdragon
Copy link
Contributor

SLdragon commented Feb 16, 2023

By the way, if you meet the error Upload failed due to an invalid botId in your manifest as below:
image

And cannot find the Bot directly from Teams Developer Portal bot page, you can follow the steps to fix this issue:

image

  • Re-install your app, then it will works fine

Thanks @nliu-ms to help with this

@nliu-ms
Copy link
Contributor

nliu-ms commented Mar 6, 2023

This issue has been mitigated from server side, the root cause is from some cache strategy. Thank you so much for all your patience! Please let me know if you still meet this error.

@christophemacabiau
Copy link

Hi @nliu-ms,

I have this error... "Upload failed due to an invalid BotId in your manifest."
The App manifest is successfully validated in developer portal.

Is this problem back?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating TA:E2E Team Area: E2E upstream The issue is tracked external dependency
Projects
None yet
Development

No branches or pull requests

9 participants