microsoft / azure-pipelines-tasks

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

[BUG]: ##[error]Failed to download or parse release-index.json with error: {} #20362

Open ktran1005 opened 3 months ago

ktran1005 commented 3 months ago

New issue checklist

Task name

UseDotNet@2

Task version

No response

Issue Description

I am facing this error ( ##[error]Failed to download or parse release-index.json with error: {} ) in one of my Azure pipelines. It did not happen often. I wonder if anyone knows how to fix this issue?

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)

Azure DevOps Server 2022

Operation system

Windows 11

Relevant log output

##[error]Failed to download or parse release-index.json with error: {}

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

No response

DenisNikulin5 commented 3 months ago

Hi @ktran1005 It's either a network error or an error on dotnet blob storage side.

How often do you face the issue?

ktran1005 commented 3 months ago

Hi @DenisNikulin5,

I have a pipeline that’s scheduled to run every night. The last time my pipeline failed due to this error was last Wed and couple times last month. I think it didn’t happen a lot but sometimes it does happen randomly . I saw some people suggested to rerun the pipeline to fix this issue. Do you think that’s the only solution? Thanks