mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 06:26:26 +00:00
fix(npm): retry datasource 5 times
This commit is contained in:
parent
80d9af9045
commit
3f1df39996
1 changed files with 1 additions and 13 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue