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

winget fails with "0x8a150039 : Invalid data returned by rest source" #1664

Closed
jensmueller-com opened this issue Nov 2, 2021 · 6 comments
Closed
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. msstore Issue related to "msstore" REST source
Milestone

Comments

@jensmueller-com
Copy link

Brief description of your issue

Windows Package Manager fails with 0x8a150039 : Invalid data returned by rest source when trying to install the "dm-Fotowelt" package from the Microsoft Store. The log file reveals the root cause:

[REPO] Received manifest contains validation error: The locale value is not a well formed bcp47 language tag.

  • Excerpt from log file (%LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir):
[REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/packageManifests/9N9MRQ1P2LNG?Market=DE
[REPO] Response status: 200
[REPO] Received manifest contains validation error: The locale value is not a well formed bcp47 language tag.
[FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Rest\Schema\1_0\RestInterface_1_0.cpp(249)\AppInstallerCLI.exe!00007FF7B697FB77: (caller: 00007FF7B697EDA6) Exception(1) tid(500) 8A150039 
[FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\CompositeSource.cpp(671)\AppInstallerCLI.exe!00007FF7B6A39319: (caller: 00007FF7B694B2F3) LogHr(1) tid(500) 8A150039     Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Rest\Schema\1_0\RestInterface_1_0.cpp(249)\AppInstallerCLI.exe!00007FF7B697FB77: (caller: 00007FF7B697EDA6) Exception(1) tid(500) 8A150039 ] 
[REPO] Failed to search source: msstore
[CLI ] Caught wil::ResultException: D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Rest\Schema\1_0\RestInterface_1_0.cpp(249)\AppInstallerCLI.exe!00007FF7B697FB77: (caller: 00007FF7B697EDA6) Exception(1) tid(500) 8A150039 
[CLI ] Terminating context: 0x8a150039 at D:\a\_work\1\s\external\pkg\src\AppInstallerCLICore\Workflows\WorkflowBase.cpp:23d

Steps to reproduce

PS> winget search --exact --name "dm-Fotowelt"
Name        Id           Version Source
-----------------------------------------
dm-Fotowelt 9N9MRQ1P2LNG Unknown msstore
PS> winget install --exact --id 9N9MRQ1P2LNG
Failed when searching source: msstore
An unexpected error occurred while executing the command:
0x8a150039 : Invalid data returned by rest source

No packages were found among the working sources.

Expected behavior

The installation succeeds.

Actual behavior

The installation fails.

Environment

Windows Package Manager v1.1.12663
Windows: Windows.Desktop v10.0.22000.258
Package: Microsoft.DesktopAppInstaller v1.16.12663.0
@ghost ghost added the Needs-Triage Issue need to be triaged label Nov 2, 2021
@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. msstore Issue related to "msstore" REST source and removed Needs-Triage Issue need to be triaged labels Nov 2, 2021
@JohnMcPMS
Copy link
Member

The problem appears to be this:

"PackageLocale":"neutral"

We did not allow for neutral due to winget-pkgs, but maybe we should allow it in the schema. If we did it would have been x-neutral as BCP47 does not have a built in neutral.

Working with the right people internally to get the data issue resolved, thanks for the report.

@denelon denelon added this to WinGet Nov 9, 2021
@denelon denelon added this to the v1.2-Client milestone Nov 9, 2021
@itodouble
Copy link

图片
图片

@jspraul
Copy link

jspraul commented Feb 8, 2022

Can't believe this has been an issue this long. Remove the 'msstore' source (as Administrator) if you need things to work.

Not sure how to add it back though! Forgot to run winget source list msstore before removing it to get the full details.

Microsoft Windows [Version 10.0.19044.1503]
(c) Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>winget show jq
An unexpected error occurred while executing the command:
0x8a150039 : Invalid data returned by rest source

C:\WINDOWS\system32>winget source list
Name    Argument
-----------------------------------------------------
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0
winget  https://winget.azureedge.net/cache

C:\WINDOWS\system32>winget source remove msstore
Removing source: msstore...
Done

C:\WINDOWS\system32>winget show jq
No package found matching input criteria.

Update: a buddy ran winget source list msstore on another machine:

Field      Value
--------------------------------------------------------
Name       msstore
Type       Microsoft.Rest
Argument   https://storeedgefd.dsx.mp.microsoft.com/v9.0
Data
Identifier StoreEdgeFD
Updated    never

@andremoraisp
Copy link

@jspraul

Not sure how to add it back though! Forgot to run winget source list msstore before removing it to get the full details.

There is a sub-command for restoring the default sources, which includes msstore: winget source reset. It must be run with administrator privileges.
This command is documented here: https://docs.microsoft.com/en-us/windows/package-manager/winget/source

@denelon
Copy link
Contributor

denelon commented Mar 24, 2022

@jensmueller-com,

I believe this issue has been resolved.

@denelon denelon closed this as completed Mar 24, 2022
@denelon denelon moved this to Done in WinGet Mar 24, 2022
@Vibes1337
Copy link

I'm having this exact issue with KDE connect in UniGetUl this is what it says

Starting package install operation for package id=9N93MRMSXBF0 with Manager name=Winget
Given installation options are <InstallationOptions: SkipHashCheck=False;InteractiveInstallation=False;RunAsAdministrator=False;Version=;Architecture=;InstallationScope=;InstallationScope=;CustomParameters=;RemoveDataOnUninstall=False>
Process Executable : C:\Users\Vibes1337\AppData\Local\Microsoft\WindowsApps\winget.exe
Process Call Arguments : install --id "9N93MRMSXBF0" --exact --source msstore --accept-source-agreements --silent --disable-interactivity --accept-package-agreements
Working Directory : C:\Users\Vibes1337
| -
| Failed when searching source: msstore
| An unexpected error occurred while executing the command:
| 0x8a150039 : Invalid data returned by rest source
| No packages were found among the working sources.
Process Exit Code : -1978335175
Process End Time : 8/1/2024 3:02:23 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. msstore Issue related to "msstore" REST source
Projects
Archived in project
Development

No branches or pull requests

7 participants