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

marcnuri-work/fabric8io-kubernetes-client-issues-5605-all-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Failure in creating proxy URL. Proxy port is required! ALL_PROXY

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages