Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Latest commit

 

History

History
19 lines (11 loc) · 1.01 KB

File metadata and controls

19 lines (11 loc) · 1.01 KB

java.lang.IllegalArgumentException: Failure in creating proxy URL. Proxy port is required!

fabric8io/kubernetes-client#5605

Analysis

When a proxy is configured either through the environment variables (HTTP_PROXY, HTTPS_PROXY, ALL_PROXY) or via client configuration, the Kubernetes Client library will attempt to create a proxy URL using the proxy host and port.

If the port is not provided, the library will throw an IllegalArgumentException with the message Failure in creating proxy URL. Proxy port is required!.

The client relies on the URI class to parse the proxy URL, which requires the scheme/protocol to be present in the URL.

Since the user is providing an incomplete URI, the library treats the host as the scheme and the port as the host, which results in the mentioned exception.

Related links