Read timed out.

Vaga
I am frequently getting the read timeout error. Below is the error message

{"exc_type": "ReadTimeout", "exc_message": ["ReadTimeoutError(\"HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)\",)"], "exc_module": "requests.exceptions"}
  • rakeshr
    @Vaga
    We are looking at it. For time being, you can handle ReadTimeout exception at your end, something like:
    try:
    Your code logic here
    except ReadTimeout:
    pass
  • Vaga
    @rakeshr currently, we resend the request 3 times for the all timeout error. Even after 3 iterations of request we are getting the same error in some cases.
  • rakeshr
    @Vaga
    We are aware of this issue and already looking to it. For time being, can you use above exception handle method, that will keep requesting historical response, until data is fetched.
  • Vaga
    Thanks. Please update us when resolved.
  • Ramu772
    I am getting errors from historical api from past week. i am getting all kinds of errors each time. Please let us know if there are any changes made to historical API in last one month

    1. requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)
    2. NetworkException: Request failed (kitetrade-common).
    3. requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine("''",))
    4. kiteconnect.exceptions.NetworkException: Request failed (kitetrade-common).
  • gkaranam
    Hi @rakeshr @sujith . Any update on the issue fix. I am still getting these error and the connection is being broken.. The links which you provided for us to follow does not show any solution.
Sign In or Register to comment.