Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load resources #1259

Closed
vilinski opened this issue Nov 25, 2015 · 4 comments
Closed

Could not load resources #1259

vilinski opened this issue Nov 25, 2015 · 4 comments

Comments

@vilinski
Copy link

No clue how to fix it or whether it is a proxy problem.

From cmd

paket install
Paket version 2.27.14.0
Resolving packages for group Main:
Paket failed with:
Could not load resources from https://api.nuget.org/v3/index.json

or from atom: if I send following code to FSI

Paket.Dependencies.Install """
    source https://nuget.org/api/v2
    nuget FSharp.Data
    nuget Suave
""";;

also tried source http://api.nuget.org/v3/index.json and source https://api.nuget.org/v3/index.json

> > > System.Exception: Could not find versions for package Suave in any of the sources in ["http://api.nuget.org/v2"].
   bei [email protected](String message)
   bei Paket.NuGetV2.GetVersions(String root, IEnumerable`1 sources, PackageName packageName)
   bei [email protected](ResolverStrategy resolverStrategy, GroupName groupName, PackageName packageName)
   bei Paket.UpdateProcess.getSortedAndCachedVersionsF@14(FSharpFunc`2 getSortedVersionsF, Dictionary`2 allVersions, FSharpList`1 sources, ResolverStrategy resolverStrategy, GroupName groupName, PackageName packageName)
   bei [email protected](IEnumerable`1& next)
   bei Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.MoveNextImpl()
   bei Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.System-Collections-IEnumerator-MoveNext()
   bei Microsoft.FSharp.Collections.SeqModule.oneStepTo@1402[T](IEnumerable`1 source, List`1 prefix, FSharpRef`1 enumeratorR, Int32 i)
   bei Microsoft.FSharp.Collections.SeqModule.f@4728-2[T](IEnumerable`1 source, List`1 prefix, FSharpRef`1 enumeratorR, Int32 i, Unit unitVar0)
   bei [email protected](Int32 i)
   bei [email protected](b& )
   bei Microsoft.FSharp.Collections.IEnumerator.MapEnumerator`1.System-Collections-IEnumerator-MoveNext()
   bei Microsoft.FSharp.Collections.IEnumerator.next@224[T](FSharpFunc`2 f, IEnumerator`1 e, FSharpRef`1 started, Unit unitVar0)
   bei Microsoft.FSharp.Collections.IEnumerator.filter@219.System-Collections-IEnumerator-MoveNext()
   bei Microsoft.FSharp.Collections.SeqModule.oneStepTo@1402[T](IEnumerable`1 source, List`1 prefix, FSharpRef`1 enumeratorR, Int32 i)
   bei Microsoft.FSharp.Collections.SeqModule.f@4728-2[T](IEnumerable`1 source, List`1 prefix, FSharpRef`1 enumeratorR, Int32 i, Unit unitVar0)
   bei [email protected](Int32 i)
   bei [email protected](b& )
   bei Microsoft.FSharp.Collections.IEnumerator.MapEnumerator`1.System-Collections-IEnumerator-MoveNext()
   bei Microsoft.FSharp.Collections.SeqModule.IsEmpty[T](IEnumerable`1 source)
   bei Paket.PackageResolver.step$cont@310[a](UpdateMode updateMode, FSharpOption`1 strategy, a sources, GroupName groupName, FSharpFunc`2 getVersionsF, FSharpSet`1 openRequirements, PackageRequirement currentRequirement, FSharpRef`1 availableVersions, FSharpRef`1 compatibleVersions, FSharpRef`1 globalOverride, Unit unitVar)
   bei Paket.PackageResolver.step@263[a](UpdateMode updateMode, FSharpOption`1 strategy, a sources, GroupName groupName, FSharpList`1 globalFrameworkRestrictions, FSharpFunc`2 getVersionsF, FSharpFunc`2 getPackageDetailsF, FSharpRef`1 lastConflictReported, FSharpOption`1 packageFilter, IDictionary`2 rootSettings, Dictionary`2 exploredPackages, Dictionary`2 conflictHistory, HashSet`1 knownConflicts, FSharpMap`2 filteredVersions, FSharpMap`2 currentResolution, FSharpSet`1 closedRequirements, FSharpSet`1 openRequirements)
   bei Paket.PackageResolver.Resolve[a](GroupName groupName, a sources, FSharpFunc`2 getVersionsF, FSharpFunc`2 getPackageDetailsF, FSharpOption`1 strategy, FSharpList`1 globalFrameworkRestrictions, FSharpSet`1 rootDependencies, UpdateMode updateMode)
   bei <StartupCode$Paket-Core>[email protected](GroupName groupName, b _arg1)
   bei Microsoft.FSharp.Collections.MapTreeModule.mapiOpt[a,b,c](FSharpFunc`3 f, MapTree`2 m)
   bei Microsoft.FSharp.Collections.FSharpMap`2.Map[b](FSharpFunc`2 f)
   bei Microsoft.FSharp.Collections.MapModule.Map[TKey,T,TResult](FSharpFunc`2 mapping, FSharpMap`2 table)
   bei Paket.UpdateProcess.selectiveUpdate(Boolean force, FSharpFunc`2 getSha1, FSharpFunc`2 getSortedVersionsF, FSharpFunc`2 getPackageDetailsF, LockFile lockFile, DependenciesFile dependenciesFile, UpdateMode updateMode, SemVerUpdateMode semVerUpdateMode)
   bei Paket.UpdateProcess.SelectiveUpdate(DependenciesFile dependenciesFile, UpdateMode updateMode, SemVerUpdateMode semVerUpdateMode, Boolean force)
   bei Paket.UpdateProcess.SmartInstall(DependenciesFile dependenciesFile, UpdateMode updateMode, UpdaterOptions options)
   bei <StartupCode$Paket-Core>[email protected](Unit unitVar0)
   bei Paket.Utils.RunInLockedAccessMode[a](String rootFolder, FSharpFunc`2 action)
   bei Paket.Dependencies.Install(InstallerOptions options)
   bei Paket.Dependencies.Install(Boolean force, Boolean hard, Boolean withBindingRedirects, Boolean createNewBindingFiles, Boolean onlyReferenced, SemVerUpdateMode semVerUpdateMode)
   bei <StartupCode$FSI_0004>.$FSI_0004.main@()
Stopped due to error
@forki
Copy link
Member

forki commented Nov 26, 2015

Sounds like an issue with v3 feeds.
Will try to reproduce tomorrow

/cc @xavierzwirtz

forki added a commit that referenced this issue Nov 27, 2015
@forki
Copy link
Member

forki commented Nov 27, 2015

mhm. integration test in b5f5d53 seems to work.

@xavierzwirtz
Copy link
Contributor

Works just fine for me as well. If you roll back to version 2.23.0 of paket, does it work? It sounds like you are using a proxy, I may have broken proxy support.

@vilinski
Copy link
Author

Lost a half of today to configure my §&%$ corporate proxy for all kinds of Apps. Now cannot reproduce the issue anymore, sorry.
I suspected proxy also, because VS was asking for credentials as I managed my NuGet packages.

P.S. For all behind corporate proxy - almost all windows programs are working good with cntlm.

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

No branches or pull requests

3 participants