You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to push to the baget server for packages over 2GB. Packages under 2GB are uploaded, but for packages over 2GB, the error "500 (Internal Server Error)" appears.
The way I'm using the baget is in a docker. So I took an error log of the docker and confirmed that it was an error, "System.IO.InvalidDataException: Multipart body length limit 2147483647 exceeded." Can't I upload more than 2GB of packages?
Please let me know if there is a way to set the related config.
A clear and concise description of what you expected to happen.
Screenshots
nuget push error log
my baget server error log
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
woosuk-yang
changed the title
There is a limit to the size of the nugget package, so push is not possible.
There is a 2GB limit to the size of the nugget package, so push is not possible.
May 13, 2024
the max body length is set to 2147483647 which is approximately 2.14 GB. When processing a form which is larger than this value a InvalidDataException is thrown as shown by the docs.
The ideal fix would be to accept this value from the appsettings.json file, but a temporary fix would be to increase this value to a number greater than int.MaxValue (if you have a fork of this repo).
In terms of better error handling, I think it would make sense to catch the InvalidDataException in the controller and then return a bad request indicating that the max size of NuGet packages in currently int.MaxValue;
Describe the bug
I am trying to push to the baget server for packages over 2GB. Packages under 2GB are uploaded, but for packages over 2GB, the error "500 (Internal Server Error)" appears.
The way I'm using the baget is in a docker. So I took an error log of the docker and confirmed that it was an error, "System.IO.InvalidDataException: Multipart body length limit 2147483647 exceeded." Can't I upload more than 2GB of packages?
Please let me know if there is a way to set the related config.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
nuget push error log
my baget server error log
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: