From b74a491b4f3bb722835f8bca03984df0aeb6a6e2 Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Wed, 3 Jun 2020 12:29:11 +0200 Subject: [PATCH] fix(helm): gracefully handle ETIMEDOUT --- lib/datasource/helm/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/datasource/helm/index.ts b/lib/datasource/helm/index.ts index 4fe514a226bb3a..ad29e34943920d 100644 --- a/lib/datasource/helm/index.ts +++ b/lib/datasource/helm/index.ts @@ -40,7 +40,11 @@ export async function getRepositoryData( return null; } // istanbul ignore if - if (err.code === 'ENOTFOUND' || err.code === 'EAI_AGAIN') { + if ( + err.code === 'ENOTFOUND' || + err.code === 'EAI_AGAIN' || + err.code === 'ETIMEDOUT' + ) { logger.debug({ err }, 'Could not connect to helm repository'); return null; }