Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Using KPM offline should succeed if all dependencies are already available #591

Closed
Tratcher opened this issue Aug 29, 2014 · 14 comments
Closed
Assignees
Milestone

Comments

@Tratcher
Copy link
Member

KPM restore fails if run offline (no internet connection), even if all the necessary packages are already installed. KPM restore is a standard build step. This prevents build (& test) from being run offline. This reproduces in any of our repositories.

Expected:

  • KPM restore tries to download packages (probably due to wildcard dependencies) and fails, but the failure is suppressed as a warning because all of the required packages are already installed.

Observed:

  • KPM restore tries to download packages (probably due to wildcard dependencies) and fails, even though the dependencies are all already installed.
@davidfowl
Copy link
Member

How does it fail today?

I could see this being downgraded to a warning if you had a version on disk that matches your criteria with an added flag --ignore-failed-sources

@Tratcher
Copy link
Member Author

C:\git\PK-Universe\Caching>kpm restore
Restoring packages for C:\git\PK-Universe\Caching\samples\MemoryCacheConcurencyS
ample\Project.json
Attempting to resolve dependency MemoryCacheConcurencySample >= 1.0.0
Attempting to resolve dependency Microsoft.AspNet.MemoryCache >= 1.0.0
Attempting to resolve dependency Microsoft.Framework.Runtime.Interfaces >= 1.0.0

