ReadTimeout: HTTPSConnectionPool

kapilaggr
Hi All,

I am trying to get the price of an instrument from the quote function(kite.quote) and sometimes get an error like "ReadTimeout: HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)" or "'Connection to api.kite.trade timed out. (connect timeout=7)'))".

Whenever these errors come up,my code stops running.Please help me to understand the error and the approach to resolve these issues.

I have attached the error logs.

Thanks and Regards,
Kapil


  • rakeshr
    @kapilaggr
    We are looking at it. For now, you can handle ReadTimeout exception at your end, something like:
    try:
    Your code logic here
    except ReadTimeout:
    pass
Sign In or Register to comment.