Open jomonson opened 4 years ago
Might be related to these: https://github.com/rynowak/opulence/issues/4 https://github.com/NuGet/Home/issues/8580
@jomonson
Are you still facing this problem?
GitHub requires that the repositoryId
element is specified in order to accept a pushed package.
Is that set-up correctly?
Thanks.
Hello @nkolev92 I am having this exact problem but don't have a RepositoryId element. What does that refer to? Thanks
Hey @ck
I'm not sure I understand the question :)
GH requires you to have a repository element in https://www.nuget.org/packages/nuget.packaging.
The url should be repo you are pushing the package to.
@nkolev92 Yes the RepositoryUrl property is filled. But you're talking about a property named repositoryId. Which may be the same thing? Or you could mean the PackageId property.
In any case if you run the command enough times (in-between 4-20) the package will eventually push (via command line). Maybe you get lucky through the pipeline but the error is the same.
Something seems to be broken inside either Githubs hosting of the nuget feed or the nuget service prematurely killing the request.
Just to be clear, the issue I'm having has nothing to do with the Grpc.AspNetCore. I'm not referencing that but am getting the exact same error message on the push.
NuGet product used (dotnet.exe): dotnet.exe --version (3.1.100):
OS version (Ubuntu WSL subsystem 18.04LTS):
Worked before? If so, with which NuGet version: Works on Windows using NuGet.exe
Detailed repro steps so we can see the same problem
have a sample .proto file. have a nuget.config file:
run:
dotnet pack --configuration Release
dotnet nuget push bin/Release/SomeId.1.0.3.nupkg -s githubThe above fails. The above works only if removing
<PackageReference Include="Grpc.AspNetCore" Version="2.23.2"/>
from the .csproj or if specifying GRPC not to build the sources.The resulting .nupkg files differ from 4kb to 140kb. Looking in Wireshark, I see that the DNS requests differ in order when executing the working version versus when executing the non-working version. The working version executes A and then AAAA to nuget.pkg.github.com and is responded with first A and then AAAA. The non-working version executes A and then AAAA to the same url but gets first the AAAA and then the A responses. I don't know if that's related but the later exchange of packets is done on different ips.
The resulting logs for the failing version is as follows:
Verbose Logs
dotnet nuget push does not contain a verbosity diag flag. error: Unrecognized option '--verbosity'
tried using -n false and it didn't help