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 {
|
||||
const raw = await got(pkgUrl, {
|
||||
json: true,
|
||||
retry: {
|
||||
errorCodes: [
|
||||
'ECONNRESET',
|
||||
'ETIMEDOUT',
|
||||
'ECONNRESET',
|
||||
'EADDRINUSE',
|
||||
'ECONNREFUSED',
|
||||
'EPIPE',
|
||||
'ENOTFOUND',
|
||||
'ENETUNREACH',
|
||||
'EAI_AGAIN',
|
||||
],
|
||||
},
|
||||
retry: 5,
|
||||
headers,
|
||||
});
|
||||
const res = raw.body;
|
||||
|
|
Loading…
Reference in a new issue