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?
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?
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)
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?
try:
for i in range(3):
price = kite.ltp(['NSE:'+ S1])['NSE:'+S1]['last_price']
break
except requests.exceptions.RequestException as e:
print(e)