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

Note

Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo

For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

If you have an issue or request for the Azure Pipelines service, use developer community instead:

https://developercommunity.visualstudio.com/spaces/21/index.html )

Required Information

Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: Bug

Enter Task Name: UseDotNet@2

list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

Environment

Azure Pipelines

  • Agent - Hosted or Private: Hosted Windows 2019 with VS2019

Issue Description

Receive the following error downloading the .NETCore SDK: ##[error]Failed to download or parse release-index.json with error: {}

Task logs

[Enable debug logging and please provide the zip file containing all the logs for a speedy resolution]

Troubleshooting

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

Error logs

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

WORKAROUND (yaml configuration):

Before:

- task: UseDotNet@2
  displayName: 'Install .NETCore SDK'
  inputs:
    version: '2.2.301'

After:

- task: UseDotNet@2
  displayName: 'Install .NETCore SDK'
  inputs:
    packageType: 'sdk'
    version: '2.2.301'

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 88 (5 by maintainers)

Most upvoted comments

this is happening again

This task fails based on Github dependencies. There’s again an active Github availability issue. See https://www.githubstatus.com/

Instead of ‘+1’-ing, I suggest a change in the UseDotnet task.

Why not caching the release list and use the old list when the new one can’t be parsed or reached? A lot of the time the tools are cached anyways, so this might solve this issue for a lot of us.

cc @hiyadav, can this issue be opened again until it is really fixed?

It’s most likely due to ongoing issues at GitHub right now, see https://www.githubstatus.com/

Just wanted to note that the original post says the workaround is to add packageType: ‘sdk’ to the task’s inputs… This exists already in my YAML configuration but the task is still failing.

Site says that fix has been deployed but I am still getting same error

btw it looks like the issue is resolved

Happening with us now.

I just experienced this issue. I believe its still there. Please reopen

Task : Use .NET Core Version : 2.165.2 Tool to install: .NET Core sdk version 3.x. ##[error]Failed to download or parse release-index.json with error: {}

Now it’s working for me: Before : image

now:

image

Happening today!!! 😫 NET 8

working again.

This issue just started happening this evening for me. Using version 2.* of the Use .NET Core task. Tool to install: .NET Core sdk version 2.1.500. ##[debug]task result: Failed ##[error]Failed to download or parse release-index.json with error: {}

Please reopen

We are seeing it as well. Worked fine this morning and the past 6 months

We’re seeing it too.

We are suddenly getting this error too… Everything was working fine this morning.

August 2021 and the issue still occurs. Thinking out of the box here, could it be that we (the world) are just going with to much servers to the same location? Because this error occurs sporadically with us (about 6 out of 10 times)

+1

I notice this is closed. The workaround does NOT work. Is there another open issue? By the way, I commented out UseDotNet@2 and it appears my pipeline succeeded.

We are suddenly getting this error too… Everything was working fine this morning.

I am getting the same error in our Private agent, Hosted agents it is working fine.

image

##[error]Failed to download or parse release-index.json with error: {“errno”:“ENOTFOUND”,“code”:“ENOTFOUND”,“syscall”:“getaddrinfo”,“hostname”:“raw.githubusercontent.com”,“host”:“raw.githubusercontent.com”,“port”:443}