Error, "Failed to fetch results from V2 feed", When downloading from group repo using nuget.exe

When I tried to download a package from group repo using nuget.exe, I failed with the error saying “Failed to fetch results from V2 feed”. When I download from hosted repo, I don’t have any issue.

Detail message I see is as follows.

GET https://sparkbinsand.collaboration.agilent.com/repository/SPSD-PLAJSW-G/FindPackagesById()?id=‘ICPMassHunterGoldMasterImage’&semVerLevel=2.0.0
BadGateway https://sparkbinsand.collaboration.agilent.com/repository/SPSD-PLAJSW-G/FindPackagesById()?id=‘ICPMassHunterGoldMasterImage’&semVerLevel=2.0.0 937ms
An error occurred while retrieving package metadata for ‘ICPMassHunterGoldMasterImage’ from source ‘sandbin’.
Failed to fetch results from V2 feed at ‘https://sparkbinsand.collaboration.agilent.com/repository/SPSD-PLAJSW-G/FindPackagesById()?id=‘ICPMassHunterGoldMasterImage’&semVerLevel=2.0.0’ with following message : Response status code does not indicate success: 502 (The group repository SPSD-PLAJSW-G contains a proxy with different nuget version).
Response status code does not indicate success: 502 (The group repository SPSD-PLAJSW-G contains a proxy with different nuget version).

Nuget version that I am using is NuGet Version: 5.7.0.6726.

We have both Nexus PRO and OSS environments, and this issue takes place only on OSS environment.

Thanks for your help in advance.
Chang

This sounds like you have a group repository which is mixing v2 and v3 Nuget repositories.

Thanks for your response. Can you please help how I can check version of Nuget from Nexus server or group repository? It only shows “Nuget” without version.

Thanks,
Chang

Nuget V2 is implied by it’s members. So you cannot mix&match NugetV2 and NugetV3 members in one group repository. Note hosted repositories are NugetV2 and NugetV3 at the same time (if you end the Repo ULR with index.json > then they are V3). However a group you cannot see easily if a group is Nuget V2 or Nuget V3 from UI. Just reach REPO_URL+index.json, if that returns some json, it’s V3.

Usually NugetV2 can be so REALLY slow, errors are very common as query times out as it might take 45+seconds, my take would be to use only NugetV3 and only use group repositories with just 2-3 members at maximum. Best is not to use group repositories for fast query speed.