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

keycloak.exceptions.KeycloakGetError: 431: b'' error due to exceeeded header size #451

Open
vipul43 opened this issue May 31, 2023 · 3 comments

Comments

@vipul43
Copy link

vipul43 commented May 31, 2023

  • Reason

    • Large number of realms and realm config in kecycloak server
    • resulting in large headers in ConnectionManager
    • requests returning with 431 for all GET and POST requests
  • Solution

    • deleting a few realms decreased the header size and requests were successful

But there should be better handling??

@jcputney
Copy link

I am running into the same issue. If the service account I'm using has the admin role, I started running into this issue after creating several realms, because the account is inheriting all of the client roles for the <realm_name>-realm clients.

@vipul43
Copy link
Author

vipul43 commented Oct 10, 2023

Try disabling full scope allowed from the client settings of the client you use for access. This worked for me, reduced the headers. Enabling full scope will add too much header data, which might not be required for your case.

image

@jcputney
Copy link

jcputney commented Jan 6, 2024

@vipul43 thank you! That one has been bugging me for a while!

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