winget-cli: 0x8a150044 : The rest source endpoint is not found.

Brief description of your issue

XP8BWXV3XV04BN not able to install QQ 音乐 with winget-cli

Steps to reproduce

winget search qq

winget install XP8BWXV3XV04BN

Expected behavior

the app listed in msstore, it should be able to install with winget-cli

I tried install manually with GUI method, it works

Actual behavior

image

Environment

winget --info
Windows Package Manager v1.3.2691
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.963
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2691.0

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 1
  • Comments: 21 (1 by maintainers)

Most upvoted comments

I have the same problem because the Amazon Alexa package is not available in my Microsoft Store region. Workaround - add the “–source winget” parameter.

I actually don’t know why winget is querying the msstore, the Store has GUI apps.

Zrzut ekranu 2023-09-14 203239 Zrzut ekranu 2023-09-14 203245

UPDATE I found the culprit. Turns out https://github.com/builtbybel/BloatyNosy provoked the error. See these winget log entries:

[REPO] Finding available package from installed package using system reference search: Query:[none] Include:ProductCode='{1b9d7180-94ca-4b14-b20f-5adb5b87bd65}'[Exact] Include:UpgradeCode='{122135fb-9551-4b8f-af65-85eb2f192f9c}'[Exact] Include:NormalizedNameAndPublisher='bloatynosy'+'builtbybel'[Exact]
[REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/packageManifests/XPDCJG88N6FD16?Market=LU
[REPO] Response status: 404
[FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Rest\Schema\HttpClientHelper.cpp(137)\WindowsPackageManager.dll!00007FFCE5A77EB3: (caller: 00007FFCE5A77818) Exception(1) tid(1ee0) 8A150044 
[FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\CompositeSource.cpp(993)\WindowsPackageManager.dll!00007FFCE5B70892: (caller: 00007FFCE5A4F883) LogHr(1) tid(1ee0) 8A150044     Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Rest\Schema\HttpClientHelper.cpp(137)\WindowsPackageManager.dll!00007FFCE5A77EB3: (caller: 00007FFCE5A77818) Exception(1) tid(1ee0) 8A150044 ] 

[REPO] Failed to search source for correlation: msstore
[REPO] Did not find Id [XPDCJG88N6FD16] in tracked source: msstore

Uninstalling this app resolved the error. Going to post an issue at the concerned app…

Just started to get this error today, running winget upgrade --all gets me this:

Failed when searching source: msstore
An unexpected error occurred while executing the command:
0x8a150044 : The rest source endpoint is not found.

I tried resetting the sources with winget source reset --force. After that running winget upgrade gets me this:

The `msstore` source requires that you view the following agreements before using.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US").

Do you agree to all the source agreements terms?
[Y] Yes  [N] No: Y
Failed when searching source; results will not be included: msstore

I tested this on v1.4.11071 and v1.5.1081-preview, same result.

This isn’t intuitive for someone less technical. Looking at logs, it led me to see the culprit was Open Live Writer (9NBLGGH5279M) no longer available through the Store. I uninstalled it and Winget started working again.

This is also reproducible on my side. It does not look like specific packages cause this error, as each report mentions a different application ID. In my case, the ID that breaks is the one for mpv.net. This indeed looks like a bug in the winget client itself:

2023-12-18 09:53:14.753 [REPO] Finding available package from installed package using system reference search: Query:[none] Include:PackageFamilyName='5664frankskare.mpv.net_0ta2kwwjvkgap'[Exact]
2023-12-18 09:53:14.756 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/packageManifests/9N64SQZTB3LM?Market=BR
2023-12-18 09:53:15.010 [REPO] Response status: 404
2023-12-18 09:53:15.011 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerRepositoryCore\Rest\Schema\HttpClientHelper.cpp(148)\WindowsPackageManager.dll!00007FFDF07C1240: (caller: 00007FFDF07C0C08) Exception(1) tid(6774) 8A150044 
2023-12-18 09:53:15.011 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerRepositoryCore\CompositeSource.cpp(1108)\WindowsPackageManager.dll!00007FFDF08C6416: (caller: 00007FFDF079A113) LogHr(1) tid(6774) 8A150044     Msg:[C:\__w\1\s\external\pkg\src\AppInstallerRepositoryCore\Rest\Schema\HttpClientHelper.cpp(148)\WindowsPackageManager.dll!00007FFDF07C1240: (caller: 00007FFDF07C0C08) Exception(1) tid(6774) 8A150044 ] 

2023-12-18 09:53:15.011 [REPO] Failed to search source for correlation: msstore
2023-12-18 09:53:15.011 [REPO] Did not find Id [9N64SQZTB3LM] in tracked source: msstore

Another exception appears at the end of the log:

2023-12-18 09:53:17.000 [CLI ] Caught wil::ResultException: C:\__w\1\s\external\pkg\src\AppInstallerRepositoryCore\Rest\Schema\HttpClientHelper.cpp(148)\WindowsPackageManager.dll!00007FFDF07C1240: (caller: 00007FFDF07C0C08) Exception(1) tid(6774) 8A150044 

I will open a Feedback Hub report as well, so the engineers can have more information.

[EDIT] Here is the issue on the Feedback Hub: https://aka.ms/AAo99gg

I have the same issue. I switch the region of the Microsoft store to the us, but I already installed an app which only in the cn region. Because of this, when running the command winget upgrade --all, it always reports the error:

Failed when searching source: msstore
An unexpected error occurred while executing the command:
0x8a150044: The rest source endpoint is not found.

After I uninstall that app, the issue is fixed.

Can you elaborate on that? I have the same issue and I want to know how was it solved for you?

It happened something similar to me and I found the problem by running winget upgrade --open-logs. Then I opened the log files one by one and searched for an error. I found a 404 error meaning that an app I had installed is not published anymore in Microsoft Store. After winget upgrade --all worked correctly.

Failed when searching source: msstore An unexpected error occurred while executing the command: 0x8a150044 : The rest source endpoint is not found.