Connection Aborted while code is running

Hi

I was running downloading intraday minute data in loop every 60 seconds. But I get the following error after every 2-3 loops:

ERROR:root:Exception in dhanhq>>intraday_daily_minute_charts: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))

Hello @Sujit_Modi

Welcome to MadeForTrade community!

This error is urliib3 issue, which is used by Python to do server requests. The simple fix for this is retry API whenever this exception occurs.

You can read about this here: Handle RemoteDisconnected exception from http.client and retry request. by keuko · Pull Request #1911 · urllib3/urllib3 · GitHub