Can someone help me to fix this connection issue. Connection closed: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
You are sending instrument token as Nested list(list of list). As you are already returning instrument list in tokenLookup function. So, you can just pass same list. ws.set_mode(ws.MODE_LTP,tokens)
ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code) ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
I am facing the same issue. Can someone please help with solution
Same issue here not getting ticks after 6pm using official python library. i running it under jupyter notebook on AWS EC2 server.
2018-05-29 11:29:25,037 - kiteconnect.ticker - DEBUG - last ping was 2.5006039142608643 seconds back.
2018-05-29 11:29:25,294 - kiteconnect.ticker - DEBUG - last pong was 2.4975969791412354 seconds back.
2018-05-29 11:29:25,295 - kiteconnect.ticker - DEBUG - pong => b''
2018-05-29 11:29:27,539 - kiteconnect.ticker - DEBUG - ping =>
2018-05-29 11:29:27,539 - kiteconnect.ticker - DEBUG - last ping was 2.500602960586548 seconds back.
2018-05-29 11:29:27,796 - kiteconnect.ticker - DEBUG - last pong was 2.5016067028045654 seconds back.
2018-05-29 11:29:27,797 - kiteconnect.ticker - DEBUG - pong => b''
2018-05-29 11:29:30,040 - kiteconnect.ticker - DEBUG - ping =>
2018-05-29 11:29:30,040 - kiteconnect.ticker - DEBUG - last ping was 2.5006039142608643 seconds back.
2018-05-29 11:29:30,298 - kiteconnect.ticker - DEBUG - last pong was 2.5006046295166016 seconds back.
2018-05-29 11:29:30,298 - kiteconnect.ticker - DEBUG - pong => b''
2018-05-29 11:29:32,542 - kiteconnect.ticker - DEBUG - ping =>
2018-05-29 11:29:32,542 - kiteconnect.ticker - DEBUG - last ping was 2.500603675842285 seconds back.
2018-05-29 11:29:32,800 - kiteconnect.ticker - DEBUG - last pong was 2.5016064643859863 seconds back.
2018-05-29 11:29:32,800 - kiteconnect.ticker - DEBUG - pong => b''
2018-05-29 11:29:35,044 - kiteconnect.ticker - DEBUG - ping =>
2018-05-29 11:29:35,044 - kiteconnect.ticker - DEBUG - last ping was 2.500603675842285 seconds back.
2018-05-29 11:29:35,300 - kiteconnect.ticker - DEBUG - last pong was 2.5006043910980225 seconds back.
2018-05-29 11:29:35,301 - kiteconnect.ticker - DEBUG - pong => b''
2018-05-29 11:29:37,545 - kiteconnect.ticker - DEBUG - ping =>
2018-05-29 11:29:37,545 - kiteconnect.ticker - DEBUG - last ping was 2.5006043910980225 seconds back.
2018-05-29 11:29:37,807 - kiteconnect.ticker - DEBUG - last pong was 2.5056190490722656 seconds back.
2018-05-29 11:29:37,808 - kiteconnect.ticker - DEBUG - pong => b''
2018-05-29 11:29:40,047 - kiteconnect.ticker - DEBUG - ping =>
2018-05-29 11:29:40,047 - kiteconnect.ticker - DEBUG - last ping was 2.500603675842285 seconds back.
2018-05-29 11:29:40,157 - kiteconnect.ticker - ERROR - Connection error: 1006 - connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)
2018-05-29 11:29:40,158 - root - ERROR - closed connection on error: 1006 connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)
2018-05-29 11:29:40,158 - kiteconnect.ticker - ERROR - Connection closed: 1006 - connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)
2018-05-29 11:29:40,159 - root - ERROR - closed connection on close: 1006 connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)
2018-05-29 11:29:40+0530 [KiteTickerClientProtocol (TLSMemoryBIOProtocol),client] will retry in 2 seconds
2018-05-29 11:29:40+0530 [-] Stopping factory
2018-05-29 11:29:40+0530 [-] Main loop terminated.
i had a similar issue i raised query for.. maybe yours is related.
I am facing the same issue while streaming for tick data
My code was working perfectly till yesterday. Getting this issue since today morning.
Connection error: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
You can go through Websocket Streaming Python client FAQs.
My streaming code:
I can fetch OHLC as well, the problem is only with streaming tick data.
Everything loads perfectly just while executing kws.connect() I get the error of:
Connection error: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
I even tried regenerating a new API secret but that was of no use as well.
Please assist.
tokenLookup
function. So, you can just pass same list.ws.set_mode(ws.MODE_LTP,tokens)
ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
I am facing the same issue. Can someone please help with solution