Skip to content
Snippets Groups Projects
Commit 99f18b7d authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(gitlab): EAI_AGAIN platform-failure

parent 331863d2
Branches
Tags 19.41.1
No related merge requests found
......@@ -34,11 +34,13 @@ async function get(path: string, options: any) {
if (err.statusCode >= 500 && err.statusCode < 600) {
throw new Error('platform-failure');
}
if (
err.code === 'ETIMEDOUT' ||
err.code === 'ECONNRESET' ||
err.code === 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
) {
const platformFailureCodes = [
'EAI_AGAIN',
'ECONNRESET',
'ETIMEDOUT',
'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
];
if (platformFailureCodes.includes(err.code)) {
throw new Error('platform-failure');
}
throw err;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment