question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Paket > 5.4.8 does not work with Klondike 2.0.0 anymore

See original GitHub issue

Description

I use two NuGet remotes: an internal NuGet server running Klondike 2.0.0 and nuget.org. Paket versions between 5.5.0 and the latest (5.5.3 currently; I can’t get 5.6.0; was it unreleased?) When I went to run

paket outdated

or paket remove... then I get an error like:

Paket failed with:
-> Unable to retrieve package versions for 'Foo'
-> Could not find versions for package Foo on any of ["https://www.nuget.org/api/v2"; "http://nuget.internal.local/api/odata"].
        -  Source 'https://www.nuget.org/api/v2' yielded (0): []
                -  Request 'https://api.nuget.org/v3-flatcontainer/Foo/index.json?semVerLevel=2.0.0' finished with: []
                -  Request 'https://www.nuget.org/api/v2/FindPackagesById()?semVerLevel=2.0.0&id='Foo'' was skipped because 'ProtocolNotCached'
                -  Request 'https://www.nuget.org/api/v2/Packages()?semVerLevel=2.0.0&$filter=tolower(Id) eq 'foo'' was skipped because 'ProtocolNotCached'
        -  Source 'http://nuget.internal.local/api/odata' yielded no results
                -  Request 'http://nuget.internal.local/api/odata/FindPackagesById()?semVerLevel=2.0.0&id='Foo'' was skipped because 'ProtocolNotCached'
                -  Request 'http://nuget.internal.local/api/odata/Packages()?semVerLevel=2.0.0&$filter=tolower(Id) eq 'foo'' finished with error
                -> Could not retrieve data from 'http://nuget.internal.local/api/odata/Packages%28%29?semVerLevel=2.0.0&$filter=tolower%28Id%29%20eq%20%27foo%27&$skip=20'
                -> WebException: The remote server returned an error: (404) Not Found.

where Foo is the name of one of my internal packages and nuget.internal.local is the name of my Klondike server (actual names differ; these are replaced). This prevents me from using Paket for anything that requires interrogating versions.

When I manually run a GET against http://nuget.internal.local/api/odata/FindPackagesById()?semVerLevel=2.0.0&id='Foo', I get results, as always. The Klondike server is up; I can browse it.

I have been using Paket with this internal NuGet server for 15 months without any problems, and when I revert to Paket 5.4.8, the issue goes away.

Expected behavior

Still be able to use packages on the Klondike 2.0.0 server.

Actual behavior

Paket errors out on practically anything but restore.

Known workarounds

Revert back to Paket 5.4.8.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:83 (83 by maintainers)

github_iconTop GitHub Comments

1reaction
forkicommented, Jul 10, 2017

I think it’s https://github.com/fsprojects/Paket/pull/2485 - can you please check these urls?

0reactions
bhugotcommented, Jul 14, 2017

Good job guys

Read more comments on GitHub >

github_iconTop Results From Across the Web

release-notes
A dependency manager for .NET with support for NuGet packages and git repositories.
Read more >
homebrew-core
This is a listing of all packages available from the core tap via the Homebrew package manager for macOS and Linux. /api/formula.json (JSON...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found