-
Notifications
You must be signed in to change notification settings - Fork 900
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
sslProtocol type has invalid value #3470
Comments
For anybody else reading it, the translation of the error is:
|
@JanHergenhan What is the output from |
@pauby
|
Then I'm unsure what the problem is with that value.
I don't think is related to your issue, as this is a warning, not a terminating error: Have you looked at https://ch0.co/t/svcidx as recommended in the output? |
Sorry, @pauby , I didn't notice the update in your answer. |
At this stage, I think what we have left is trying the normal troubleshooting methods:
I'm unsure if the SSL issue is related to you not being able to connect, but we have not had any issue raised about this before. I am as certain as I can be that this is an environmental issue and not a Chocolatey CLI one. |
@pauby |
@JanHergenhan 99.9% (not scientific) of these issues are because of something interfering in the connection. So endpoint protection being involved is not a surprise. |
Checklist
What You Are Seeing?
choco upgrade resets the security protocol although the command
[System.Net.ServicePointManager]::SecurityProtocol
shows that it's alreadySystemDefault
. Then the connection to get the service index fails:Der angegebene Wert ist in der Enumeration SslProtocolType ungültig.
(specified value in Enum SslProtocolType is invalid, sorry for the German console, cannot change it...).Executing the command with the
--debug
option revealsUnable to connect to source 'https://chocolatey.org/api/v2/': System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. bei chocolatey.infrastructure.app.nuget.NugetList.<>c__DisplayClass20_1.<FindPackage>b__2() bei chocolatey.infrastructure.tolerance.FaultTolerance.TryCatchWithLoggingException[T](Func
1 function, String errorMessage, Boolean throwError, Boolean logWarningInsteadOfError, Boolean logDebugInsteadOfError, Boolean isSilent)`What is Expected?
I'd expect that the connection is established. Had no issues in several years using chocolatey...
How Did You Get This To Happen?
System Details
PSVersion 5.1.19041.4412
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.4412
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Installed Packages
Output Log
Additional Context
No response
The text was updated successfully, but these errors were encountered: