KiteTicker connection error 1006

ferdinand.sousa
Hi Team Zerodha,

Today, 29-Aug-2025, I kept getting Connection error: 1006 for the KiteTicker websocket and it did not work at all. I am using the Python v3 client.
What I noticed was that there were 2 IPs listed in the 2 different on_connect responses: abc.def.ghi.jkl & mno.pqr.stu.vwx (redacted for privacy).
In between the 2 connection attempts (I assume the 2nd attempt is an automated retry), I make 2 websocket subscribe calls (mode LTP) to get price ticks for 2 Nifty options, but only 1 option is listed in the 2 connection error messages. I assume the second subscribe fails when the first one errors out. Please help resolve this issue.

Logs:
------------------------------------------------------------------------------------------------------------------
KiteTicker websocket connected at 14-42-05
on_connect Response - {"peer": "tcp4:abc.def.ghi.jkl:443", "headers": {"date": "Fri, 29 Aug 2025 09:12:05 GMT", "connection": "upgrade", "upgrade": "websocket", "sec-websocket-accept": "BUAHoqG9vP+NVakQC2aClpldvZM="}, "version": 18, "protocol": null, "extensions": []}

--subscribe to NFO:NIFTY2590424500CE using its instrument token here--
Connection error: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: 'NFO:NIFTY2590424500CE')
Connection closed: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: 'NFO:NIFTY2590424500CE')

KiteTicker websocket connected at 14-42-07
on_connect Response - {"peer": "tcp4:mno.pqr.stu.vwx:443", "headers": {"date": "Fri, 29 Aug 2025 09:12:07 GMT", "connection": "upgrade", "upgrade": "websocket", "sec-websocket-accept": "5QVJ8jDy+QJ5IlBqE6hrGExb+y0="}, "version": 18, "protocol": null, "extensions": []}
This discussion has been closed.