diff --git a/src/common/notify.ts b/src/common/notify.ts index b508524..118338f 100644 --- a/src/common/notify.ts +++ b/src/common/notify.ts @@ -202,6 +202,10 @@ export async function handleError( } else if ('code' in err && (err as any).type === 'system' && err.code === 'EAI_AGAIN') { debug('Request error - name resolution failed, waiting %ds before retrying', loop.update_interval, err); + return LoopResult.OK; + } else if ('code' in err && (err as any).type === 'system' && err.code === 'ECONNRESET') { + debug('Request error - connection reset, waiting %ds before retrying', loop.update_interval, err); + return LoopResult.OK; } else { throw err;