Error starting websocket - name 'ticks' is not defined

cosmos_trading
Hi,
At the start of websocket connection, I get following error:

DEBUG:kiteconnect.ticker:Start WebSocket connection.
2018-02-26 03:58:45-0600 [-] Log opened.
2018-02-26 03:58:46-0600 [-] dropping connection to peer tcp4:35.154.10.12:443 with abort=True: I dropped the WebSocket TCP connection: name 'ticks' is not defined
INFO:root:Error Occured.
INFO:root:1006
INFO:root:connection was closed uncleanly (I dropped the WebSocket TCP connection: name 'ticks' is not defined)
INFO:root:Connection closed.
INFO:root:1006
INFO:root:connection was closed uncleanly (I dropped the WebSocket TCP connection: name 'ticks' is not defined)
ERROR:kiteconnect.ticker:WebSocket connection lost: [Failure instance: Traceback (failure with no frames): : Connection was aborted locally, using.
].
2018-02-26 03:58:46-0600 [-] will retry in 2 seconds

Could you help to find the cause of this?

Thanks.
  • sujith
    I think you are not setting callback properly. Check out this.
  • cosmos_trading
    Callback was fine. I was using 'ticks' in my script where it wasn't defined. Error trace didn't help to pin point the cause, but little digging made it clear. Thanks, anyway! :)
This discussion has been closed.