Dotnet restore failing in mcr.microsoft.com/dotnet/sdk:latest docker image since 2024-11-21

Today dotnet CI jobs using the mcr.microsoft.com/dotnet/sdk:latest docker image have started failing at dotnet tool restore or at other places where nuget package are restored.

Multiple projects are affected.

The same commands are working locally (on Windows, Fedora, and using the docker image).

Something seems to have changed as the same jobs/configuration was working yesterday.

dotnet restore hangs and then outputs:

Failed to download package 'Microsoft.AspNetCore.App.Ref.8.0.11' from 'https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.app.ref/8.0.11/microsoft.aspnetcore.app.ref.8.0.11.nupkg'.
  The response ended prematurely, with at least 1945641 additional bytes expected. (ResponseEnded)

and then the pipeline times out.

The only clues I have found looking at the dotnet nuget project point to TLS certificate or DNS issues (e.g. error NU1301: Unable to load service index for source https://api.nuget.org/v3/index.json · Issue #13897 · NuGet/Home · GitHub).

Is anyone else seeing similar issues? I can’t see any configuration in the project source or pipeline YAML that has changed to cause this.