Kiteconnect Proxy ERROR

yc_mhk
Why kiteconnect() only allows proxy as parameter which is only for http request and not https compatible like Apache?It is a big problem if proxy only accept https requests.

KiteConnect(String apiKey, Proxy userProxy, boolean enableDebugLog)

The following code -
Authenticator.setDefault(
new Authenticator() {
@Override
public PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication("USERNAME", "PASSWORD".toCharArray());
}
}
);
Proxy userProxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("httpsonlyproxy", 443));
KiteConnect kiteSdk = new KiteConnect(Main.apikey,userProxy,true);

Always giver error - Failed to authenticate proxy.
  • Nivas
    Could you please share the complete stack trace/error details via private message? Additionally, are you able to make requests to any other API through the proxy?
Sign In or Register to comment.