handshake response is not '101 Switching Protocols'. The status line is: HTTP/1.1 403 Forbidden

santak
Trying to connect to KiteTicker . getting the below error. Have updated the access token multiple times. But still getting this issue. API call the access code is working but for websocket getting 403
Can you provide some direction.

com.neovisionaries.ws.client.OpeningHandshakeException: The status code of the opening handshake response is not '101 Switching Protocols'. The status line is: HTTP/1.1 403 Forbidden
at com.neovisionaries.ws.client.HandshakeReader.validateStatusLine(HandshakeReader.java:232)
at com.neovisionaries.ws.client.HandshakeReader.readHandshake(HandshakeReader.java:54)
at com.neovisionaries.ws.client.WebSocket.readHandshake(WebSocket.java:3244)
at com.neovisionaries.ws.client.WebSocket.shakeHands(WebSocket.java:3123)
at com.neovisionaries.ws.client.WebSocket.connect(WebSocket.java:2155)
at com.zerodhatech.ticker.KiteTicker.connect(KiteTicker.java:214)
at com.trade.TradeDataStream.getTradeData(TradeDataStream.java:45)
at com.trade.TradeDataStream.main(TradeDataStream.java:14)
  • sujith
    It seems like your session is expired and you need to re-login.
Sign In or Register to comment.