-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Exception is buried which makes usage very hard #3818
Comments
This was not an intentional swallowing of that exception, it should be throwing instead. After #3654 we'll add the appropriate throws. |
shawkins
added a commit
to shawkins/kubernetes-client
that referenced
this issue
Feb 10, 2022
11 tasks
manusa
pushed a commit
to shawkins/kubernetes-client
that referenced
this issue
Feb 16, 2022
manusa
pushed a commit
that referenced
this issue
Feb 16, 2022
manusa
pushed a commit
to manusa/kubernetes-client
that referenced
this issue
Apr 5, 2022
(cherry picked from commit f792c92) Signed-off-by: Marc Nuri <marc@marcnuri.com>
manusa
pushed a commit
that referenced
this issue
Apr 5, 2022
(cherry picked from commit f792c92) Signed-off-by: Marc Nuri <marc@marcnuri.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Whenever using auto configuration with "EC" algo the underlying http client fails with exception:
JcaPEMKeyConverter is provided by BouncyCastle, an optional dependency. To use support for EC Keys you must explicitly add this dependency to classpath.
However, this exception is buried in HttpClientUtils.java:214:
} catch (Exception e) { KubernetesClientException.launderThrowable(e); }
This causes the users of this library to look for the source of the problem in other places.
Fabric8 Kubernetes Client version
other (please specify in additional context)
Steps to reproduce
Expected behavior
The main cause of the failure shown in logs should be JcaPEMKeyConverter is provided by BouncyCastle, an optional dependency. To use support for EC Keys you must explicitly add this dependency to classpath. and not Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.
This can be done by not burying the initial exception.
Runtime
other (please specify in additional context)
Kubernetes API Server version
1.20.12
Environment
Linux
Fabric8 Kubernetes Client Logs
No response
Additional context
fabric8 kubernetes-client version: 1.15.2
kubernetes cluster: k3s
The text was updated successfully, but these errors were encountered: