NuGetGallery: [NuGet.org Bug]: Connection resets and invalid JSON returned from api.nuget.org

Impact

I’m unable to use NuGet.org

Describe the bug

Can’t restore packages from Nuget API V3, getting the following error message:

Failed to download package 'Microsoft.AspNetCore.Http.2.2.2' from 'https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.http/2.2.2/microsoft.aspnetcore.http.2.2.2.nupkg'.
  Unable to read data from the transport connection: Connection reset by peer.
    Connection reset by peer
Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/system.buffers/index.json'.
  Response status code does not indicate success: 502 (Bad Gateway).
  Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/system.buffers/index.json'.
  An error occurred while sending the request.
    Unable to read data from the transport connection: Connection reset by peer.
    Connection reset by peer
  Failed to download package 'System.Text.Json.4.6.0' from 'https://api.nuget.org/v3-flatcontainer/system.text.json/4.6.0/system.text.json.4.6.0.nupkg'.
  An error occurred while sending the request.
    Unable to read data from the transport connection: Connection reset by peer.
    Connection reset by peer

Repro Steps

Restore Nuget packages from Nuget API V3

Expected Behavior

Nuget packages restored.

Screenshots

No response

Additional Context and logs

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 5
  • Comments: 23 (8 by maintainers)

Most upvoted comments

We have performed a CDN failover to mitigate the problem. Please do let us know if you are continuing to see problems restoring packages or interacting with api.nuget.org. Thank you for your patience!

Hey @tomasbruckner, we have this issue tracking today’s availability problem: https://github.com/NuGet/NuGetGallery/issues/9218. On that issue, please let us know if you are still encountering a problem.

Having the same issue right now, Everything was working fine yesterday (also pipeline in Gitlab CI using Docker image)

Note this status update on Twitter: https://twitter.com/nuget/status/1554953163576586241?s=20&t=S40LVQSEMItr0CJPTg7bVQ. It’s brief but it’s essentially our experience–we are dependent on external services for connectivity and we have been working with them to determine what mitigations we can put in place in addition to the increased load capacity that has already been achieved.

Same here image

Agree, for a period of time it was working, but now failing again.

Yes agree, I see the connection is secure again grafik

Good catch! I think it starting to work again. I’ve got a successful pipeline working and local build.

I have the same issue. When opening the api.nuget.org in a browser I can see an issue withthe certificate. image (Sorry for german screenshot)