diff --git a/lib/platform/gitlab/gl-got-wrapper.ts b/lib/platform/gitlab/gl-got-wrapper.ts index e98b1f9a607c1ec21b9e0fb8ad52a7ed70107a97..71338af501434507edf97560c570f0b4a75e0f99 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): Promise<GotResponse> { } return res; } catch (err) /* istanbul ignore next */ { - if (err.statusCode >= 500 && err.statusCode < 600) { + if ( + err.statusCode === 429 || + (err.statusCode >= 500 && err.statusCode < 600) + ) { throw new Error(PLATFORM_FAILURE); } const platformFailureCodes = [