Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

Rekha
kite ticker websocket was running fine but due to reset of internet connection, I got this exception.
Exception occurred HTTPSConnectionPool(host='api.kite.trade', port=443): Max retries exceeded with url: /portfolio/positions (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

I think it invalidates the socket ticker object.

How do I handle it in python script so to ensure continuity of the script after the internet connection is detected again? Thanks in advance
Tagged:
Sign In or Register to comment.