Forum Discussion

mkdmkd's avatar
mkdmkd
Copper Contributor
Jan 05, 2024

Sideloading App fails for non-General channels in the new Teams Client

Hello, I am having an issue with side loading a custom app. Any help appreciated.

 

When I upload the app package zip file and click "Add to a team" then select a channel I created, I get "Something went wrong" message without any detail of the error. 


In Classic Teams app, uploading works fine with any channels. In the new Team app, it works when I try to add it to "General" channel, but not for other user-created channels.

 

manifest.json:

 

{
  "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.16/MicrosoftTeams.schema.json",
  "version": "1.0.0",
  "manifestVersion": "1.16",
  "id": "731a566d-a6cf-43c2-9d77-353e2a2dbd7e",
  "packageName": "com.package.name",
  "name": {
    "short": "My custom app",
    "full": "My custom app"
  },
  "developer": {
    "name": "Custom App Developer GmbH",
    "mpnId": "",
    "websiteUrl": "https://example.com",
    "privacyUrl": "https://example.com/privacy-policy",
    "termsOfUseUrl": "https://example.com/terms"
  },
  "description": {
    "short": "Short description",
    "full": "Full description."
  },
  "icons": {
    "outline": "outline.png",
    "color": "color.png"
  },
  "accentColor": "#314749",
  "bots": [
    {
      "botId": "c57a4f3d-9dfd-477c-8225-de9c106b9e4d",
      "scopes": [
        "team"
      ],
      "commandLists": [
        {
          "commands": [
            {
              "title": "config",
              "description": "Configure the Bot"
            }
          ],
          "scopes": [
            "team"
          ]
        }
      ],
      "isNotificationOnly": false,
      "supportsCalling": false,
      "supportsVideo": false,
      "supportsFiles": false
    }
  ],
  "webApplicationInfo": {
    "id": "c57a4f3d-9dfd-477c-8225-de9c106b9e4d",
    "resource": "https://example"
  },
  "authorization": {
    "permissions": {
      "resourceSpecific": [
        {
          "type": "Application",
          "name": "ChannelMessage.Read.Group"
        }
      ]
    }
  },
  "validDomains": []
}

 

 

MacOS Desktop Teams Client (new):

From summary.txt:

2024-01-05T10:09:02.276Z Err resolverUncaughtErrorBoundary__doNotAssignToGraphQLTeam: Uncaught error in a GraphQL resolver for operation installSideLoadApp, at field selection path: installSideLoadApp

 

From cdl-worker-diagnostics-logs.txt:

2024-01-05T10:09:02.261Z Inf CDL-EPM: Data call uploadSideloadedAppInTeamScope_mt is completed with FORBIDDEN. CorrelationId: e73e9ec1-5199-4a5a-afe4-3badb50df74f
2024-01-05T10:09:02.261Z Inf cdlwebworker: {requestId:m-146,component:CDLGraphQLMessageHandler,requestRendererId:4b3e8f46-56d3-427f-b1e2-d239b2ea6bca,requestWindowId:fa1bc481-f577-4d6e-be67-64ad54d3ccad,operationType:mutation,operationName:installSideLoadApp,timeOfRequest:376595.5,message:Sending response to child renderer,hostRendererId:cdlwebworker}
2024-01-05T10:09:02.260Z Inf cdlwebworker: {component:JobScheduler,message:Finished executing job {resourceTags:[JobName: SideloadAppsUploadJob,AppId: 731a566d-a6cf-43c2-9d77-353e2a2dbd7e,Scope: Team],currentState:Completed} (priority 3),hostRendererId:cdlwebworker}
2024-01-05T10:09:02.260Z Err AppsPlatformWorkerResolver: installSideLoadApp failed: {"name":"TypeError","message":"Cannot read properties of undefined (reading 'id')","stack":[]} {"requestId":"m-146","requestRendererId":"4b3e8f46-56d3-427f-b1e2-d239b2ea6bca","requestWindowId":"fa1bc481-f577-4d6e-be67-64ad54d3ccad","component":"QueryProcessor","hostRendererId":"cdlwebworker","operationType":"mutation","operationName":"installSideLoadApp","timeOfRequest":376595.5}, Unknown

 

Teams Web App (new Teams app, google chrome):

Request URL: https://teams.microsoft.com/api/mt/emea/beta/teams/19:689c818072a64a2e87c574f7e1d1cf61@thread.tacv2/apps/definitions/appPackage
Request Method: POST
Status Code: 403 Forbidden
 
Response: {"errorCode":"OperationNotAllowedOnPartialSetupTeamThread"}

 

 

3 Replies

    • mkdmkd's avatar
      mkdmkd
      Copper Contributor

      Hi ChetanSharma-msft , thanks for having a look.

      I am facing this issue on Mac machine. I tested both Desktop client and webapp on a Mac.

       

      The scenario is following:

      - The app contains only a simple Bot feature responding to the messages in a team

      - I have "App Registration" in Azure, with a client secret so that our server endpoint (hosted elsewhere) can receive events

      - I have "Bot Service" with Teams channel. this is only used for configuring the message endpoint

      - The setup all works in Classic Teams App (both desktop and webapp)

      - One thing that doesn't work is to add the Bot to a team by selecting a channel that is not "General"

       

      I'm afraid I can not provide the deployed manifest. The app is still in development and not on the store or any organization. That is a part of the reason why I am testing with side loading zip file.

       

      My feeling is that it's something to do with client side code (not Azure setup or our server endpoint) because  it works for Classic Teams Client and the error seems to happen way before involving server/config stuff.

Resources