Closed ja-onereach closed 1 year ago
Hi ja-onereach! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.
Best regards, Teams Platform
@Jagadeesh-MSFT - could you please look into this issue?
Hi @ja-onereach, Thank you for reaching us, we are working on it, will update you soon.
@Jagadeesh-MSFT Thanks for your follow-up. Apologies if this is being pushy, but I want to reiterate something from the original message:
This is an urgent, blocking problem for us and our customers, so any guidance that could help unblock us immediately would be greatly appreciated. Perhaps there's a hidden means of obtaining a more precise error description, or some reliable workaround steps we could take, or alternative API versions, or other such thing, that we could use while the root of this problem is being addressed. At the moment, some of our customers are entirely unable to create Teams integrations because they can't get past the last installation step and there is no useful indication of what the actual problem is.
As well, I should clarify that we've attempted to automate the app creation and installation process from start to finish, which is what is described in the Detailed issue description section. But we've also tried the process manually, which is where the observations of the "Something went wrong" client error message and browser network responses happened. The problem is the same whether we try adding the app programmatically via the teams/${TEAM_ID}/installedApps
endpoint or do it using the manifest.zip file via the web or native clients.
Thanks!
Can we discuss this over call? Could you please write to us at microsoftteamsdev@microsoft.com
I'd be glad to... I'm free any day after 10am MT if you'd like to pick a time that's convenient for you.
Thanks! -jonathan anderson
Jagadeesh-MSFT wrote on 5/18/21 11:39 PM:
Can we discuss this over call? Could you please write to us at @. @.>
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MicrosoftDocs/msteams-docs/issues/3178#issuecomment-843761724, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIFC2AAT3Z4OA64EWNJUMATTONFKBANCNFSM43TL4VKA.
Hi @@.***>, I'm scheduling this call on your's Monday morning 9:00AM MT. I hope it would work for you, otherwise please let me know your available time.
Thanks & Regards, Jagadeesh Lankireddy
Microsoft Teams meeting Join on your computer or mobile app Click here to join the meetinghttps://teams.microsoft.com/l/meetup-join/19%3ameeting_NTgyYmY4N2MtZGE0Zi00NzQ5LThmYzItZjkzNjk3ZjFkMGNi%40thread.v2/0?context=%7b%22Tid%22%3a%2272f988bf-86f1-41af-91ab-2d7cd011db47%22%2c%22Oid%22%3a%227aed6015-3632-44dd-8559-84e649bc5b6b%22%7d Or call in (audio only) +91 22 6219 2547,,,,222654849#<tel:+912262192547,,,,222654849#> India, Mumbai 0008000402025,,,,222654849#<tel:0008000402025,,,,222654849#> India (Toll-free) Phone Conference ID: 222 654 849# Find a local numberhttps://dialin.teams.microsoft.com/576c8211-dbe8-4a9a-8707-1b52ccc23231?id=222654849 | Reset PINhttps://mysettings.lync.com/pstnconferencing Learn Morehttps://aka.ms/JoinTeamsMeeting | Meeting @.***&messageId=0&language=en-US>
From: Jonathan Anderson @.**@.>> Sent: 20 May 2021 00:39 To: MicrosoftDocs/msteams-docs @.**@.>>; Jagadeesh-MSFT @.**@.>>; Microsoft Teams Dev Community Response @.**@.>> Subject: [EXTERNAL] Re: [MicrosoftDocs/msteams-docs] Custom app installation fails with "Something went wrong" (AddAppBotToChatRosterFailed) error (#3178)
I'd be glad to... I'm free any day after 10am MT if you'd like to pick a time that's convenient for you.
Thanks! -jonathan anderson
Jagadeesh-MSFT wrote on 5/18/21 11:39 PM:
Can we discuss this over call? Could you please write to us at @.**@.>
- You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fmsteams-docs%2Fissues%2F3178%23issuecomment-843761724&data=04%7C01%7Cv-jaglan%40microsoft.com%7C3c55f8693ed747187a1408d91af987a2%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637570482211613786%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0&sdata=8GZshKbosLtOsfVcwfNZZgaBCMcJP6e0MFizBmP9%2Fsk%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAIFC2AAT3Z4OA64EWNJUMATTONFKBANCNFSM43TL4VKA&data=04%7C01%7Cv-jaglan%40microsoft.com%7C3c55f8693ed747187a1408d91af987a2%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637570482211623780%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0&sdata=wrwEOAY9fshJHbNl0oQLs%2FvjN1qNBnemKwd50z%2FWQQA%3D&reserved=0.
I also had this same issue when I tried to install a custom app in MSFT teams. In my case, I was able to fix it by adding the MSFT teams channel in Azure portal under the bot service channels section.
I have a similar issue, in my case I can register the bot without problems when my AAD registered app has "accessTokenAcceptedVersion": null
but after i change it to "accessTokenAcceptedVersion": 2
it starts to throw this "AddAppBotToChatRosterFailed" exception when I'm uploading the MS Teams manifest.
Maybe it's because the null/1 version uses different format of the audience claim than the 2 version? 1/null sets my audience claim as api://<APP_DOMAIN>/<AAD_APP_ID>
, but the 2 version sets it as just the <AAD_AAP_ID>
.
That's what I think, but I'll be debugging it further in the upcoming weeks, it would be really nice to be able to use the 2 version.
EDIT: I also have the AAD app marked as multitenant, and the bot registered as the Bot Channel Registration (MS Teams channel) in my Azure tenant, it's because I'm using the "calling bot" functionality too. As I said it works with access token version 1, but breaks when changed to access token version 2.
Thanks to @santhoshkr047 and @marcinburak for adding their observations here. The variety of potential causes of the same error underscores what I think is the real, critical issue here: this single error message encompasses too many possible actual underlying causes such that people have to guess their way to a solution instead of being pointed directly to it by the error message. Instead of seeing AddAppBotToChatRosterFailed
or just "Something went wrong," if we saw errors like "Could not add app bot to chat roster because Teams is not enabled in Bot Channels Registration" or "...this Teams user is not permitted to install 3rd-party apps" or "...the provided access token version is prohibited for the 'POST appCatalogs/teamsApps' method", people would be able to dig themselves out of their own holes. The problem probably isn't that there's a bug in sideloading apps, it's that the success of that action is subject to too many obscure variables in the compound intersection of Graph API methods, Azure resources, Azure security settings, AAD permissions, Teams security settings, and Teams user permissions.
In case it helps anyone else, here are the instructions we've been giving our customers that run into this:
The problem is most likely related to what Microsoft describe as “side-loading” apps, which seems to mean uploading the manifest instead of getting it from a marketplace, and the security and permissions settings that bear on that activity. Please go to https://admin.teams.microsoft.com and check the following sections:
If you're unable to see or access any of those sections in the Teams admin center, you need to get the help of your Teams admin or get your Teams admin to elevate your privileges. With luck, this is all just some obscure issue related to permissions and security settings that were overlooked previously. Otherwise you need to undertake a process to isolate and confirm the issue while generating the data we need to send to Microsoft to get their help finding a solution.
At every juncture where an error occurs or something seems to fail, please note the specific activity and the precise date, time, and timezone when it occurred. Then sign out of Teams, quit the application, then open it again and sign in again before proceeding to the next step. Apparently there are known issues with caching so it's necessary to try to exclude that as a variable.
One of our customers that's been having this problem reported that the cause turned out to be the Azure subscription they were trying to use had been disabled or deactivated somehow. They fixed that and were able to proceed. So people experiencing this issue really need to check every single little piece of the App Registration, Bot Channels Registration, subscription, resource group, their AAD permissions, their Teams user permissions, whether the app is single-tenant, Teams admin security settings regarding custom apps, and who knows what else.
We had previously received guidance from Microsoft that we should try installing a custom app via the Teams admin center rather than the Teams client. In my experience, that causes the "Something went wrong" error 100% of the time, so I recommend only installing it from the Teams client.
@Jagadeesh-MSFT I have a similar issue, always getting "Something went wrong" (AddAppBotToChatRosterFailed) error when trying to add the custom bot. Have any news about this problem??
@ja-onereach - Could you please confirm if your issue has resolved or still looking for any help?
@v-chetsh I can't say it's really been resolved, we're just learning to work around it. The fundamental problem here is that many possible configuration issues can result in the same, unspecific error message so it's exceedingly hard to identify the specific problem(s) in the specific tenant at hand.
I get the same error once I add a bot to my 'manifest.json'-file. If I leave the bot property empty, it installs just fine. This just happened during the 'Develop apps for Microsoft Teams – Associate' MS Learn course at 'Exercise - Using task modules with bots'. I also tried installing it from the Teams admin page, but I get a different error when installing the app from 'Built for your org': "App not found The app may not exist, or your organization may have disallowed you from using it"
{ "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.11/MicrosoftTeams.schema.json", "manifestVersion": "1.11", "id": "{{APPLICATION_ID}}", "version": "{{VERSION}}", "packageName": "{{PACKAGE_NAME}}", "developer": { "name": "Contoso", "websiteUrl": "https://{{PUBLIC_HOSTNAME}}", "privacyUrl": "https://{{PUBLIC_HOSTNAME}}/privacy.html", "termsOfUseUrl": "https://{{PUBLIC_HOSTNAME}}/tou.html" }, "name": { "short": "YouTube Player", "full": "YouTube Player" }, "description": { "short": "TODO: add short description here", "full": "TODO: add full description here" }, "icons": { "outline": "icon-outline.png", "color": "icon-color.png" }, "accentColor": "#D85028", "configurableTabs": [], "staticTabs": [ { "entityId": "221e7a8b-aa32-4feb-8a10-75595a75aa12", "name": "YouTube Player 1", "contentUrl": "https://{{PUBLIC_HOSTNAME}}/youTubePlayer1Tab/?name={loginHint}&tenant={tid}&theme={theme}", "scopes": [ "personal" ] } ], "bots": [ { "botId": "{{MICROSOFT_APP_ID}}", "scopes": [ "personal" ], "commandLists": [ { "scopes": [ "personal" ], "commands": [ { "title": "MentionMe", "description": "Sends message with @mention of the sender" } ] } ] } ], "connectors": [], "composeExtensions": [], "permissions": [ "identity", "messageTeamMembers" ], "validDomains": [ "{{PUBLIC_HOSTNAME}}" ], "showLoadingIndicator": false }
@dmitriyvde - Could you check if you have added MS Teams in the channels part of bot channel registration.
@ja-onereach - Could you please let us know what is the current issue you are facing? Also please share the repro steps.
@Meghana-MSFT Our problem is a little bit complicated, a little bit meta. Our product is a platform that people use to create automation, chatbot, integration, and other such systems, and we offer a collection of tools for working with Teams bots. Very often when one of our customers tries to create a bot app for Teams, they get completely stuck because the app installation fails with this vague "Something went wrong" error. The actual, underlying reason for the error is seemingly different for every customer based on the idiosyncrasies of their Azure and O365 tenant configurations and random errors they might have made. I've listed some of the different reasons we've seen before in my previous messages here.
If you consider how many different possible configuration issues, security or access limitations, and errors (or multiple, cooccurring instances of any of those) can lead to "Something went wrong" it makes it extremely hard to figure out how to fix the problem. Every one of our customer's Azure/O365 tenants is a vast sea of complexity and idiosyncrasy and subject to different access restrictions, so every occurrence of this error requires a complicated investigation. So when I said "we're just learning to work around it," I meant that every time we encounter this we add another item to the list of things to check next time it happens. This has taken the troubleshooting process down from 2-3 weeks to a few days, but if the error message could report specifically what failed people would be able to get past this immediately and without an onerous process of investigating Azure/O365 resources and settings.
@Meghana-MSFT Yes, I have done everything as described here in the MS learn module. A bit off topic: I might also want to add that I have reported quite a lot of feedback on these pages in terms of 'Learning content quality' since a lot of the subject matter on teams is simply outdated and a pretty much nothing in the whole MS Learn path for Teams works with de described screenshots/code snippets. As a newcomer and someone that is soon going to attempt the MS-600 exam I am really doubting this part of the exam. Are the questions even going to be relevant by the time I attempt the exam or will they be about outdated/non-working ways of working with Teams apps? Sure I could go to other places to learn these things, but then what's the point of having a learn path on this subject matter in the first place? I understand that Teams is a rapidly evolving platform and things get added pretty much all the time, but then just add a disclaimer at the top or something that the content probably doesn't apply anymore.
@ja-onereach - Thanks for providing the inputs, We are checking this internally. We will get back to you.
@ja-onereach -
@DmitriyVdE - We will try to repro the issue by following the above mentioned MS learn module. and get back to you.
@ja-onereach - Could you please share the above requested details?
@Meghana-MSFT @Jagadeesh-MSFT I am following MS learn module for building bot for teams and facing different issues since then:
This is frustrating as I am struggling even in following the tutorial for 2 days. Here is the manifest in zip file.
{ "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.9/MicrosoftTeams.schema.json", "manifestVersion": "1.9", "id": "15327820-7ecc-11ec-ad8f-c540a8a3dbdb", "version": "0.0.2", "packageName": "conversationalbot", "developer": { "name": "Codeterian", "websiteUrl": "https://ed40-88-192-41-19.ngrok.io", "privacyUrl": "https://ed40-88-192-41-19.ngrok.io/privacy.html", "termsOfUseUrl": "https://ed40-88-192-41-19.ngrok.io/tou.html" }, "name": { "short": "Conversational Bot", "full": "Conversational Bot" }, "description": { "short": "TODO: add short description here", "full": "TODO: add full description here" }, "icons": { "outline": "icon-outline.png", "color": "icon-color.png" }, "accentColor": "#D85028", "configurableTabs": [], "staticTabs": [], "bots": [ { "botId": "49d81788-1845-4cae-9cdf-562679c84e1d", "needsChannelSelector": true, "isNotificationOnly": false, "scopes": ["team", "personal"], "commandLists": [ { "scopes": ["team", "personal"], "commands": [ { "title": "Help", "description": "Shows help information" }, { "title": "Who am I?", "description": "Shows information about your Teams user" }, { "title": "Mention me", "description": "Let the bot @mention you" } ] } ] } ], "connectors": [], "composeExtensions": [], "permissions": ["identity", "messageTeamMembers"], "validDomains": ["ed40-88-192-41-19.ngrok.io"], "showLoadingIndicator": false }
Hi @Nikitha-MSFT @Wajeed-msft, Can you please help on this issue?
@ekansh005 - We are checking it. We will update you soon.
@ekansh005 -
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 3 days. It will be closed if no further activity occurs within 3 days of this comment.
Hi,
I would check this in a couple of days.
Hi @Meghana-MSFT ,
I am still facing the same issue. PFA the screen recording and the package where I replicate the issue. https://1drv.ms/u/s!AmbUIBxAPz3VbqPucbyjrtoDvWA?e=M2utFt
Sorry for the slow reply, I responded to the equivalent question in a support email thread and thought that was enough. I don't have any ongoing unresolved instances of this problem so unfortunately I can't share the requested details right now. The next time I hear from a customer encountering this problem I'll share whatever details I can. Let me copy what I said in the email thread here:
Please consider what I've already said a few times on that thread: this isn't just one incidence of this problem in one tenant that we need help troubleshooting, it's a recurring incident across many tenants under variable circumstances. I can't give you specific steps to reproduce it right now because we've resolved the cases we were facing before, and anyway those are not occurring in our tenants, they're happening in our customers'. Honestly the way to reproduce this problem for yourselves is to ask people who are not experts in Azure and who don't have god-level permissions in their tenants to try to get started using a Teams bot app in a variety of real-world, complicated Azure and O365 instances, and just watch what they have to go through. As noted in the thread, sometimes it's a subscription issue, sometimes a problem with the bot channels registration, sometimes some sort of permissions issue or a restriction on side-loading apps, sometimes an issue with a schema or API version being used, sometimes it's because you tried installing it from the Teams admin area instead of the client, sometimes it's the inverse. Seemingly dozens of different little problems result in the same error message, making this a nightmare to troubleshoot each time.
At this moment, our request is less of a support ticket and more of a plea—speaking as someone who is frequently trying to help Azure and O365 customers on their journey to using Teams bot apps—to make it easier to get started, or make it less susceptible to this error that halts all progress, or at least make the error message actually informative. It takes about 10 minutes to set up a bot integration with Slack, Zoom, and Webex Teams, and troubleshooting problems takes maybe a half an hour; getting started with Microsoft Teams bots usually takes hours under good conditions and days or weeks under others. Even if you manage to get something installed, with Teams instead of just learning one API or SDK you have a vast range of complicated new things to learn... but I suppose that's off-topic for this specific issue.
When this issue comes up again I'll ask the affected customer to send me as much detail as they can and also make their own support request to Microsoft, but if we keep viewing this as a single incident needing troubleshooting we'll be missing the real problem. We've done a ton of work to create tools that make it easy for people to build conversational and other automation behaviors in teams, but none of that is worth anything until customers can get their app installed.
Ran into the same problem. The thing is, this error msg is too generic to be helpful.
@johnmiroki - Can you please share the manifest with which installation is failing? So that we will be able to check locally. Can you please let us know if it is a consistent issue or intermittent. thanks.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 3 days. It will be closed if no further activity occurs within 3 days of this comment.
Issue summary
{errorCode: "AddAppBotToChatRosterFailed"}
can be seen in the network monitor.Requested remediation
Detailed issue description
Background
Our company's product is a tool that helps people build bot, automation, AI, and other such systems using low-code and no-code tools. We offer a MS Teams Toolkit that supports building conversation bots and interacting with the Teams API. To support our customers in getting started, we have tools that help them create the necessary configurations/manifests for Azure and Teams.
Definitions
Installation process
1 Installer communicate with MS Graph by Installer App access tokens.
2 This is where the issue occurs. In most cases, it works and the app indeed added to the team, but in some cases the response for this request is 500 - Failed to execute backend request.
Test environment configuration
portal.azure.com
Added two users USER_1 and USER_2. Both users were assigned the role Global Administrator. Both users use Pay-As-You-Go subscription.
admin.teams.microsoft.com
The problem
As USER_1 with Global Admin permissions and Pay-As-You-Go subscription I am not able to add custom application (bot) to the Team, in MS Teams UI, owned by me. The Something went wrong modal appears. If we use the Teams web browser client, an HTTP 500 response with the body
{errorCode: "AddAppBotToChatRosterFailed"}
can be seen in the network monitor.The app does appear in the Teams app list after the Install Process. But the user who added the application is only able to see it only after re-login. Nevertheless, the application still is not fully added to the team, because the "Add app to team" control remains available (and continue causes a AddAppBotToChatRosterFailed error).
As USER_2, the same initial behavior occurs as with the first user, but after re-login all works ok.
Appendix
Installer App Azure Manifest Example
Create App Request Example
Add Password Request Example
Deploy Bot Request Example
MS Teams App Manifest Example
Publish Bot In App Catalog Request Example
Install Bot In Team Request Example