Core: GitHub Builds Failing Due to Invalid releases-index.json or releases.json

Created on 3 Mar 2020  路  9Comments  路  Source: dotnet/core

See https://github.com/microsoft/azure-pipelines-tasks/issues/10968
This is a recurring issue that's been opened and resolved multiple times.

Most helpful comment

[error]Unexpected token : in JSON at position 3

Run actions/[email protected]
with:
dotnet-version: 3.1.100
/home/runner/work/_actions/actions/setup-dotnet/v1.2.0/externals/get-os-distro.sh
Primary:linux-x64
Legacy:ubuntu.18.04
Checking tool cache
Getting a download url 3.1.100

[error]Unexpected token : in JSON at position 3

All 9 comments

[error]Unexpected token : in JSON at position 3

Run actions/[email protected]
with:
dotnet-version: 3.1.100
/home/runner/work/_actions/actions/setup-dotnet/v1.2.0/externals/get-os-distro.sh
Primary:linux-x64
Legacy:ubuntu.18.04
Checking tool cache
Getting a download url 3.1.100

[error]Unexpected token : in JSON at position 3

This morning, tried updating the setup-dotnet to v1.4.0 (above 1.2.0 we were previously using) and the builds are passing. I'm not certain where the fix is, but thought I'd share this resolution.

This morning, tried updating the setup-dotnet to v1.4.0 (above 1.2.0 we were previously using) and the builds are passing. I'm not certain where the fix is, but thought I'd share this resolution.

How about a fix for 2019 sever/on prem edition? DotNetCoreInstaller@0 is the only option.

This morning, tried updating the setup-dotnet to v1.4.0 (above 1.2.0 we were previously using) and the builds are passing. I'm not certain where the fix is, but thought I'd share this resolution.

How about a fix for 2019 sever/on prem edition? DotNetCoreInstaller@0 is the only option.

Alas, I'm a complete newcomer to GitHub workflows 馃槥

What's the status of this? I cannot build a release package due to this.

FWIW, I managed to work around it by upgrading to a later version of https://github.com/actions/setup-dotnet.

I'm glad the pipelines scenario got straightened out. The last update to the 3.1 releases-json was 3 weeks ago so seems to be something in the azure pipeline task which was fixed.

@adamralph - https://github.com/actions/setup-dotnet is a community project and not controlled or driven by the .NET release folks. If you experience issues with the action in the future, please log an issue in that repo. Now that I know it exists, I can also keep an eye out.

@leecow I don't think there's anything wrong with https://github.com/actions/setup-dotnet. This seems to be a recurring problem in the .NET releases. It's just that later versions of setup-dotnet seem to be immune to it. There could well be other things out there which rely on the .NET releases being well-formed.

There could well be other things out there which rely on the .NET releases being well-formed.

I definitely agree with that statement!

Was this page helpful?
0 / 5 - 0 ratings