Unable to use KiteTicker

vaibhava
Hi,
I'm unable to use kiteTicker even with the sample app available with Python Documentation for kiteConnect.
My app subscription is active. And I have tried multiple times using freshly generated access tokens.
@sujith can you pls suggest for the possible error?

--
Thanks,
Vaibhav

PS: Below is the error log.
--
In [1]: run src/kite/thread_ticker.py
INFO:root:This is main thread. Will change webosocket mode every 5 seconds.

ERROR:kiteconnect.ticker:Retrying connection. Retry attempt count: 1. Next retry in around: 3 seconds
INFO:root:Reconnecting: 1
ERROR:kiteconnect.ticker:Retrying connection. Retry attempt count: 2. Next retry in around: 5 seconds
INFO:root:Reconnecting: 2
--
  • rakeshr
    @vaibhava
    INFO:root:This is main thread. Will change webosocket mode every 5 seconds.
    This doesn't help, as it's your's defined logging messages.
    ERROR:kiteconnect.ticker:Retrying connection. Retry attempt count: 1. Next retry in around: 3 seconds
    INFO:root:Reconnecting: 1
    ERROR:kiteconnect.ticker:Retrying connection. Retry attempt count: 2. Next retry in around: 5 seconds
    INFO:root:Reconnecting: 2
    From this, it looks like your local internet disconnection. Are you able to make other API calls?
    Complete error stack will help us more to understand this.
  • vaibhava
    Thanks for the quick response. Yes, I'm able to access other APIs using the same app (api_key)
  • vaibhava
    vaibhava edited March 2021
    Also, below is the error log with debug=True.
    --
    DEBUG:kiteconnect.ticker:Start WebSocket connection.
    2021-03-19 17:59:09+0530 [-] Log opened.
    INFO:root:This is main thread. Will change webosocket mode every 5 seconds.
    2021-03-19 17:59:39+0530 [-] will retry in 2 seconds
    2021-03-19 17:59:39+0530 [-] Stopping factory
    2021-03-19 17:59:42+0530 [-] Starting factory
    ERROR:kiteconnect.ticker:Retrying connection. Retry attempt count: 1. Next retry in around: 3 seconds
    INFO:root:Reconnecting: 1
    2021-03-19 18:00:12+0530 [-] will retry in 7 seconds
    2021-03-19 18:00:12+0530 [-] Stopping factory
    2021-03-19 18:00:19+0530 [-] Starting factory
    ERROR:kiteconnect.ticker:Retrying connection. Retry attempt count: 2. Next retry in around: 7 seconds
    INFO:root:Reconnecting: 2
    2021-03-19 18:00:49+0530 [-] will retry in 21 seconds
    2021-03-19 18:00:49+0530 [-] Stopping factory
    2021-03-19 18:01:10+0530 [-] Starting factory
    --
  • vaibhava
    vaibhava edited March 2021
    @rakeshr , Looks like it was a machine specific issue. I tried executing the code the again with a different virtual machine and it helped. Next, I'll try the same with my algo. I'll ping you again in case, I'm stuck with any issue.
    Thanks again for your help and appreciate your prompt response.
This discussion has been closed.