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

Invoke-WebRequest : Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host #15

Open
shawnlaffan opened this issue Feb 25, 2023 · 3 comments

Comments

@shawnlaffan
Copy link

Running the install step under the spbuild docker container results in errors when downloading.

I get the same error using powershell on the same machine outside the docker container (Win10), but not when using a different machine (Win11) on the same network. All have different versions of powershell, with the working installation being most recent. Tested both 5.32 and 5.30 distros.

psperl -Install perl64-5.30.0.1
Invoke-WebRequest : Unable to read data from the transport connection: An existing connection was forcibly closed by
the remote host.
At line:1 char:1
+ Invoke-WebRequest -Uri https://strawberryperl.com/download/5.32.1.1/s ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Invoke-WebRequest], IOException
    + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Docker powershell (fails):

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.17763.2931
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17763.2931
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

powershell on same machine but not under docker (fails):

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.19041.2364
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.2364
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Machine on which it works:

Name                           Value
----                           -----
PSVersion                      5.1.22621.963
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.963
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
@shawnlaffan
Copy link
Author

It works under Powershell v7 on the same machine with the fails.

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.3.3
PSEdition                      Core
GitCommitId                    7.3.3
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

@genio
Copy link
Member

genio commented Mar 30, 2023

I've never seen that happen. I'll research a bit when I get a chance.

@genio
Copy link
Member

genio commented Mar 30, 2023

Please disregard. I'm testing botifico

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants