-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Added request size limit value to exception message in case of request body large exception for Kestrel #29459
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
Conversation
…t body large exception for kestral. Fixes #4773
|
@MCCshreyas do you think you'll have time to come back to this? If not, no worries. |
|
Hi @halter73, Sorry for the delay! Thanks! |
|
@davidfowl Can you please tell me the command via which the resource method gets autogenerated with parameter? I have updated the resource string with the parameter, now I need to generate its corresponding method! Thanks! |
@dougbu can you help out here? Is there a doc on how you generate resx? I recall it was build.cmd resx but I don't think there's a build in this solution folder anymore |
See https://github.com/dotnet/aspnetcore/blob/main/docs/BuildFromSource.md#resx-files Note the generated files aren't usually checked in and the resources are compiled during builds. |
|
@MCCshreyas are you going to finish this? |
|
@MCCshreyas are you going to finish this change? |
|
Yeah, this weekend. |
|
@dougbu Not sure why I am getting this error. Am running this command from the same folder where the |
|
Your command looks wrong. Do this: You have typo: |
|
Thanks, @davidfowl, It worked. Seems like a typo in docs! Lol. I will get that fixed that as well! |
…method. 2. Changed the callsite, so that we can pass maxRequestBodySize to exception method.
|
|
@davidfowl, I was looking for example, on how people have passed So to pass the instance of Thanks! |
|
InvariantCulture is what you want |
1. Passed to ToString() while converting from `long?` to `string`.
…spnetcore into kestral-message-fix
halter73
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
@MCCshreyas I also saw your reddit post about minimal hosting. Thanks for putting the word out! |
|
No worries, @halter73. Just putting some initial awareness about new features! 😅😅 |

Fixes #4773