From afbf0b8032482e54076f6211febc6dc68f96a851 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Fri, 25 Aug 2023 13:46:12 +0200 Subject: [PATCH] fix(azure): more external error catches for presets (#24078) --- lib/modules/platform/azure/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/modules/platform/azure/index.ts b/lib/modules/platform/azure/index.ts index e2f60bef7e..c775eae021 100644 --- a/lib/modules/platform/azure/index.ts +++ b/lib/modules/platform/azure/index.ts @@ -166,6 +166,12 @@ export async function getRawFile( ); throw new ExternalHostError(err, id); } + if (err.code === 'ECONNRESET' || err.code === 'ETIMEDOUT') { + throw new ExternalHostError(err, id); + } + if (err.statusCode && err.statusCode >= 500 && err.statusCode < 600) { + throw new ExternalHostError(err, id); + } throw err; } } -- GitLab