Skip to content

[BUG]: UseNode fails with version set to "18.x" | Cannot read properties of null (reading 'forEach') #19315

Closed
@jensheidrich-acn

Description

New issue checklist

Task name

UseNode

Task version

1.231.0

Issue Description

We use the task "UseNode" with version as "18.x" and "Check for Latest Version".

Builds are failing since today (2023-11-22) with error:
##[error]Cannot read properties of null (reading 'forEach')

Setting a concrete version, e.g. "18.18.2" let it run successful.

I guess the latest changes of the task introduced this issue:
https://github.com/microsoft/azure-pipelines-tasks/pull/19243/files

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 22.04.3

Relevant log output

##[error]Cannot read properties of null (reading 'forEach')

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

No response

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions