ECONNRESET error when generating token to get meeting

When we try to get the Zoom token to get the meeting details via the Rest API, we are getting an ECONNRESET error. This is an intermittent error. Here is the endpoint we call and how we call it within the NodeJS application

https://zoom.us/oauth/token

async generateToken() {
try {
const buffer = Buffer.from(${client_id}:${client_secret});
const basic = buffer.toString(‘base64’);
const return = await superagent.post(${ZOOM_URL_TOKEN})
.send(‘grant_type=account_credentials’)
.send(account_id=${account_id})
.set(‘Authorization’, Basic ${basic})
.disableTLSCerts()
.proxy(HTTP_PROXY);
return return.body;
} catch (e) {
const error = new BusinessError(‘Failed to connect to Zoom.us to generate token’, ‘0004’, 500);
error.cause = e;
throw error;
}
}

Application error log

12:58:34 0|app | Error: Falha ao conectar com o Zoom.us para gerar o token

14269912:58:34 0|app | at ZoomIntegration.gerarToken (/opt/nodejs/server/src/integrations/zoom.js:446:21)

14270012:58:34 0|app | at runMicrotasks ()

14270112:58:34 0|app | at processTicksAndRejections (internal/process/task_queues.js:95:5)

14270212:58:34 0|app | at async ZoomIntegration.findMeetingById (/opt/nodejs/server/src/integrations/zoom.js:102:19)

14270312:58:34 0|app | at async ReuniaoService.findById (/opt/nodejs/server/src/services/reuniao-service.js:55:21)

14270412:58:34 0|app | at async /opt/nodejs/server/src/routes/api/reuniao.js:44:26

14270512:58:34 0|app | Caused by Error: read ECONNRESET