WinGet download doesn't work through a proxy #5030
Labels
Command-Download
Issue related to WinGet Download
Issue-Feature
This is a feature request for the Windows Package Manager client.
Brief description of your issue
WinGet download doesn't work through a proxy.
This is because SfsClient wasn't supporting going through proxies
Client: proxy support #84
Which is being worked by the SFS team in
Adding support for a custom proxy input #218
Need then to implement this SFS proxy support from WinGet.
Steps to reproduce
Then trigger downloading an offline package, for instance using:
winget download 9WZDNCRFHVN5 --skip-dependencies --accept-source-agreements --accept-package-agreements
Expected behavior
The expected behavior would be having the download of both offline packages and license to work through a proxy, once correctly set up from WinGet proxy setting.
Actual behavior
When a direct connection isn't possible to storeapps.api.cdp.microsoft.com:443, WinGet will fail to download the package with "Failed to retrieve Microsoft Store package download information"
And the verbose logs showing SFSClient fails with "FAILED [ConnectionUnexpectedError] Failed to connect to storeapps.api.cdp.microsoft.com port 443 after 28 ms: Could not connect to server"
Environment
The text was updated successfully, but these errors were encountered: