API Connection is dropping intermidently

Dileep
Hi around 12:53 PM today (23-08-2023) i got the error in log as "2023-08-23 12:53:36,724 - kiteconnect.ticker - ERROR - Retrying connection. Retry attempt count: 1. Next retry in around: 3 seconds" is it any server down from your end or any VPS cloud internet issue from my end? Please let me know if any one is facing similar issue?
Tagged:
  • sujith
    We haven't come across any issue at our end. Can you paste the complete stack trace or error screenshot?
  • Dileep
    Dileep edited August 2023
    I am providing Yesterday logs. I faced yesterday as well.
    2023-08-22 15:07:47,601 - kiteconnect.ticker - ERROR - Connection error: 1006 - connection was closed uncleanly (None)
    2023-08-22 15:07:47,601 - kiteconnect.ticker - ERROR - Connection closed: 1006 - connection was closed uncleanly (None)
    2023-08-22 15:07:50,491 - kiteconnect.ticker - ERROR - Retrying connection. Retry attempt count: 1. Next retry in around: 3 seconds
    2023-08-22 15:07:58,273 - kiteconnect.ticker - ERROR - Retrying connection. Retry attempt count: 2. Next retry in around: 8 seconds
    2023-08-22 15:08:12,769 - kiteconnect.ticker - ERROR - Retrying connection. Retry attempt count: 3. Next retry in around: 14 seconds
    2023-08-22 15:09:06,583 - kiteconnect.ticker - ERROR - Retrying connection. Retry attempt count: 4. Next retry in around: 54 seconds
    2023-08-22 15:10:05,912 - kiteconnect.ticker - ERROR - Retrying connection. Retry attempt count: 5. Next retry in around: 59 seconds
    2023-08-22 15:11:04,568 - kiteconnect.ticker - ERROR - Retrying connection. Retry attempt count: 6. Next retry in around: 59 seconds
    2023-08-22 15:12:00,928 - root - DEBUG - Intiate => 151200

    After the connection established. I have this much only in my log file. Do i need to mention change anything like "level=logging.DEBUG" to get complete stack trace?
  • rakeshr
    2023-08-22 15:07:50,491 - kiteconnect.ticker - ERROR - Retrying connection. Retry attempt count: 1. Next retry in around: 3 seconds
    This seems like a network disconnection. Yeah, you can enable a debug log for detailed stack trace.
  • Zen8_ith
    I was also facing same issue then i did netwrok error handing like if netwoks drop once it will try to connect two more times. Now I am not facing any error.

    try:
    for i in range(3):
    price = kite.ltp(['NSE:'+ S1])['NSE:'+S1]['last_price']
    break
    except requests.exceptions.RequestException as e:
    print(e)
This discussion has been closed.