vnext dnu restore always cancel or timeout

I retrive the sample code from https://www.github.com/aspnet/home . when I restore the packages in the latest/HelloMvc folder, The following error occurred:

Warning: FindPackagesById: Microsoft.AspNet.Http.Features
  HTTP request timed out. Retrying.
  GET https://nuget.org/api/v2/FindPackagesById()?id='Microsoft.AspNet.Http.Features'
Error: FindPackagesById: Microsoft.AspNet.Hosting.Server.Abstractions
  HTTP request timed out. Exiting.
Error: FindPackagesById: Microsoft.Framework.Configuration
  HTTP request timed out. Exiting.
Error: FindPackagesById: Microsoft.AspNet.Http
  HTTP request timed out. Exiting.
Error: FindPackagesById: Microsoft.Framework.Configuration.EnvironmentVariables
  HTTP request timed out. Exiting.
Error: FindPackagesById: Microsoft.Framework.Configuration.CommandLine
  HTTP request timed out. Exiting.
Error: FindPackagesById: Microsoft.Framework.DependencyInjection
  HTTP request timed out. Exiting.
Error: FindPackagesById: Microsoft.Framework.Configuration.Ini
  HTTP request timed out. Exiting.
Error: FindPackagesById: Microsoft.Framework.Logging
  HTTP request timed out. Exiting.
----------
System.Threading.Tasks.TaskCanceledException: A task was canceled.
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[System.Net.Http.HttpResponseMessage].GetResult () [0x00000] in <filename unknown>:0 
  at System.Net.Http.HttpClientHandler+<SendAsync>c__async0.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---

but I successfully restore at lastest/ConsoleApp, then I use wget to download the pacakge with the failed url, there’s no problems, I can unzip dlls from the package.

I have restore the lastest/HelloMvc use mono 1.0.0-beta7-12274 runtime, or restore 1.0.0-beta5/HellowMvc use 1.0.0-beta5 runtime, change to use the dockerfile(microsoft/aspnet), even change computer, the error is the same~


Source: ubuntu

Leave a Reply