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

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

Closed
stmoor opened this issue Aug 18, 2021 · 2 comments

Comments

@stmoor
Copy link

stmoor commented Aug 18, 2021

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
Copy link

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
Copy link
Member

This issue is resolved now

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

3 participants