[Moved from https://github.com/NuGet/NuGetGallery/issues/1561
reported by github user https://github.com/shayke]
From the client code it looks like the following:
GetRemotePackageIdCommand.cs
public override string ApiEndpointPath { get { return "api/v2/package-ids"; } }
This is really bad as this feature cannot be used with any custom NuGet feed as this URL can be different.
We have implemented our own NuGet feed, and now when clients request for auto completion they are getting 404 because the actual request is:
http://host:port/api/v2/package-ids
But the feed is located at a different path at the endpoint.
NuGet client should actually use the URL defined in the Packages Sources as it does with any other request.