Skip to content

Push nuget package to Github.com: The response ended prematurely.An error occurred while sending the request #24915

Discussion options

You must be logged in to vote

Hi @PieterjanDeClippel,

This appears to be an issue with Transfer-Encoding: chunked HTTP requests. I tried tweaking the NuGet source to not use chunked encoding and the push works every time!

GitHub

jcansdale-test/NuGet.Client

Client Tools for NuGet - including Visual Studio extensions, command line tools, and msbuild support. (Open issues on https://github.com/nuget/home/issues) - jcansdale-test/NuGet.Client

Bizarrely it does work with nuget.exe on the .NET framework, which also claims to use Transfer-Encoding: chunked. My hunch is that this sends the payload as a single chunk.

Could you try modifying your workflow to do this:

    - name: PushGithub
      run: nuget.exe push *.nupk…

Replies: 15 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Packages Host your dependencies, libraries, and production-ready code, right from your repository Product Feedback
6 participants