OfficeDev / teams-toolkit

Developer tools for building Teams apps
Other
457 stars 188 forks source link

bug report: AppStudioPlugin.DeveloperPortalAPIFailed #10316

Open regahr opened 11 months ago

regahr commented 11 months ago

API call to Developer Portal failed: Error, BadRequest, API name: publish-app, X-Correlation-ID: cd393c83-4439-4920-995e-cd81309b0391. This may come from some intermittent service error. Please wait for a few minutes and retry the current step. data: {"error":{"code":"BadRequest","message":"BadRequest","innerError":{"message":"","code":"BadRequest","innerError":{},"date":"2023-11-09T02:42:10","request-id":"92534358-d6cb-4e43-a873-2c78d72418c8","client-request-id":"92534358-d6cb-4e43-a873-2c78d72418c8"}}}

stack: DeveloperPortalAPIFailed: API call to Developer Portal failed: Error, BadRequest, API name: publish-app, X-Correlation-ID: cd393c83-4439-4920-995e-cd81309b0391. This may come from some intermittent service error. Please wait for a few minutes and retry the current step. data: {"error":{"code":"BadRequest","message":"BadRequest","innerError":{"message":"","code":"BadRequest","innerError":{},"date":"2023-11-09T02:42:10","request-id":"92534358-d6cb-4e43-a873-2c78d72418c8","client-request-id":"92534358-d6cb-4e43-a873-2c78d72418c8"}}} at Function.SystemError (:2:4171172) at wrapException (:2:4110514) at Object.publishTeamsApp (:2:4117132) at processTicksAndRejections (node::95:5) at PublishAppPackageDriver.publish (:2:4168872) at PublishAppPackageDriver. (:2:4083575) at PublishAppPackageDriver. (:2:4082698) at PublishAppPackageDriver.execute (:2:4165635) at Lifecycle.executeImpl (:2:3865602) at Lifecycle.execute (:2:3862947) at Coordinator.publish (:2:3912371) at Coordinator. (:2:4316352) at FxCoreV3Implement.publishApplication (:2:4413261) at FxCoreV3Implement.exports.EnvWriterMW (:2:4319181) at FxCoreV3Implement.exports.ContextInjectorMW (:2:4466124) at FxCoreV3Implement.exports.ConcurrentLockerMW (:2:4465081) at envLoaderMWImpl (:2:4319128) at FxCoreV3Implement. (:2:4318039) at FxCoreV3Implement.exports.ProjectMigratorMWV3 (:2:4496854) at FxCoreV3Implement.exports.ErrorHandlerMW (:2:4466621) at FxCoreV3Implement.dispatch (:2:4409627)

xzf0587 commented 11 months ago

@regahr thanks for reaching out. Based on the error message, it is an error from Teams Developer Portal which maybe fail for upstream reason and recover after a time. Have you retried it and can repro this error?

regahr commented 11 months ago

already retried and still error

xzf0587 commented 11 months ago

Which command trigged this error? Can you paste the manifest.{{env}}.json in appPackage/build folder? Thanks.

regahr commented 11 months ago

triggered at publish command (contentUrl hidden)

{
    "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.16/MicrosoftTeams.schema.json",
    "manifestVersion": "1.16",
    "version": "1.0.2",
    "id": "fcaf564e-34ec-4b83-85f0-e248e6ad4a49",
    "packageName": "com.microsoft.teams.extension",
    "developer": {
        "name": "Grof Engineers",
        "websiteUrl": "https://grof.co",
        "privacyUrl": "https://grof.co/privacy",
        "termsOfUseUrl": "https://grof.co/termsofuse"
    },
    "icons": {
        "color": "color.png",
        "outline": "outline.png"
    },
    "name": {
        "short": "Comps Tracker",
        "full": "Compliance Tracker for Onboarded Grof Organization"
    },
    "description": {
        "short": "To see onboarded orgs compliance status",
        "full": "To see onboarded orgs compliance status"
    },
    "accentColor": "#FFFFFF",
    "bots": [],
    "composeExtensions": [],
    "staticTabs": [
        {
            "entityId": "index0",
            "name": "Compliance Tracker",
            "contentUrl": "https://tabxxxxxx.azurewebsites.net/tab",
            "websiteUrl": "https://tabxxxxxx.azurewebsites.net/tab",
            "scopes": [
                "personal",
                "groupChat",
                "team"
            ],
            "context": [
                "personalTab",
                "privateChatTab",
                "meetingChatTab",
                "meetingDetailsTab",
                "meetingSidePanel",
                "meetingStage"
            ]
        }
    ],
    "permissions": [
        "identity",
        "messageTeamMembers"
    ],
    "validDomains": [
        "tabxxxxxx.azurewebsites.net"
    ]
}
regahr commented 11 months ago

also failed to publish at dev.teams portal (last night still works, seems like same issue)

Screenshot 2023-11-09 at 11 00 46
regahr commented 11 months ago

i'm able to publish by changing:

            "scopes": [
                "personal",
                "groupChat",
                "team"
            ],
            "context": [
                "personalTab",
                "privateChatTab",
                "meetingChatTab",
                "meetingDetailsTab",
                "meetingSidePanel",
                "meetingStage"
            ]

to

            "scopes": [
                "personal"
            ]

still wondering i can't publish with previous scheme

xzf0587 commented 11 months ago

@regahr thank you for providing detailed information. We will investigate asap.

github-actions[bot] commented 11 months ago

The issue is milestoned with sprint milestone CY23Q4-2Wk04 (Nov 05 - Nov 18) and a work item created: https://msazure.visualstudio.com/9660fff2-2363-48b0-9e15-64df2283e932/_workitems/edit/25832261