KiteTicker disconnection

humble_trader
I am seeing KiteTicker disconnection sometimes. I don't see this error everyday but whenever it happens, I don't know the best way to handle this. Can you please help? (Kiteticker works for few hours and I see this disconnection)

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 502 Bad Gateway
at com.neovisionaries.ws.client.HandshakeReader.validateStatusLine(HandshakeReader.java:232) ~[trading-ideas-1.0-SNAPSHOT.jar:?]
at com.neovisionaries.ws.client.HandshakeReader.readHandshake(HandshakeReader.java:54) ~[trading-ideas-1.0-SNAPSHOT.jar:?]
at com.neovisionaries.ws.client.WebSocket.readHandshake(WebSocket.java:3244) ~[trading-ideas-1.0-SNAPSHOT.jar:?]
at com.neovisionaries.ws.client.WebSocket.shakeHands(WebSocket.java:3123) ~[trading-ideas-1.0-SNAPSHOT.jar:?]
at com.neovisionaries.ws.client.WebSocket.connect(WebSocket.java:2155) ~[trading-ideas-1.0-SNAPSHOT.jar:?]
at com.zerodhatech.ticker.KiteTicker.connect(KiteTicker.java:214) [trading-ideas-1.0-SNAPSHOT.jar:?]
at com.zerodhatech.ticker.KiteTicker.reconnect(KiteTicker.java:646) [trading-ideas-1.0-SNAPSHOT.jar:?]
at com.zerodhatech.ticker.KiteTicker.doReconnect(KiteTicker.java:128) [trading-ideas-1.0-SNAPSHOT.jar:?]
at com.zerodhatech.ticker.KiteTicker$1.run(KiteTicker.java:105) [trading-ideas-1.0-SNAPSHOT.jar:?]
at java.util.TimerThread.mainLoop(Timer.java:555) [?:1.8.0_171]
at java.util.TimerThread.run(Timer.java:505) [?:1.8.0_171]
This discussion has been closed.