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 error 431 request header fields too large #1114

Closed
kingsleyh opened this issue May 31, 2024 · 2 comments
Closed

http error 431 request header fields too large #1114

kingsleyh opened this issue May 31, 2024 · 2 comments

Comments

@kingsleyh
Copy link

Hi

my http4k endpoint is receiving a header with an id token from keycloak which is bigger than the default max http requests size.

I'm using Jetty.

I believe the default size for Jetty is 8kB

is there an easy way to increase the size when configuring Jetty as the server?

@kingsleyh
Copy link
Author

It's intermittent so I think perhaps some issue with keycloak

@daviddenton
Copy link
Member

You can do this, but not in http4k code - you're going to have to provide your own ServerConfig object with the correct settings for your jetty instance.

We purposefully don't do any custom options for server backends, so am afraid this is a won't fix. 🙃

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

No branches or pull requests

2 participants