Restore fails with "An error occurred while sending the request." for some packages
See original GitHub issueRestore 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:
- Create empty folder
- Run there “dotnet new”
- 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:
- Created 8 years ago
- Comments:14 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
… 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.