Azure-pipelines-tasks: Unable to authenticate, need: Bearer authorization_uri=https://login.windows.net/***, Basic realm="https://pkgsprodscussu1.app.pkgs.visualstudio.com/", TFS-Federated

Created on 12 Mar 2019  路  4Comments  路  Source: microsoft/azure-pipelines-tasks

Troubleshooting

Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting

Environment

Hosted VS2017

Issue Description

This message started coming today and failing the build during npm install.

Unable to authenticate, need: Bearer authorization_uri=https://login.windows.net/*, Basic realm="https://pkgsprodscussu1.app.pkgs.visualstudio.com/", TFS-Federated

Task logs

log_8_14821810.zip

Error logs

Most helpful comment

had an expired npmrc token

All 4 comments

had an expired npmrc token

Similar solution, I just copied the entire text after clicking on "Generate npm credentials", without looking at the actual text.

This happens if password recently expired or changed, will need to create new PAT, convert to base64 and update in your npmrc file. Detailed documentation is here https://docs.microsoft.com/en-gb/azure/devops/artifacts/npm/npmrc?view=azure-devops&tabs=windows#set-up-authentication-on-your-dev-box

Hi, already updated the PAT, still 401. Is there another issue that might cause that?

Was this page helpful?
0 / 5 - 0 ratings