microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.42k stars 2.58k forks source link

[BUG]: KUBECTL Azure Devops TASK kubernetes@1, cannot fetch access token for Azure on version 1.241.5 #20080

Open RSoares82 opened 3 days ago

RSoares82 commented 3 days ago

New issue checklist

Task name

kubernetes@1

Task version

1.241.5

Issue Description

Task started to fail on version 1.241.5 with the message:

Reason Could not fetch access token for Azure. Status code: network_error, status message: Network request failed.

It works on prior versions

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

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

2024-06-27T11:46:04.1785075Z ##[error]Cannot download access profile/kube config file for the cluster xpto. Reason Could not fetch access token for Azure. Status code: network_error, status message: Network request failed.

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

No response

merlynomsft commented 2 days ago

We appreciate your report. It seems there's a compatibility issue between the updated MSAL dependency in 1.241.5 and Node 10. Migrating to the Node 16 or Node 20 runtime is likely to rectify this problem. We are actively seeking a permanent fix.