Skip to content
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

HTTP 431 when header size over 32KB #519

Closed
eduherminio opened this issue Oct 14, 2020 · 4 comments
Closed

HTTP 431 when header size over 32KB #519

eduherminio opened this issue Oct 14, 2020 · 4 comments
Labels

Comments

@eduherminio
Copy link
Contributor

I'm getting HTTP 431 status codes when making requests to a sheyenrath/wiremock.net image with headers over 32KB.

I assumed that the issue was KestrelServerLimits.MaxRequestHeadersTotalSize, but I'm failing to prove it.

I've created a local wiremock.net image with StandAlone.NETCoreApp using a local WireMock.Net package where I'm setting options.Limits.MaxRequestHeadersTotalSize = 150_000; in both .NET Standard1.3 and .NET Standard > 1.3, but I'm still getting those 431s.

Am I missing something? Any other idea of what could be causing those 431s?

@StefH
Copy link
Collaborator

StefH commented Oct 14, 2020

Hello @eduherminio, does the same issue occur when you just run the StandAlone.NETCoreApp locally, so without docker?

@eduherminio
Copy link
Contributor Author

Yes it does @StefH.

@StefH
Copy link
Collaborator

StefH commented Oct 14, 2020

And you use a .NET Core 3.1 ?

@eduherminio
Copy link
Contributor Author

My bad, I messed up the package versions. Modifying MaxRequestHeadersTotalSize does seem to fix the issue. Thanks!
I'll follow up with a separated issue/feature request to discuss the possibility of having it modified or allowing its modification, if that's OK with you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants