-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SourceRepository.GetResource throws if type is not an exact match #12455
Comments
I tried to reproduce this issue following below steps.
|
Hmm, I did use Chocolatey as the client, but I do believe NuGet is the offender here. Can you try adding |
I am able to reproduce the same error following below steps.
When I added
I think |
Team Triage: @Sainan would you be willing to contribute a fix for this? |
I don't think I would be able to. |
@jeffkl I was able to reproduce this issue and I'm interested in contributing so I can get some practice for working in large code bases. Is this a good candidate for a community bug fix? |
@atamagaii yes absolutely! Let us know if you need help. |
Fixed in NuGet/NuGet.Client#5107. The Fixes statement wasn't on the same line as the issue so it didn't auto close it. |
NuGet Product Used
Other/NA
Product Version
Chocolatey v2.0.0-alpha-20230124
Worked before?
No response
Impact
It bothers me. A fix would be nice
Repro Steps & Context
As per the NuGet V3 API specification,
RegistrationsBaseUrl
,RegistrationsBaseUrl/3.0.0-beta
andRegistrationsBaseUrl/3.0.0-rc
are all aliases for the same@type
. However, if the server provides only one of them (e.g.,RegistrationsBaseUrl
), the client throws an ArgumentNullException.Verbose Logs
The text was updated successfully, but these errors were encountered: