question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Restore fails with "An error occurred while sending the request." for some packages

See original GitHub issue

Restore of the package “NETStandard.Library” (and others) fails with:

error: Failed to download package from 'https://dotnet.myget.org/F/dotnet-core/api/v3/flatcontainer/netstandard.library/1.0.0-rc2-23811/netstandard.library.1.0.0-rc2-23811.nupkg'.
error: An error occurred while sending the request.
error:   A connection with the server could not be established
error: Unable to load package 'NETStandard.Library'.
trace: System.AggregateException: One or more errors occurred. (Unable to load package 'NETStandard.Library'.) ---> 
NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load package 'NETStandard.Library'.
trace:    at NuGet.Protocol.Core.v3.RemoteRepositories.PackageUtilities.<OpenNuspecFromNupkgAsync>d__0.MoveNext()

I think all packages on myget fail with this error (or maybe rc2 packages).

The dependency is defined as:

    "dependencies": {
        "NETStandard.Library": "1.0.0-rc2-23811"
    }

Version of dotnet cli: 1.0.0-beta-001494

Steps to reproduce:

  1. Create empty folder
  2. Run there “dotnet new”
  3. Run there “dotnet restore -v=debug > log.txt”

Using a browser to download the file ‘https://dotnet.myget.org/F/dotnet-core/api/v3/flatcontainer/netstandard.library/1.0.0-rc2- 23811/netstandard.library.1.0.0-rc2-23811.nupkg’ succeeds.

Full log: log.txt

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
kierenjcommented, Jun 10, 2016

@blackdwarf / others … I fixed this by going into Docker for Windows’ settings, then Network, then un-checking ‘VPN compatibility mode’, which is ON by default.

1reaction
RobTheXcommented, Mar 22, 2016

… ok, I found the solution for my problem: I removed/commented the “clear” statement in the “NuGet.Config” file in my project directory (see screenshot). Then restoring worked (I still had some “Not Found …” messages though) and I could also run the project.

capture

Read more comments on GitHub >

github_iconTop Results From Across the Web

An error occurred while trying to restore packages. Please ...
This is how I fix my issue: First, I clear my Package Cache: enter image description here. Second, I make sure I have...
Read more >
Troubleshooting NuGet Package Restore in Visual Studio
This error indicates that package restore is disabled in your NuGet configuration. You can change the applicable settings in Visual Studio as ...
Read more >
Restore fails with "An error occurred while sending the ...
nupkg log : Failed to download package from 'https://dotnet.myget.org/F/dotnet-core/api/v3/flatcontainer/system.io.filesystem /4.0.1-rc2-23811/ ...
Read more >
Problem on restore nuget package
An error occurred while sending the request. Couldn't connect to server Retrying 'FindPackagesByIdAsyncCore' for source ...
Read more >
Error occurred while restoring NuGet packages
Error occurred while restoring NuGet packages: The operation failed as details for project (myProject) could not be loaded.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found