-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Getting "An error occurred while connecting to the catalog" on Find-WinGetPackage #4022
Comments
I've tested with v1.6.3482 as well, but result is the same. |
I'll dig in and see if I can reproduce this bug. Do you know if the PowerShell installation was via the .msix installer or the .msi installer? I recently encountered an issue where the .msix PowerShell can't correctly communicate to WinGet via the COM APIs. I'd like to see if that's what is happening in this case or if this is a different bug. |
I'm in need to install it programatically for which I am trying to create a PS script to do the job. I'm installing winget-cli using DISM with the following command:
where
|
What output do you get for: |
Running it in PowerShell 7 I am getting an error message:
Might be related to this issue? As I am setting up the machine programmatically from scratch I have to install WinGet using Appx through PS 5 ... then use WinGet to install PS 7 and finally the WinGet PowerShell Client in PS 7 (this is the only approach I have found). But apparently there is some disconnect the due to the mentioned issue with Appx. Edit: Actually the issue is the same even if I install PowerShell 7 first and the install Winget and then finally Microsoft.WinGet.Client from PS7. |
I am getting the same error when I run
I hope this gets fixed soon. Cheers. |
As a workaround, you can explicitly specify the source: Find-WinGetPackage -Name Adobe -Source winget The result will be like this:
|
I'm still getting the same error even when specifying the source, so that must be related to a different issue.
|
Can confirm this works for me. It will do until a fix released. Thank you. |
I am able to repro this issue as well, but only on 1809 versions of Windows. |
I'm hoping this has been resolved in the latest version of the Microsoft.WinGet.Client module. Can anyone confirm either way? |
@denelon Import-Module -FullyQualifiedName 'D:\d\run\powershell\modules\Microsoft.WinGet.Client' -Scope Global
( Get-Module -Name 'Microsoft.WinGet.Client' ).Version
Find-WinGetPackage -Name Adobe |
@denelon |
Brief description of your issue
When running Find-WinGetPackage or Get-WinGetPackage I get the error
An error occurred while connecting to the catalog.
winget find
is working normally.Steps to reproduce
Install on PowerShell 7.4.0 using
Install-Module -Name Microsoft.WinGet.Client -AcceptLicense
and afterwards run e.g.Find-WinGetPackage Adobe
.Expected behavior
Expected to list found packages.
Actual behavior
I get the error
An error occurred while connecting to the catalog.
Environment
Windows 10, Version 1809 (OS Build 17763.5206)
The text was updated successfully, but these errors were encountered: