I am continuously getting connection failure issue while trying streaming LIVE data. * API Key is correct and verified * Secrete is configured correctly * Token is not expired * kiteconnect : 3.0.0
Here is part of stack trace,
01-Apr-2019 07:48:20.049 INFO [http-nio-9000-exec-1] okhttp3.internal.platform.Platform.log --> POST https://api.kite.trade/session/token 01-Apr-2019 07:48:20.050 INFO [http-nio-9000-exec-1] okhttp3.internal.platform.Platform.log Content-Type: application/x-www-form-urlencoded 01-Apr-2019 07:48:20.051 INFO [http-nio-9000-exec-1] okhttp3.internal.platform.Platform.log Content-Length: 145 01-Apr-2019 07:48:20.051 INFO [http-nio-9000-exec-1] okhttp3.internal.platform.Platform.log User-Agent: javakiteconnect/3.0.0 01-Apr-2019 07:48:20.051 INFO [http-nio-9000-exec-1] okhttp3.internal.platform.Platform.log X-Kite-Version: 3 01-Apr-2019 07:48:20.052 INFO [http-nio-9000-exec-1] okhttp3.internal.platform.Platform.log Authorization: token xxxxxxxxxxxx:null 01-Apr-2019 07:48:20.052 INFO [http-nio-9000-exec-1] okhttp3.internal.platform.Platform.log 01-Apr-2019 07:48:20.052 INFO [http-nio-9000-exec-1] okhttp3.internal.platform.Platform.log api_key=xxxxxxxxxxxx&request_token=xxxxxxxxxxxx&checksum=xxxxxxxxxxxx 01-Apr-2019 07:48:20.052 INFO [http-nio-9000-exec-1] okhttp3.internal.platform.Platform.log --> END POST (145-byte body) 01-Apr-2019 07:48:22.075 INFO [http-nio-9000-exec-1] okhttp3.internal.platform.Platform.log <-- HTTP FAILED: java.net.ConnectException: Failed to connect to api.kite.trade/104.18.90.38:443 java.net.ConnectException: Failed to connect to api.kite.trade/104.18.90.38:443
Internet is working perfectly fine.
Root cause was port 443, which was blocked in the firewall.
It seems to be working fine after opening it in firewall.