Sometimes unable to generate session with request token

Venkat123
Getting below error

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.kite.trade', port=443): Max retries exceeded with url: /session/token (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',))


This is happening only some times, But if it happens, its happening continuously
  • rakeshr
    @Venkat123
    Though it happens very rare, you need to handle ConnectionError at your end and keep performing authenticate until you obtain the access_token after the login flow.
Sign In or Register to comment.