Timeout while retrieving values through kite.quote function

ZW2914
Hi,
sometimes, I am getting timeout error while retrieving the values through kite.quote function. Following are the error messages. can you pls let me know on how to fix this issue?

raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)
Tagged:
  • sujith
    You can refer to this thread.
  • ZW2914
    Hi, the thread which you gave finally says "issue could be due to intermittent internet issue". I am sure, I dont have any internet connectivity issues in my place as I am running other applications as well which works completely fine..

    can you give some solution for this?
  • sujith
    A read timeout can happen because of many reasons, there is no deterministic way to fix this. I would suggest using a try-catch and retry for timeouts.
Sign In or Register to comment.