kite connection error

cjs
Hello
I m using websocket trying pass tokens
[272393, 268809, 268553, 268297, 268041, 267785, 267529, 267017, 266761, 266505]

getting error............
2019-11-27 12:12:24+0530 [-] Log opened.
2019-11-27 12:12:24+0530 [-] failing WebSocket connection (code=1000): "close reason without close code"
2019-11-27 12:12:24+0530 [-] dropping connection to peer tcp4:13.234.16.10:443 with abort=True: I dropped the WebSocket TCP connection: close reason without close code
2019-11-27 12:12:24+0530 [-] Connection error: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
2019-11-27 12:12:24+0530 [-] Connection closed: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
2019-11-27 12:12:24+0530 [-] will retry in 2 seconds
2019-11-27 12:12:24+0530 [-] Stopping factory
2019-11-27 12:12:24+0530 [-] Main loop terminated.

All tokens r integer.
however when I pass only reliance token it works.
wat cud b my mistake??
  • rakeshr
    @cjs
    All tokens are correct.
    Are you doing any computation inside on_ticks method? Possibly, paste your complete WebSocket code here.
  • cjs
    how do I store ticks on disk in append mode. Numpy array , or json ,pickle..
    what is best way to do. plz provide sample code.
  • gauravk
    Any idea how this is resolved, i think this is happening just at connect itself?
  • sujith
    Can you paste the complete stack trace here?
  • gauravk
    2021-05-10 13:43:34+0530 [-] Starting factory
    2021-05-10 13:43:34+0530 [-] failing WebSocket connection (code=1000): "close reason without close code"
    2021-05-10 13:43:34+0530 [-] dropping connection to peer tcp4:35.154.7.119:443 with abort=True: I dropped the WebSocket TCP connection: close reason without close code
    ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
    2021-05-10 13:43:34+0530 [-] on error
    ERROR:root:closed connection on error: 1006 connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
    2021-05-10 13:43:34+0530 [-] Unhandled Error
    Traceback (most recent call last):
    File "C:\Users\xxxxxx\Anaconda3\lib\threading.py", line 932, in _bootstrap_inner
    self.run()
    File "C:\Users\xxxxxx\Anaconda3\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
    File "C:\Users\xxxxxx\Anaconda3\lib\site-packages\twisted\internet\base.py", line 1283, in run
    self.mainLoop()
    File "C:\Users\xxxxxx\Anaconda3\lib\site-packages\twisted\internet\base.py", line 1292, in mainLoop
    self.runUntilCurrent()
    --- ---
    File "C:\Users\xxxxxx\Anaconda3\lib\site-packages\twisted\internet\base.py", line 913, in runUntilCurrent
    call.func(*call.args, **call.kw)
  • gauravk
    Is there any limit in posting text? Somehow it is not posting comment
  • rakeshr
    File "C:\Users\xxxxxx\Anaconda3\lib\site-packages\twisted\internet\base.py", line 913, in runUntilCurrent
    call.func(*call.args, **call.kw)
    You can go through Websocket streaming FAQs for Anaconda setup here.
Sign In or Register to comment.