-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] No auth for URI, but auth present for scoped registry #3134
Comments
the error does not indicate that the host is different, but that the source of the data does not match your registry. it means that unless the uri to the tarball exists at some path that starts with this is an effort to avoid sending authentication headers to addresses unless we are absolutely certain they match your provided registry. did the logged error include the url that it attempted to fetch? if so, you can use that to determine what an additional entry in your |
Ah, I see. There are a few references to The URL is: So I guess I need to add: //gitlab.com/api/v4/projects/:_authToken=${GITLAB_NPM_TOKEN} Please consider listing such breaking changes in a separate section of the changelog. The item under Thanks. |
One question: Could you just use a common prefix instead, if the origin is the same? f.e. |
I think this is the same as #3130 |
I saw that issue, and I don't think that it's the same. |
#3130 is two problems. This is the same as one of them, but not the other ;) Going to have a fix going out shortly. |
This appears to be fixed in |
Current Behavior:
Getting:
.npmrc:
I read the wiki page, but I think that the tarballs are on the same host (
https://gitlab.com
). This is working with npm 7.10.0.Expected Behavior:
No errors – auth should be available on the same host.
Steps To Reproduce:
Use the GitLab private registry with configuration similar to the above. I can provide more details if necessary.
Environment:
The text was updated successfully, but these errors were encountered: