Skip to content

NPM: Handle 403 Forbidden when updating lockfiles#1013

Merged
feelepxyz merged 1 commit intomasterfrom
fix-npmrc-registry-with-trailing-slash
Feb 20, 2019
Merged

NPM: Handle 403 Forbidden when updating lockfiles#1013
feelepxyz merged 1 commit intomasterfrom
fix-npmrc-registry-with-trailing-slash

Conversation

@feelepxyz
Copy link
Copy Markdown
Contributor

@feelepxyz feelepxyz commented Feb 20, 2019

Seems to handle the case when we auth against artifactory and get
"Unable to authenticate, need: Basic realm="Artifactory Realm""

This seems to be caused by a trailing slash in the registry host as set
in config variables. When we write this out in npmrc we add another
trailing slash and this seems to cause the above error. Changing to a
single trailing slash returns a 403 Forbidden error.

@feelepxyz
Copy link
Copy Markdown
Contributor Author

@greysteil does this seem legit? Not sure why this change is now returning a 403 Forbidden which we haven't handled before, will continue digging into this tomorrow.

@feelepxyz feelepxyz force-pushed the fix-npmrc-registry-with-trailing-slash branch 2 times, most recently from 79ea5e6 to ae7550d Compare February 20, 2019 17:27
Seems to handle the case when we auth against artifactory and get
"Unable to authenticate, need: Basic realm="Artifactory Realm""

This seems to be caused by a trailing slash in the registry host as set
in config variables. When we write this out in npmrc we add another
trailing slash and this seems to cause the above error. Changing to a
single trailing slash returns a 403 Forbidden error.
@feelepxyz feelepxyz force-pushed the fix-npmrc-registry-with-trailing-slash branch from ae7550d to 7beb80c Compare February 20, 2019 17:29
@feelepxyz feelepxyz merged commit 994f6d6 into master Feb 20, 2019
@feelepxyz feelepxyz deleted the fix-npmrc-registry-with-trailing-slash branch February 20, 2019 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant