Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MS Teams Toolkit Error #12131

Closed
MoonAlzoubi26z opened this issue Jul 31, 2024 · 8 comments
Closed

MS Teams Toolkit Error #12131

MoonAlzoubi26z opened this issue Jul 31, 2024 · 8 comments
Assignees
Labels
investigating TA:Compute Team Area: Compute TA:E2E Team Area: E2E

Comments

@MoonAlzoubi26z
Copy link

I'm starting new on the Teams Toolkit i followed the steps on the toolkit plugin page and i'm getting an error in this step:
Run Local Preview.
and this is the output:
[Error] - Failed to Execute lifecycle provision due to failed action: teamsApp/validateManifest. ManifestValidationFailed:Manifest Validation is unsuccessful! Unable to get schema from https://developer.microsoft.com/en-us/json-schemas/teams/v1.16/MicrosoftTeams.schema.json, message: Failed to get manifest at url https://developer.microsoft.com/en-us/json-schemas/teams/v1.16/MicrosoftTeams.schema.json due to: request to https://developer.microsoft.com/en-us/json-schemas/teams/v1.16/MicrosoftTeams.schema.json failed, reason: connect ETIMEDOUT 23.33.241.144:443. Env output: {"TEAMS_APP_ID":"74028ab9-f369-42ff-ab93-57a1a0e008fb","TEAMS_APP_TENANT_ID":"59f4d0e9-1e36-4c52-94c1-84176ffa43e5","TAB_DOMAIN":"localhost:53000","TAB_ENDPOINT":"https://localhost:53000"}
[2024-07-31T16:16:31.655Z] [Info] - Execution summary:

Summary:
(×) Error: Lifecycle stage provision failed.
(√) Done: teamsApp/create was executed successfully.
(√) Done: Teams app with id 74028ab9-f369-42ff-ab93-57a1a0e008fb already exists, skipped creating a new Teams app.
(√) Done: script was executed successfully.
(√) Done: Successfully executed command echo "::set-teamsfx-env TAB_DOMAIN=localhost:53000"; echo "::set-teamsfx-env TAB_ENDPOINT=https://localhost:53000";
(×) Error: teamsApp/validateManifest failed.
(×) Error: Manifest Validation is unsuccessful! Unable to get schema from https://developer.microsoft.com/en-us/json-schemas/teams/v1.16/MicrosoftTeams.schema.json, message: Failed to get manifest at url https://developer.microsoft.com/en-us/json-schemas/teams/v1.16/MicrosoftTeams.schema.json due to: request to https://developer.microsoft.com/en-us/json-schemas/teams/v1.16/MicrosoftTeams.schema.json failed, reason: connect ETIMEDOUT 23.33.241.144:443
(!) Warning: teamsApp/zipAppPackage was not executed.
(!) Warning: teamsApp/validateAppPackage was not executed.
(!) Warning: teamsApp/update was not executed.
(!) Warning: teamsApp/extendToM365 was not executed.
Teams

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Jul 31, 2024
@adashen adashen added investigating TA:E2E Team Area: E2E labels Aug 1, 2024
@anchenyi
Copy link
Contributor

anchenyi commented Aug 1, 2024

hi @MoonAlzoubi26z , the reason is that your network cannot access the json schema. Could you check if you can open this link ( https://developer.microsoft.com/en-us/json-schemas/teams/v1.16/MicrosoftTeams.schema.json) in your browser?

@adashen adashen added needs more info Need user to provide more info and removed needs attention This issue needs the attention of a contributor. labels Aug 2, 2024
@MoonAlzoubi26z
Copy link
Author

Thank you anchenyi, this is what i see when i open the schema json:

Github

I see the JSON schema.

@microsoft-github-policy-service microsoft-github-policy-service bot added needs attention This issue needs the attention of a contributor. and removed needs more info Need user to provide more info labels Aug 5, 2024
@anchenyi
Copy link
Contributor

anchenyi commented Aug 5, 2024

hi @MoonAlzoubi26z , it looks like you do have access to this json schema. Could you retry in the Teams Toolkit? It might be due to a network spike before.

@adashen adashen added needs more info Need user to provide more info and removed needs attention This issue needs the attention of a contributor. labels Aug 5, 2024
@MoonAlzoubi26z
Copy link
Author

I restarted the VS Code and i ran the debug again, the error happens at this step:
(2/3) Action cli/runNpmCommand(install dependencies): running npm command.
npm ERR! errno ETIMEDOUT

Teams

@microsoft-github-policy-service microsoft-github-policy-service bot added needs attention This issue needs the attention of a contributor. and removed needs more info Need user to provide more info labels Aug 6, 2024
@anchenyi
Copy link
Contributor

anchenyi commented Aug 7, 2024

hi @MoonAlzoubi26z, for further investigation, could you tell me which template your are using or share your project codes?

@adashen adashen added needs more info Need user to provide more info and removed needs attention This issue needs the attention of a contributor. labels Aug 7, 2024
@MoonAlzoubi26z
Copy link
Author

I'm using Basic Tab, i haven't added any code just followed the steps from the plug-in start page.
image

image

image

This is my first app with the teams toolkit and i wanted to deploy a hello world app or any other app just to see if it works.
Let me know please if you need more info or if you have any suggestions

@microsoft-github-policy-service microsoft-github-policy-service bot added needs attention This issue needs the attention of a contributor. and removed needs more info Need user to provide more info labels Aug 7, 2024
@adashen adashen added the TA:Compute Team Area: Compute label Aug 8, 2024
@Siglud
Copy link
Member

Siglud commented Aug 8, 2024

I restarted the VS Code and i ran the debug again, the error happens at this step: (2/3) Action cli/runNpmCommand(install dependencies): running npm command. npm ERR! errno ETIMEDOUT

Teams

it looks like your npm install command running failed.
Please try to run npm install command in your project root folder and paste the console output of this command. Thanks

@kimizhu kimizhu removed the needs attention This issue needs the attention of a contributor. label Aug 8, 2024
@MoonAlzoubi26z
Copy link
Author

It turned out the company's VPN is causing this issue, i was able to debug and run without any issues after a disconnected the vpn.

Thank you all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating TA:Compute Team Area: Compute TA:E2E Team Area: E2E
Projects
None yet
Development

No branches or pull requests

5 participants