PowerShell Invoke-WebRequest Fails After a Windows Update

0
2
Asked By MellowCactus42 On

I recently updated Windows and then tried installing Spicetify using the official PowerShell command: iwr -useb https://raw.githubusercontent.com/spicetify/cli/main/install.ps1 | iex. Instead, PowerShell returned "The underlying connection was closed: The connection was closed unexpectedly" from Invoke-WebRequest. I'm not very familiar with PowerShell and was only using it because the installation instructions told me to paste the command there. Does anyone know what changed or how to fix this?

2 Answers

Answered By QuietHarbor19 On

Windows PowerShell 5.1 may now require the -UseBasicParsing parameter for Invoke-WebRequest in some situations. Try adding it to the command, for example: iwr -UseBasicParsing -useb https://raw.githubusercontent.com/spicetify/cli/main/install.ps1 | iex. The installation instructions may need to be updated if they don’t include that option.

Answered By SilverMaple7 On

The exact command matters here, but the command you used is the installation command provided by the project, so using PowerShell isn’t inherently unusual. The error points to PowerShell failing while connecting to the script’s web address rather than necessarily indicating a problem with the app itself.

MellowCactus42 -

That’s the command I used from the installation guide. I’m not trying to learn PowerShell—I’m just following the setup steps to install the app.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.