mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
fix(npm): await 5s before ECONNRESET retry
This commit is contained in:
parent
c07fcefb82
commit
b8b7b75ad0
1 changed files with 1 additions and 0 deletions
|
@ -231,6 +231,7 @@ export async function getDependency(
|
||||||
// istanbul ignore if
|
// istanbul ignore if
|
||||||
if (err.code === 'ECONNRESET' && retries > 1) {
|
if (err.code === 'ECONNRESET' && retries > 1) {
|
||||||
logger.info({ regUrl }, 'Retrying npm ECONNRESET');
|
logger.info({ regUrl }, 'Retrying npm ECONNRESET');
|
||||||
|
await delay(5000);
|
||||||
return getDependency(name, retries - 1);
|
return getDependency(name, retries - 1);
|
||||||
}
|
}
|
||||||
logger.warn(
|
logger.warn(
|
||||||
|
|
Loading…
Reference in a new issue