Attempting to resolve dependency mscorlib >=
Attempting to resolve dependency System >=
Attempting to resolve dependency System.Core >=
Attempting to resolve dependency Microsoft.CSharp >=
----------
System.AggregateException: One or more errors occurred. ---> System.Net.Http.Htt
pRequestException: An error occurred while sending the request. ---> System.Net.
WebException: The remote name could not be resolved: 'www.myget.org'
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at Microsoft.Framework.PackageManager.Restore.NuGet.HttpSource.<GetAsync>d__1
.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed.<FindPackages
ByIdAsyncCore>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at Microsoft.Framework.PackageManager.RemoteWalkProvider.<FindLibraryBySnapsh
ot>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryBySnapsho
t>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryMatch>d__
1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryEntry>d__
1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__1
.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__1
.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__1
.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Framework.PackageManager.RestoreCommand.<RestoreForProject>d__1.
MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceled
Exceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotifica
tion)
   at System.Threading.Tasks.Task`1.get_Result()
   at Microsoft.Framework.PackageManager.RestoreCommand.ExecuteCommand()
   at Microsoft.Framework.PackageManager.Program.<>c__DisplayClass1.<Main>b__7()

---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurre
d while sending the request. ---> System.Net.WebException: The remote name could
 not be resolved: 'www.myget.org'
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at Microsoft.Framework.PackageManager.Restore.NuGet.HttpSource.<GetAsync>d__1
.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed.<FindPackages
ByIdAsyncCore>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at Microsoft.Framework.PackageManager.RemoteWalkProvider.<FindLibraryBySnapsh
ot>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryBySnapsho
t>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryMatch>d__
1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryEntry>d__
1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__1
.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__1
.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__1
.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Framework.PackageManager.RestoreCommand.<RestoreForProject>d__1.
MoveNext()<---

----------
Restore failed
One or more errors occurred.

@Eilon
Copy link
Member

Eilon commented Aug 29, 2014

Yeah definitely have to warn the user. A wildcard spec means "give me the best one given the version resolve algorithm" but that can't be known without know the full set of packages at each source.

@glennc glennc changed the title Using KPM offline should succeed if all depenencies are already available Using KPM offline should succeed if all dependencies are already available Sep 2, 2014
@glennc
Copy link
Member

glennc commented Sep 2, 2014

If we have partial information (some or all of the feeds are not available) then:

  • If we know an exact minimum version (version without *) and that version is available -> done
  • If --ignore-failed-sources is specified and we have a package that satisfies the version ranges -> done
  • otherwise error

@glennc glennc added this to the 1.0.0-beta1 milestone Sep 2, 2014
@Tratcher
Copy link
Member Author

Tratcher commented Sep 3, 2014

Note that Visual Studio works fine offline. What logic do they use for package restore?

@davidfowl
Copy link
Member

KPM options is something that's on the list for VS. I don't think this will be on by default. Maybe if kpm restore fails with a particular exit code, VS can prompt and ask if you want to flip this flag /cc @PradeepKadubandi @sayedihashimi

@jkyadav
Copy link

jkyadav commented Apr 23, 2015

How to install all the necessary packages by kpm if necessary packages are not install on the machine and nor present in \User\userName.kpm\packages folder.

@ChengTian
Copy link
Contributor

@jkyadav , simply do kpm restore for your project. You can check the usage of kpm restore with kpm help restore. BTW, kpm was renamed to dnu recently, so if you find kpm is unavailable, use dnu instead.

@jkyadav
Copy link

jkyadav commented Apr 27, 2015

Hi @ChengTian I have kpm I tried to restore packages with kpm restore but it throws exception.

@jkyadav
Copy link

jkyadav commented Apr 27, 2015

See this even this failing for System.IO as well..

 CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Collections.Immutable'
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Collections.Immutable'.
  CACHE https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Collections.Immutable'
  CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.Metadata'
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Reflection.Metadata'.
  CACHE https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Reflection.Metadata'
  CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Mvc.TagHelpers'
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='Microsoft.AspNet.Mvc.TagHelpers'.
  GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Mvc.TagHelpers'.
  CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Runtime'
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Runtime'.
  GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Runtime'.
  CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.IO'
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.IO'.
  GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.IO'.
  CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Text.Encoding'
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Text.Encoding'.
  GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Text.Encoding'.
  CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Threading.Tasks'
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Threading.Tasks'.
  GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Threading.Tasks'.
  CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Globalization'
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Globalization'.
  GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Globalization'.
  CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Reflection'
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Reflection'.
  GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Reflection'.
  CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Collections'
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Collections'.
  GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Collections'.
  CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.ObjectModel'
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.ObjectModel'.
  GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.ObjectModel'.
  CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Xml.ReaderWriter'
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Xml.ReaderWriter'.
  GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Xml.ReaderWriter'.
  CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Runtime.Extensions'
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Runtime.Extensions'.
  GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Runtime.Extensions'.
  CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Runtime.InteropServices'
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Runtime.InteropServices'.
  GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Runtime.InteropServices'.
  CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Collections.Concurrent'
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Collections.Concurrent'.
  GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Collections.Concurrent'.
Warning: FindPackagesById: System.IO
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
Warning: FindPackagesById: System.Collections.Immutable
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.IO'.
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Collections.Immutable'.
Warning: FindPackagesById: System.Text.Encoding
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Text.Encoding'.
Warning: FindPackagesById: System.Runtime
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Runtime'.
Warning: FindPackagesById: System.Reflection.Metadata
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Reflection.Metadata'.
Warning: FindPackagesById: System.ObjectModel
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.ObjectModel'.
Warning: FindPackagesById: System.Runtime.InteropServices
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Runtime.InteropServices'.
Warning: FindPackagesById: System.Collections
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Collections'.
Warning: FindPackagesById: System.Threading.Tasks
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Threading.Tasks'.
Warning: FindPackagesById: System.Text.Encoding
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Text.Encoding'.
Warning: FindPackagesById: System.IO
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.IO'.
Warning: FindPackagesById: System.Reflection.Metadata
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Reflection.Metadata'.
Warning: FindPackagesById: System.Collections.Concurrent
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Collections.Concurrent'.
Warning: FindPackagesById: System.Collections.Immutable
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Collections.Immutable'.
Warning: FindPackagesById: System.Runtime.Extensions
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Runtime.Extensions'.
Warning: FindPackagesById: System.Xml.ReaderWriter
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Xml.ReaderWriter'.
Warning: FindPackagesById: System.Globalization
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Globalization'.
Warning: FindPackagesById: System.Runtime.InteropServices
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Runtime.InteropServices'.
Warning: FindPackagesById: System.Threading.Tasks
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Threading.Tasks'.
Warning: FindPackagesById: System.Runtime
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Runtime'.
Warning: FindPackagesById: Microsoft.AspNet.Mvc.TagHelpers
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='Microsoft.AspNet.Mvc.TagHelpers'.
Warning: FindPackagesById: System.Collections
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
  GET https://api.nuget.org/v3/index.json/FindPackagesById()?Id='System.Collections'.
Error: FindPackagesById: System.Collections.Immutable
  Response status code does not indicate success: 400 (One of the request inputs is out of range.).
----------
System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (One of the request inputs is out of range.).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at Microsoft.Framework.PackageManager.Restore.NuGet.HttpSource.<GetAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Framework.PackageManager.Restore.NuGet.NuGetv2Feed.<FindPackagesByIdAsyncCore>d__21.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Framework.PackageManager.RemoteWalkProvider.<FindLibrary>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibrary>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryByVersion>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryMatch>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryEntry>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.Framework.PackageManager.RestoreCommand.<RestoreForProject>d__62.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Framework.PackageManager.RestoreCommand.<ExecuteCommand>d__61.MoveNext()
----------
Restore failed
Response status code does not indicate success: 400 (One of the request inputs is out of range.).

@davidfowl
Copy link
Member

Disable the api.nuget.org feed.

@jkyadav
Copy link

jkyadav commented Apr 27, 2015

Thanks @davidfowl , its worked but failing now for this ..

kpm : 'npm' is not recognized as an internal or external command,
At line:1 char:1

  • kpm restore
  • - CategoryInfo          : NotSpecified: ('npm' is not re...ternal command,:String) [], RemoteException
    - FullyQualifiedErrorId : NativeCommandError
    
    

operable program or batch file.

What is wrong with this..

@davidfowl
Copy link
Member

You need to install node and npm

@jkyadav
Copy link

jkyadav commented Apr 29, 2015

Thanks @davidfowl kpm restore worked, but still I am getting npm related error, trying to fix it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants