azure-pipelines-tasks: [BUG]: NPMv1 ##[warning]Can't find loc string for key: Info_GotAndMaskAuth

New issue checklist

Task name

npm

Task version

1.241.1

Issue Description

In the latest version of the task there is warning ##[warning]Can't find loc string for key: Info_GotAndMaskAuth.

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu 20.04

Relevant log output

==============================================================================
Task         : npm
Description  : Install and publish npm packages, or run an npm command. Supports npmjs.com and authenticated registries like Azure Artifacts.
Version      : 1.241.1
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/package/npm
==============================================================================
##[debug]Resource Utilization warnings is disabled, switch "DISABLE_RESOURCE_UTILIZATION_WARNINGS" variable to "true" if you want to enable it
##[debug]Using node path: /agent/externals/node20_1/bin/node
##[debug]agent.TempDirectory=/agent/_work/_temp
##[debug]loading inputs and endpoints
##[debug]loading INPUT_COMMAND
##[debug]loading INPUT_WORKINGDIR
##[debug]loading INPUT_CUSTOMCOMMAND
##[debug]loading INPUT_CUSTOMREGISTRY
##[debug]loading INPUT_PUBLISHREGISTRY
##[debug]loading INPUT_PUBLISHPACKAGEMETADATA
##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
##[debug]loaded 10
##[debug]Agent.ProxyUrl=undefined
##[debug]Agent.CAInfo=undefined
##[debug]Agent.ClientCert=undefined
##[debug]Agent.SkipCertValidation=undefined
##[debug]check path : /agent/_work/_tasks/Npm_fe47e961-9fa8-4106-8639-368c022d43ad/1.241.1/task.json
##[debug]adding resource file: /agent/_work/_tasks/Npm_fe47e961-9fa8-4106-8639-368c022d43ad/1.241.1/task.json
##[debug]system.culture=en-US
##[debug]Getting Packaging service access points
##[debug]System.TeamFoundationCollectionUri=https://dev.azure.com/<redacted>
##[debug]System.ServerType=Hosted
##[debug]Getting credentials for local feeds
##[debug]SYSTEMVSSCONNECTION exists true
##[warning]Can't find loc string for key: Info_GotAndMaskAuth
##[debug]Processed: ##vso[task.issue type=warning;]Can't find loc string for key: Info_GotAndMaskAuth
##[debug]Info_GotAndMaskAuth


### Full task logs with system.debug enabled

<details>
  <pre> [REPLACE THIS WITH YOUR INFORMATION] </pre>
</details>


### Repro steps

```yml
Run any npm@1 task for example
            - task: Npm@1
              displayName: Install dependencies
              inputs:
                command: ci

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 23
  • Comments: 50 (5 by maintainers)

Most upvoted comments

Yup i’m seeing npm is using 1.238.3 now as well, and i’m not seeing the warnings. Thank you for helping us with this @tintse-thxsky-MSFT !

is there a plan to release a new version of the task with the fix that seems to be merged into the repo?

Same issue, npmAuthenticate@0 , 0.242.0

We are seeing same warning with npmAuthenticate 0.242.0 and Agent name: ‘Hosted Agent’ Current agent version: ‘3.241.0’

using npmAuthenticate@0.238.2 fix the warning output

also getting same issue on npmAuthenticate@0 task with same setup self host image

also getting this on version 0.242.1

@bdbvb to clarify, you are still seeing the error in both task: npm and task: npmauthenticate, correct?

Can you rerun again and paste the log in text? from line 2 to line 15 is good enough.

@gavintoddchurch sorry I was focusing on “npm authenticate” task, can you retry now? “npm” task should work now.

It’s working OK now, for both. Both tool versions now have lower version.

image

image

Does anyone have a solution to get npmAuthenticate@0 to work again?

Task : Universal packages Description : Download or publish Universal Packages Version : 0.242.1

##[warning]Can’t find loc string for key: Info_GotAndMaskAuth

##[error]Error: ENOENT: no such file or directory, chmod ‘/opt/hostedtoolcache/ArtifactTool/0.2.344/x64/Artifacttool’

The pipeline is broken since today. Don’t know it is related to this issue.

We started to experience the same issue with task: UniversalPackages@0 Are there any updates on this?

See #20203 It is a different issue

It seems that @tintse-thxsky-MSFT fixed this by this one https://github.com/microsoft/azure-pipelines-tasks/pull/20259. There is so much npm packages which are used here and there. Somebody fixes one, but it’s necessary to bump others … seems only msft tech stuff knows the right dependencies.

Maybe “azure-pipelines-task” package is the right one, which will be later used in pipeline agent (🙏).

hi all, the problem should be resolved now. Please reopen this if it happens again.

Do we need to migrate to a new version?

Edit: an update was not required from our end. Works fine now.

hi all, the problem should be resolved now. Please reopen this if it happens again.

I believe they would need to deploy a new version for that to get change to get added into the task.

Same issue with 1.241.1

As a workaround, you can try using the previous version, 1.238.1.

  • task: Npm@1.238.1 inputs: command: ‘install’

Does anyone have a solution to get npmAuthenticate@0 to work again?

No 😦 Downgrading to npmAuthenticate@0.228.0 failed: "A task is missing. The pipeline references a task called 'npmAuthenticate'. This usually indicates the task isn't installed, and you may be able to install it from the Marketplace: https://marketplace.visualstudio.com. (Task version 0.228.0, job 'build', step ''.)" In our pipeline, last working npmAuthenticate was 0.238.2. But even downgrading to 0.238.2 does not help., the following npm ci still fails with 401 when connecting to our private NPM registry.

For a temporary fix just change the task version to 0.228.0

example:

- task: UniversalPackages@0.228.0

Same issue with Universal packages