error while connecting to tickerProvider.connect()

vasisht
Hi,
The program is not connecting to kiteconnect.i have used this program for more than a month and it worked fine.today also,i authenticated and it ran fine till 11:09.then onwards,its throwing error while connecting.please advise what is wrong.

com.neovisionaries.ws.client.WebSocketException: Failed to connect to 'ws.kite.trade:443': Connection timed out: connect
at com.neovisionaries.ws.client.SocketConnector.doConnect(SocketConnector.java:136)
at com.neovisionaries.ws.client.SocketConnector.connect(SocketConnector.java:83)
at com.neovisionaries.ws.client.WebSocket.connect(WebSocket.java:2152)
at com.zerodhatech.ticker.KiteTicker.connect(KiteTicker.java:214)
at javaapplication1.Stock_trading_program.tickerUsage(Stock_trading_program.java:1681)
at javaapplication1.Stock_trading_program.initialkiteconnect(Stock_trading_program.java:846)
at javaapplication1.Stock_trading_program.main(Stock_trading_program.java:345)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.base/java.net.PlainSocketImpl.connect0(Native Method)
at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:101)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
at java.base/java.net.Socket.connect(Socket.java:591)
at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:285)
at com.neovisionaries.ws.client.SocketConnector.doConnect(SocketConnector.java:120)
... 6 more

thanks and regards
Vasisht
  • sujith
    We haven't faced any issue at our end. Can you try with some other network?
  • vasisht
    vasisht edited November 18
    @sujith at 12:05,i tried connecting again and it connected.from then on,its running fine.before that when it threw error,my internet network was fine and i visited several websites.im not able to understand what caused this error.
Sign In or Register to comment.