PowerShell / PowerShellGallery

220 stars 59 forks source link

Register-PackageSource : Source Location 'https://www.powershellgallery.com/api/v2' is not valid. #185

Closed stmoor closed 2 years ago

stmoor commented 2 years ago

I am trying to install a module and I get the following error:

image

After some googling, I found some solutions such as enforcing TLS12 by calling the following command

[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12

This did not work for me. Another solution was to register the package source with the following command:

Register-PackageSource -Name PSNuGet -Location "https://www.powershellgallery.com/api/v2" -ProviderName NuGet

But I get the following error too , which I think is related to the previous: image

Please advise.

okazakov commented 2 years ago

Yep, https://www.powershellgallery.com/api/v2 is completely down. Requests are timing out. Is it expired TLS cert again? C'mon Microsoft! We can no longer rely on your services anymore. The frequency with which PSGallery is unavailable is embarrassing. Get your act together already.

alerickson commented 2 years ago

This issue is resolved now