-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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] Private package credentials should be included when fetching tarballs. #601
Comments
We couldn't reproduce your issue (all the assertions passed on master). |
Updated the test case---I had the assertion backwards. 😳 |
This issue reproduces on master:
|
This issue reproduces on master:
|
Thanks for providing a token - usually those issues are so much harder to solve because we have no repro, it's refreshing to actually get one 😄 I think the problem is caused by an interaction with unconventional registries (ie those that don't respect the Wanna try to make the change? |
Same bug here, been blocked for 2 days on it. Trying to push a PR for this now. |
Describe the Bug
I'm having some trouble fetching good old Font Awesome from their private NPM registry. When I pipe the requests through a proxy, I can see that Berry sends the bearer token assigned to the package scope when it requests the package metadata:
This yields a
200 OK
with a JSON blob. But when Berry initiates a request for the file itself, it does so without the authorization header:...and gets
401 Unauthorized
.I believe this is orthogonal to #329 and #334: the hostname is identical, and the responses were not redirects. Attempting the same installation in NPM, I can see that it passes the token along when grabbing the archive:
The Font Awesome folks are hosting their private repository through Cloudsmith, in case that's relevant.
I'd be happy to work out a fix, if I can! A morning's stumbling around looking for the right request to doctor hasn't done me any good yet, but maybe someone could point me in the right direction.
To Reproduce
Environment if relevant (please complete the following information):
Additional context
Thanks for your help! Excited to see Berry bear fruit.
The text was updated successfully, but these errors were encountered: