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

fixl handle npm registry 403

parent d9bfa0cd
No related branches found
No related tags found
No related merge requests found
...@@ -148,8 +148,11 @@ async function getDependency(name, retries = 5) { ...@@ -148,8 +148,11 @@ async function getDependency(name, retries = 5) {
memcache[name] = dep; memcache[name] = dep;
return dep; return dep;
} catch (err) { } catch (err) {
if (err.statusCode === 401) { if (err.statusCode === 401 || err.statusCode === 403) {
logger.info({ err, name }, `Dependency lookup failure: unauthorized`); logger.info(
{ err, statusCode: err.statusCode, name },
`Dependency lookup failure: unauthorized`
);
return null; return null;
} }
if (err.statusCode === 404) { if (err.statusCode === 404) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment