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

Add Manifest to Private Repo using "Add-WingetManifest" command failed. #225

Open
gowdhamankarthikeyan opened this issue Jan 5, 2024 · 1 comment
Assignees
Milestone

Comments

@gowdhamankarthikeyan
Copy link

Brief description of your issue

Add-WingetManifest fails with error at Invoke-RestMethod: .\Add-WinGetManifest.ps1:150 Line | 150 | … Response += Invoke-RestMethod $AzFunctionURL -Headers $apiHeader -Met … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { "ErrorCode": 3, "ErrorMessage": "Data Validation Failed. Publisher in Microsoft.WinGet.RestSource.Utils.Models.Schemas.DefaultLocale must not be null. PackageName in Microsoft.WinGet.RestSource.Utils.Models.Schemas.DefaultLocale must not | be null. License in Microsoft.WinGet.RestSource.Utils.Models.Schemas.DefaultLocale must not be null. ShortDescription in Microsoft.WinGet.RestSource.Utils.Models.Schemas.DefaultLocale must not be null." } Add-WinGetManifest: Unhandled Error False

Steps to reproduce

Trigger below command and it fails.

Add-WinGetManifest -FunctionName -Path "" -SubscriptionName "AZ Subscription Name"

Expected behavior

Succesful addition of manifest to the store.

Actual behavior

Add-WingetManifest fails with error at Invoke-RestMethod: .\Add-WinGetManifest.ps1:150 Line | 150 | … Response += Invoke-RestMethod $AzFunctionURL -Headers $apiHeader -Met … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { "ErrorCode": 3, "ErrorMessage": "Data Validation Failed. Publisher in Microsoft.WinGet.RestSource.Utils.Models.Schemas.DefaultLocale must not be null. PackageName in Microsoft.WinGet.RestSource.Utils.Models.Schemas.DefaultLocale must not | be null. License in Microsoft.WinGet.RestSource.Utils.Models.Schemas.DefaultLocale must not be null. ShortDescription in Microsoft.WinGet.RestSource.Utils.Models.Schemas.DefaultLocale must not be null." } Add-WinGetManifest: Unhandled Error False

Environment

Windows Package Manager (Preview) v1.7.3481-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.23612.1000
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.3481.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
@RDMacLachlan RDMacLachlan self-assigned this Jan 5, 2024
@RDMacLachlan
Copy link
Member

Thank you for identifying this error. I will work on having it updated and released as soon as I am able to.

@denelon denelon added this to the 1.9-REST milestone Oct 4, 2024
@denelon denelon added this to WinGet Oct 22, 2024
@denelon denelon moved this to To Do in WinGet Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To Do
Development

No branches or pull requests

3 participants