API Retrying cause CPU usage to 100% on AWS

Hey, I am getting weird issue around 1:30 from few days where I am trying to load pnl using upstox_client.PortfolioApi(upstox_client.ApiClient(configuration))

This api retrying to loads and CPU usage jump 100% on AWS, and stuck whole application, is it something we control retry from use side.

14-Mar-24 08:06:48 - Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProtocolError(‘Connection aborted.’, BrokenPipeError(32, ‘Broken pipe’))’: /v2/portfolio/short-term-positions
14-Mar-24 08:07:44 - Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLZeroReturnError(6, ‘TLS/SSL connection has been closed (EOF) (_ssl.c:1129)’))’: /v2/portfolio/short-term-positions

14-Mar-24 08:12:35 - Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLZeroReturnError(6, ‘TLS/SSL connection has been closed (EOF) (_ssl.c:1129)’))’: /v2/portfolio/short-term-positions
14-Mar-2

@Satish_Patel

Thank you for reaching out.

Currently, our SDK does not include a retry mechanism for APIs. This should be specific to your application flow.

Please review your setup and contact us if you need any additional assistance.

Thank you!

1 Like