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

fix(npm): retry datasource 5 times

parent 80d9af90
No related branches found
No related tags found
No related merge requests found
...@@ -108,19 +108,7 @@ export async function getDependency( ...@@ -108,19 +108,7 @@ export async function getDependency(
try { try {
const raw = await got(pkgUrl, { const raw = await got(pkgUrl, {
json: true, json: true,
retry: { retry: 5,
errorCodes: [
'ECONNRESET',
'ETIMEDOUT',
'ECONNRESET',
'EADDRINUSE',
'ECONNREFUSED',
'EPIPE',
'ENOTFOUND',
'ENETUNREACH',
'EAI_AGAIN',
],
},
headers, headers,
}); });
const res = raw.body; const res = raw.body;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment