Skip to content

Not able to add to Teams #9889

Description

@tboehm-yourBytes

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

Windows

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • Node: v18.20.4
  • Windows 11
  • Gulp CLI version: 3.0.0
  • Gulp Local version: 4.0.2

Describe the bug / error

Hello everyone,
i currently have a spfx app which worked for the last 1.5 Years now. I updated the app and now im unable to add the application to teams anymore, without any (informational) error. So i tried to create a new app and can reproduce this behaviour with it.

Steps to reproduce

  • yo @microsoft/sharepoint
    • Which client-site component: WebPart
    • Template: Minimal
  • Execute inside folder: gulp clean && gulp bundle && gulp package-solution --production
  • Take the sppkg file from /sharepoint/solution folder and upload it in .sharepoint.com/sites/appcatalog/_layouts/15/tenantAppCatalog.aspx/manageApps
  • During upload it will ask to add it to teams, check it
  • After upload, go to teams in an existing channel, add a new tab and search for the Project (name given in step 1)
  • it will fail

I opened developer console and saw an request which fails everytime i try to add the app. It calls .sharepoint.com/_api/web/hostedapps/add which results in 500 Internal Server Error with this body.

{
    "error": {
        "code": "-2146232832, Microsoft.SharePoint.SPException",
        "message": "hostedAppConfigsList null"
    }
}

Any help would be appreciated!

Expected behavior

The app should be able to add as Teams Tab, as before, or if the error is right - it should display a meaningful message

Metadata

Metadata

Assignees

Labels

Needs: Author FeedbackAwaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.Needs: Triage 🔍Awaiting categorization and initial review.sharepoint-developer-supportsharepoint-developer-supporttype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions