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

InternetOpenUrl() failed. 0x80072efd : unknown error #566

Closed
Lexicality opened this issue Sep 12, 2020 · 22 comments · Fixed by #3389
Closed

InternetOpenUrl() failed. 0x80072efd : unknown error #566

Lexicality opened this issue Sep 12, 2020 · 22 comments · Fixed by #3389
Assignees
Labels
In-PR Issue related to a PR Issue-Docs It's a documentation issue that really should be on MicrosoftDocs
Milestone

Comments

@Lexicality
Copy link

Brief description of your issue

This is very similar to #326, however I have TLS 1.2 enabled and I can access the cache fine outside winget.

Steps to reproduce

C:\WINDOWS\system32>winget --version
v0.1.42241 Preview
C:\WINDOWS\system32>winget search github
Failed to open the source; try removing and re-adding it
An unexpected error occurred while executing the command:
InternetOpenUrl() failed.
0x80072efd : unknown error

C:\WINDOWS\system32>winget source list
Name   Argument
-----------------------------------------
winget https://winget.azureedge.net/cache

C:\WINDOWS\system32>winget source reset --force
Resetting all sources...Done

C:\WINDOWS\system32>winget source update
Updating all sources...
Updating source: winget...
An unexpected error occurred while executing the command:
InternetOpenUrl() failed.
0x80072efd : unknown error

C:\WINDOWS\system32>winget source add --name test https://winget.azureedge.net/cache
Adding source:
  test -> https://winget.azureedge.net/cache
An unexpected error occurred while executing the command:
A connection with the server could not be established

C:\WINDOWS\system32>curl https://winget.azureedge.net/cache
´╗┐<?xml version="1.0" encoding="utf-8"?><Error><Code>ResourceNotFound</Code><Message>The specified resource does not exist.
RequestId:a5bc7e36-e01e-009c-76ff-88e0ac000000
Time:2020-09-12T12:24:09.5326840Z</Message></Error>

Expected behavior

winget should function

Actual behavior

winget does not function

Environment

C:\WINDOWS\system32>winget --info
Windows Package Manager v0.1.42241 Preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.18362.1016
Package: Microsoft.DesktopAppInstaller v1.10.42241.0
@ghost ghost added the Needs-Triage Issue need to be triaged label Sep 12, 2020
@Lexicality
Copy link
Author

I eventually figured out it was being blocked by my firewall under appinstallercli.exe.
I expected the winget application to have the word winget in the executable name or installation directory, but neither of them do which is why it took so long for me to find out where it was being blocked.

I would like to suggest renaming the executable to winget-installer-cli.exe or something, and maybe having better error messages for when it's blocked by a firewall?

@denelon denelon added Issue-Feature This is a feature request for the Windows Package Manager client. and removed Needs-Triage Issue need to be triaged labels Sep 14, 2020
@denelon
Copy link
Contributor

denelon commented Sep 14, 2020

@Lexicality we don't get an explicit indication that the firewall is blocking the connection. I'm looking at what we can do in the error text, and getting an update at docs.microsoft.com.

@denelon denelon added the Issue-Docs It's a documentation issue that really should be on MicrosoftDocs label Sep 14, 2020
@KevinLaMS KevinLaMS self-assigned this Sep 16, 2020
@chausner
Copy link
Contributor

The error codes of InternetOpenUrl should get mapped to a descriptive string and displayed. E.g. 0x80072efd maps to ERROR_INTERNET_CANNOT_CONNECT. I had a similar error the other day where the TLS certificate of a download was invalid. I found out by looking up the error code. "unknown error" suggests it's a generic error code but it's actually not.

@bezuglov3000
Copy link

I had error 0x80072f7d in winget.
Strange fix for this is enabling tls 1.2 in internet explorer settings.

@denelon denelon added this to the Package Manager v1.0 milestone May 3, 2021
@denelon denelon modified the milestones: v1.1-Client, v1.2 Client Oct 1, 2021
@denelon denelon removed the Issue-Feature This is a feature request for the Windows Package Manager client. label Oct 5, 2021
@mrashco
Copy link

mrashco commented Oct 25, 2021

I'm getting this error code when using winget upgrade --all - it get's stuck upgrading OpenVPN Connect, not sure why.

@lightnear
Copy link

I had error 0x80072f7d in winget. Strange fix for this is enabling tls 1.2 in internet explorer settings.

this worked for me.

@dnet890
Copy link

dnet890 commented Jun 22, 2022

I have this problem with VPN installed and that means winget is useless if the vpn is activated. Is that so?

@mmuffins
Copy link

I just got the same issues for seemingly random packages.
image

@SuperJC710e
Copy link

SuperJC710e commented Oct 26, 2022

I just got the same issues for seemingly random packages.

I have the same issue, but I think it's because my work laptop is domain joined and using Cisco Umbrella. Many of the URLs used by winget are blocked unless I'm logged into the VPN. Perhaps you have the same? 🤷‍♂️

@mmuffins
Copy link

I have the same issue, but I think it's because my work laptop is domain joined and using Cisco Umbrella. Many of the URLs used by winget are blocked unless I'm logged into the VPN. Perhaps you have the same? 🤷‍♂️

I ran it from my home computer. No vpns, proxies, or other network components you wouldn't find a regular home network environment. There haven't been any changes to the computer or network (that I know of), and I'm able to directly download the executables:
image

@denelon
Copy link
Contributor

denelon commented Oct 26, 2022

You could try switching to the "wininet" downloader rather than "DO" (Delivery Optimization) which is the default.

It's configurable in winget settings.

@SuperJC710e
Copy link

You could try switching to the "wininet" downloader rather than "DO" (Delivery Optimization) which is the default.

It's configurable in winget settings.

Thanks for the suggestion. It doesn't work in my case, but I think it's because the Cisco Umbrella basically does some sort of MITM SSL for sites it's blocking for non-VPN authenticated users. (I can see it if I use the URL with the error in a browser.) It's annoying, and VPN doesn't really help me in my case, I still need to to everything through a Citrix Virtual Desktop anyway, so I mostly don't log it in...

@mmuffins
Copy link

Same here, I'm afraid. Neither explicitly setting wininet changes anything. But for what it's worth, it seems to be an intermittent problem for me. Both packages I posted yesterday work fine.

@mmuffins
Copy link

mmuffins commented Nov 4, 2022

It really seems like an intermittent thing, but not the way I would like it to be - downloads seem to work sporadically, but are broken most of the time for me. I wanted to see if I can find out more about it and ran winget install Python.Python.3.10 --verbose-logs option, and saw the following entries at the very bottom of the log file

2022-11-04 13:41:46.546 [REPO] Downloading manifest
2022-11-04 13:41:46.546 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/p/Python/Python/3/10/3.10.8/e5c5-Python.Python.3.10.yaml
2022-11-04 13:41:47.140 [CORE] Download request failed. Returned status: 404
2022-11-04 13:41:47.141 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\Downloader.cpp(64)\WindowsPackageManager.dll!00007FFBE131FFE0: (caller: 00007FFBE137A869) Exception(3) tid(1304) 80190194 Not found (404).

    Msg:[Download request status is not success.] 

winget then retries a couple of times and gives up. If I try to access the url mentioned in the log I'm getting the following

<Error>
<Code>BlobNotFound</Code>
<Message>
The specified blob does not exist. RequestId:ed4070e8-301e-0051-0e4b-f0b792000000 Time:2022-11-04T12:49:41.4264430Z
</Message>
</Error>

@mmuffins
Copy link

mmuffins commented Nov 4, 2022

My bad, it seems like that problem may not be the exact same as before. The error I'm getting right now is a different one:

Failed in attempting to update the source: winget
An unexpected error occurred while executing the command:
Download request status is not success.
0x80190194 : unknown error

This seems to be a known issue - #2666, #1348
On top of that there is an ongoing discussion about issues trying to reach cdn.winget.microsoft.com which seems to be widespread - #1656

@chylex
Copy link

chylex commented Nov 12, 2022

I'm getting this error, here's what's in verbose logs:

2022-11-12 20:56:50.540 [CLI ] Found one app. App id: OBSProject.OBSStudio App name: OBS Studio
2022-11-12 20:56:50.542 [REPO] Downloading manifest
2022-11-12 20:56:50.542 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/o/OBSProject/OBSStudio/28.1.2/e8c5-OBSProject.OBSStudio.yaml
2022-11-12 20:56:50.675 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\Downloader.cpp(49)\WindowsPackageManager.dll!00007FFB2B6DF642: (caller: 00007FFB2B73A869) Exception(2) tid(39c) 80072F7D     Msg:[InternetOpenUrl() failed.] 

2022-11-12 20:56:50.675 [REPO] Downloading manifest failed, waiting a bit and retrying: https://cdn.winget.microsoft.com/cache/manifests/o/OBSProject/OBSStudio/28.1.2/e8c5-OBSProject.OBSStudio.yaml
2022-11-12 20:56:51.186 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/o/OBSProject/OBSStudio/28.1.2/e8c5-OBSProject.OBSStudio.yaml
2022-11-12 20:56:51.300 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\Downloader.cpp(49)\WindowsPackageManager.dll!00007FFB2B6DF642: (caller: 00007FFB2B73A869) Exception(3) tid(39c) 80072F7D     Msg:[InternetOpenUrl() failed.] 

2022-11-12 20:56:51.300 [CLI ] Caught wil::ResultException: D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\Downloader.cpp(49)\WindowsPackageManager.dll!00007FFB2B6DF642: (caller: 00007FFB2B73A869) Exception(3) tid(39c) 80072F7D     Msg:[InternetOpenUrl() failed.] 

If I open the URL in Firefox, it downloads the yaml file and it looks like it has valid contents.

@denelon denelon modified the milestones: v1.4-Client, v1.5-Client Jan 5, 2023
@XtremeMaC
Copy link

XtremeMaC commented Feb 12, 2023

Hi, can't recall my last winget use, maybe 2 weeks ago?
Now, I get
5 upgrades available. An unexpected error occurred while executing the command: InternetOpenUrl() failed. 0x80072f05 : unknown error

@VergeDX
Copy link

VergeDX commented Feb 12, 2023

Hi, can't recall my last winget use, maybe 2 weeks ago? Now, I get 5 upgrades available. An unexpected error occurred while executing the command: InternetOpenUrl() failed. 0x80072f05 : unknown error

Related issues: #2956

@threader
Copy link

threader commented Feb 12, 2023

Hi, can't recall my last winget use, maybe 2 weeks ago? Now, I get 5 upgrades available. An unexpected error occurred while executing the command: InternetOpenUrl() failed. 0x80072f05 : unknown error

Related issues: #2956

Try ipconfig /Flushdns
that worked for me having tried everything else suspsect.

@rudolphos
Copy link

rudolphos commented Jan 9, 2024

I have a similar problem. I was able to install wget without a problem, but can't install grep.
Winget version v1.6.3482

C:\WINDOWS\system32>winget install -e --id GnuWin32.Grep
Found GnuWin32: Grep [GnuWin32.Grep] Version 2.5.4
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://sourceforge.net/projects/gnuwin32/files/grep/2.5.4/grep-2.5.4-setup.exe/download
An unexpected error occurred while executing the command:
InternetOpenUrl() failed.
0x80072f19 : unknown error

I have added everything possible related to winget manually to the firewall.

@andyppang
Copy link

我也有类似的问题。我能够顺利安装,但无法安装 . Winget 版本 v1.6.3482wget ``grep

C:\WINDOWS\system32>winget install -e --id GnuWin32.Grep
Found GnuWin32: Grep [GnuWin32.Grep] Version 2.5.4
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://sourceforge.net/projects/gnuwin32/files/grep/2.5.4/grep-2.5.4-setup.exe/download
An unexpected error occurred while executing the command:
InternetOpenUrl() failed.
0x80072f19 : unknown error

我已经手动将与 winget 相关的所有内容添加到防火墙中。

maybe this will work
https://answers.microsoft.com/en-us/windows/forum/all/error-code-0x80072f19/9ba8bafb-94a5-4522-8071-0f47f3a7badf

@threader
Copy link

threader commented Oct 8, 2024

我也有类似的问题。我能够顺利安装,但无法安装 . Winget 版本 v1.6.3482wgetgrep ``

C:\WINDOWS\system32>winget install -e --id GnuWin32.Grep
Found GnuWin32: Grep [GnuWin32.Grep] Version 2.5.4
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://sourceforge.net/projects/gnuwin32/files/grep/2.5.4/grep-2.5.4-setup.exe/download
An unexpected error occurred while executing the command:
InternetOpenUrl() failed.
0x80072f19 : unknown error

我已经手动将与 winget 相关的所有内容添加到防火墙中。

maybe this will work https://answers.microsoft.com/en-us/windows/forum/all/error-code-0x80072f19/9ba8bafb-94a5-4522-8071-0f47f3a7badf

Try ipconfig /flushdns , that fixed it for me about a year ago

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In-PR Issue related to a PR Issue-Docs It's a documentation issue that really should be on MicrosoftDocs
Projects
None yet
Development

Successfully merging a pull request may close this issue.