Skip to content

Exception calling DownloadFile: "The underlying connection was closed: An unexpected error occurred on a send." #108

@codeforgery

Description

@codeforgery

Description

Running irm get.scoop.sh | iex to try and install Scoop results in a network error.

Installation Logs

irm get.scoop.sh | iex

VERBOSE: GET with 0-byte payload
VERBOSE: received 26066-byte response of content type text/plain; charset=utf-8
VERBOSE: -------- PSBoundParameters --------
VERBOSE: -------- Environment Variables --------
VERBOSE: $env:USERPROFILE: C:\Users\James
VERBOSE: $env:ProgramData: C:\ProgramData
VERBOSE: $env:SCOOP:
VERBOSE: $env:SCOOP_CACHE:
VERBOSE: $env:SCOOP_GLOBAL:
VERBOSE: -------- Selected Variables --------
VERBOSE: SCOOP_DIR: C:\Users\James\scoop
VERBOSE: SCOOP_CACHE_DIR: C:\Users\James\scoop\cache
VERBOSE: SCOOP_GLOBAL_DIR: C:\ProgramData\scoop
VERBOSE: SCOOP_CONFIG_HOME: C:\Users\James\.config
Initializing...
VERBOSE: SecurityProtocol has been updated to support TLS 1.2
Downloading...
VERBOSE: Downloading https://github.com/ScoopInstaller/Scoop/archive/master.zip to
C:\Users\James\scoop\apps\scoop\current\scoop.zip
iex : Exception calling "DownloadFile" with "2" argument(s): "The underlying connection was closed: An unexpected
error occurred on a send."
At line:1 char:20
+ irm get.scoop.sh | iex
+                    ~~~
    + CategoryInfo          : NotSpecified: (:) [Invoke-Expression], MethodInvocationException
    + FullyQualifiedErrorId : WebException,Microsoft.PowerShell.Commands.InvokeExpressionCommand
    ```
PowerShell Context
PSVersion                      5.1.26100.2161
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.26100.2161
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions