Skip to content
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

401 error when using yarn with VSTS; works with 0.27.5 and NPM #4873

Closed
SuhairZain opened this issue Nov 7, 2017 · 4 comments
Closed

401 error when using yarn with VSTS; works with 0.27.5 and NPM #4873

SuhairZain opened this issue Nov 7, 2017 · 4 comments
Assignees
Labels

Comments

@SuhairZain
Copy link

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
The latest version of yarn fails with 401 error when fetching packages from our private Visual Studio Team Services channel. It works when I fall back to 0.27.5 or when I use npm. The failing package seems to change on each try.

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

The following is the console output:

yarn install v1.3.2
[1/5] Resolving packages...
[2/5] Fetching packages...
error An unexpected error occurred: "https://xxxxxx.pkgs.visualstudio.com/_packaging/8cc7db9e-2c6c-4bac-b0e4-14010c159200/npm/registry
/husky/-/husky-0.14.3.tgz: Request failed \"401 Unauthorized\"".
info If you think this is a bug, please open a bug report with the information provided in "C:\\xxxxxx\\xxxxxx-cms\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

The following is the error log: https://pastebin.com/jMaNS55Q

Please mention your node.js, yarn and operating system version.
Node: v8.5.0
Yarn: v1.3.2

@ghost ghost assigned torifat Nov 8, 2017
@ghost ghost added the triaged label Nov 8, 2017
@torifat
Copy link
Member

torifat commented Nov 8, 2017

Are you using HTTP_PROXY or HTTPS_PROXY env variable?

@SuhairZain
Copy link
Author

@torifat I don't have either of them set.

@BYK
Copy link
Member

BYK commented Nov 9, 2017

Can this be a duplicate of #4672?

@torifat
Copy link
Member

torifat commented Nov 9, 2017

Duplicate of #4672

@torifat torifat marked this as a duplicate of #4672 Nov 9, 2017
@torifat torifat closed this as completed Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants