From e839e8043f661dfe6dcdb860dbfd585d2e7bfc35 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Sat, 29 Jun 2019 07:44:38 +0200 Subject: [PATCH] fix(gitlab): catch UNABLE_TO_VERIFY_LEAF_SIGNATURE --- lib/platform/gitlab/gl-got-wrapper.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/platform/gitlab/gl-got-wrapper.ts b/lib/platform/gitlab/gl-got-wrapper.ts index 90f5dfe315..aed193ba80 100644 --- a/lib/platform/gitlab/gl-got-wrapper.ts +++ b/lib/platform/gitlab/gl-got-wrapper.ts @@ -33,7 +33,10 @@ async function get(path: string, options: any) { if (err.statusCode >= 500 && err.statusCode < 600) { throw new Error('platform-failure'); } - if (err.code === 'ECONNRESET') { + if ( + err.code === 'ECONNRESET' || + err.code === 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' + ) { throw new Error('platform-failure'); } throw err; -- GitLab