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.

'Could not find an AllVersionsAPI endpoint' when using Artifactory repository

See original GitHub issue

Description

I’m experimenting with Paket for the first time. I have a small project that references a few packages on nuget.org and from a private NuGet v3 feed hosted by Artifactory 6.11.3.

Paket version: 5.216.0

Repro steps

  1. Create a small project using Paket, where the paket.dependencies is something like:
source https://privateartifactoryinstance.local/api/nuget/v3/privatefeed
source https://api.nuget.org/v3/index.json

nuget coverlet.collector 1.0.1
nuget Microsoft.NET.Test.Sdk 16.2.0
nuget MSTest.TestAdapter 1.4.0
nuget MSTest.TestFramework 1.4.0
nuget PrivatePackage 1.3.0
  1. Run paket.exe install

Expected behavior

Paket installs the packages from both the private and public NuGet feed, as available.

Actual behavior

Paket fails with the following error:

Paket failed with
-> Unable to retrieve package versions for 'Microsoft.NET.Test.Sdk'
   -- CLOSED --

   -- OPEN ----
      Microsoft.NET.Test.Sdk 16.2 (from C:\Users\Ross Gardiner\Documents\Projects\PaketInvestigation\paket.dependencies)
      PrivatePackage 1.3.0 (from C:\Users\Ross Gardiner\Documents\Projects\PaketInvestigation\paket.dependencies)
      MSTest.TestAdapter 1.4 (from C:\Users\Ross Gardiner\Documents\Projects\PaketInvestigation\paket.dependencies)
      MSTest.TestFramework 1.4 (from C:\Users\Ross Gardiner\Documents\Projects\PaketInvestigation\paket.dependencies)
      coverlet.collector 1.0.1 (from C:\Users\Ross Gardiner\Documents\Projects\PaketInvestigation\paket.dependencies)
-> could not find an AllVersionsAPI endpoint for https://privateartifactoryinstance.local/api/nuget/v3/privatefeed

Known workarounds

No known workaround.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
GitClickOkcommented, Jul 27, 2022

I was evaluating Paket with great hopes when I stumbled on this problem following the “Converting from Nuget” guide… If it helps, I found this open issue in jfrog JIRA ticket. Maybe someday they will take a look: https://www.jfrog.com/jira/browse/RTFACT-20469

0reactions
MarioVolareviccommented, Sep 20, 2021

Is there any progress on this issue, I now tried to use this example:

source https://myCompany.com/artifactory/api/nuget/v3/cached-nuget.org

nuget FAKE ~> 5.0

on the latest version of paket, but it still fails: -> could not find an AllVersionsAPI endpoint for https://myCompany.com/artifactory/api/nuget/v3/cached-nuget.org

Read more comments on GitHub >

github_iconTop Results From Across the Web

[RTFACT-20469] Support v3 endpoint to work with "paket ...
Problem statement: Unable to resolve the NuGet packages via Artifactory by using Nuget v3 endpoint to work with "paket" dependency manager.
Read more >
[#RTFACT-13009] artifactory does not find scope packages ...
Recently we need some scoped package from registry.npmjs.org because are transitive dependencies and we run into the issue where virtual repository seems not...
Read more >
[RTFACT-17174] Visual Studios Doesn't show all packages ...
If you have several packages with several versions in a nuget repo, Visual studios 2017 won't show all the packages unless "Include Prereleases"...
Read more >
[#TFSAP-7] Accessing endpoints from releases doesn't work
We've been using the artifactory downloader task in vsts with no issues until recently and now when using that task within a release...
Read more >
[#RTFACT-19421] Nuget remote can incorrectly cache V2 ...
Trying to define remote repo with Nuget V3 API against another Artifactory (documentation here), while using non-V3 Feed URL endpoint, will ...
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