pnp / graph-connectors-samples

Microsoft Graph Connector samples
https://aka.ms/gc/samples
MIT License
48 stars 35 forks source link

foodsie-local code fails on validating app package with No specific error #63

Closed rp2343 closed 1 month ago

rp2343 commented 2 months ago

Executing Foodsie-local code errors out at following point - Teams Toolkit has checked manifest(s) with the corresponding schema:

Summary: All passed.
[2024-09-25T11:44:38.174Z] [Info] - (√)Done: Teams Package c:\Users\rap\Downloads\graph_connector\graph-connectors-samples\samples\nodejs-typescript-food-catalog\appPackage\build\appPackage.local.zip built successfully! [2024-09-25T11:44:39.183Z] [Info] - Teams Toolkit has checked against all validation rules:

Summary: 1 failed, 51 passed. You can check and update your Teams app package at ./appPackage/build/appPackage.local.zip. (×) Error: undefined File path: undefined, title: No Supported Products found for the package

A complete log of validations can be found in c:\Users\rap\AppData\Roaming\Code\logs\20240925T154415\window1\exthost\TeamsDevApp.ms-teams-vscode-extension\20240925T101422.log [2024-09-25T11:44:39.187Z] [Error] - Failed to Execute lifecycle provision due to failed action: teamsApp/validateAppPackage. ManifestValidationFailed:Teams Toolkit has completed checking your app package against validation rules. 1 failed, 51 passed.. Env output: {} [2024-09-25T11:44:39.191Z] [Info] - Execution summary:

Summary: (×) Error: Lifecycle stage provision failed. (√) Done: script(Ensure tables and data) was executed successfully. (√) Done: Successfully executed command (√) Done: script(Increment manifest version) was executed successfully. (√) Done: Successfully executed command (√) Done: aadApp/create was executed successfully. (√) Done: aadApp/update was executed successfully. (√) Done: Applied manifest ./aad.manifest.json to Microsoft Entra application with object id bdad8594-b6cc-496b-909e-ad848c63b3a7 (√) Done: teamsApp/validateManifest was executed successfully. (√) Done: teamsApp/zipAppPackage was executed successfully. (×) Error: teamsApp/validateAppPackage failed. (×) Error: Teams Toolkit has completed checking your app package against validation rules. 1 failed, 51 passed. (!) Warning: file/createOrUpdateJsonFile was not executed. (!) Warning: teamsApp/publishAppPackage was not executed.

Attaching log file for reference. 20240925T101422.log

waldekmastykarz commented 2 months ago

Thank you for letting us know @rp2343 and sorry for the trouble. We'll have a look at it asap.

garrytrinder commented 2 months ago

@rp2343 as a workaround you can comment out the teamsApp/validateAppPackage action in the teamsapp.local.yml file, this should unblock you. However, can you share the manifest file being validated? You can find the manifest being validated in appPackage/build folder.

waldekmastykarz commented 1 month ago

Closing for the lack of further comments.