Skip to content

Does not work with Nexus NuGet V3 feeds #229

@TheCakeIsNaOH

Description

@TheCakeIsNaOH

When I try to use rocolatey with a Sonatype Nexus v3 feed, it does not work.

It tries to query http://<domain>/repository/<repo>/v3/query/0/?prerelease=false&q=packageid:<package>, which returns a 404 (both in Rocolatey and in browser)
If I go to http://<domain>/repository/<repo>/v3/query/0?prerelease=false&q=packageid:<package> in a browser, it works and return the expected json.

So Nexus does not like the extra slash at the end of the url path before the url query. Nuget.org works with either one.
As far as I can tell, the official API docs do not have the slash: https://learn.microsoft.com/en-us/nuget/api/search-query-service-resource

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions