ConnectException: Failed to connect to api.kite.trade/104.18.90.38:443

prashantmp
prashantmp edited April 1 in Java client
Hi There,

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

Caused by: java.net.ConnectException: Connection refused (Connection refused)

Is anybody facing this problem ?
It will be great if someone can point me to right direction.
Tagged:
  • tonystark
    `java.net.ConnectException` happens when you have internet connectivity issues. Are you able to see ticks inside Kite Web in the same machine?
  • prashantmp
    Thanks a lot for the hint.

    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.
This discussion has been closed.