You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
kpm restore fails to proceed to fallback sources when there is an error in the first listed feed #15
I was walking through the getting started section, and I noticed an exception being thrown from the kpm restore step.
Attempting to resolve dependency System.Console >= 4.0.0.0
OK https://my-feed.cloudapp.net/api/v2/FindPackagesById()?Id='System.Console' 448ms
Warning: FindPackagesById: System.Console
'=' is an unexpected token. The expected token is ';'. Line 21, position 78.
(I've sanitized the actual feed URL, but I'm a Microsoft employee if that helps)
My guess is that one of three things is happening:
kpm doesn't know how to negotiate authentication with the private NuGet feed
The private feed needs an update to work with kpm, and kpm doesn't gracefully handle communicating with old feeds
The feed simply doesn't contain the "System.Console" package, and kpm doesn't gracefully handle missing packages.
Other details:
KRE builds tested (both reproduced issue)
0.1-alpha-build-0421 svr50 x86 C:\Users\me\.kre\packages
0.1-alpha-build-0425 svr50 x86 C:\Users\me\.kre\packages
Which feed did you disable to make it work? The MyGet feed is public as of this morning, so you should be able to use it without any auth getting in the way.
I can still reproduce this - For example if I have a package X in my project.json dependencies and I try to do a kpm restore -s http://notexistingfeed.com/api/v2 -s https://nuget.org/api/v2 (Note: This command has multiple feeds and the first one a non-existing feed). When there is an error (404/500 etc) in the first feed kpm restore fails and does not proceed to the fallback sources. For instance the same is handled differently in older nuget where it falls back.
The source at NonExisting [http://notexistingsite.com/api/v2] is unreachable. Falling back to NuGet Local Cache at C:\Users\prabht\AppData\Local\NuGet\Cache
changed the title [-]kpm restore throws an "unexpected token" error when I have a custom NuGet feed[/-][+]kpm restore fails to proceed to fallback sources when there is an error in the first listed feed[/+]on Dec 29, 2014
Activity
itsananderson commentedon May 13, 2014
I forgot to mention, but when I disable that package source,
kpm restoreworks as expectedglennc commentedon May 13, 2014
Which feed did you disable to make it work? The MyGet feed is public as of this morning, so you should be able to use it without any auth getting in the way.
itsananderson commentedon May 13, 2014
I disabled my private NuGet feed (which uses Microsoft federated auth). I didn't touch the MyGet or nuget.org feeds
Alxandr commentedon May 14, 2014
I have something of the same problem. I get
InternelServerErroron one of the feeds, and that just crashes the whole restore.Praburaj commentedon Dec 29, 2014
I can still reproduce this - For example if I have a package
Xin myproject.jsondependencies and I try to do akpm restore -s http://notexistingfeed.com/api/v2 -s https://nuget.org/api/v2(Note: This command has multiple feeds and the first one a non-existing feed). When there is an error (404/500 etc) in the first feedkpm restorefails and does not proceed to the fallback sources. For instance the same is handled differently in older nuget where it falls back.Praburaj commentedon Dec 29, 2014
Updating the title of the bug to reflect the issue.
[-]kpm restore throws an "unexpected token" error when I have a custom NuGet feed[/-][+]kpm restore fails to proceed to fallback sources when there is an error in the first listed feed[/+]Praburaj commentedon Dec 29, 2014
This issue was moved to aspnet/dnx#1018
Update for SDK 2.2.100-preview1 (#15)
#15 - Validate ping frame size limits.
Jhkim/add installancm ps1 (#15)
Using weak gchandles from native to managed
Update jquery-validation-unobtrusive (#421)
Adding ContentLength to HttpRequest
Cache walk of the culture tree when building resource name list:
Removed Moq from tests & enabled .NET Core
Fix CoreCLR test pass on Linux (fixes #15).
Remove bower, grunt, and gulp (dotnet#15)