-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
help request: 400 Bad Request Request Header Or Cookie Too Large #12001
Comments
Hi @lihaishi 🙂 I've found some similar issue: search results Have you tried setting If that doesn't work, please provide enough details (or a Minimal Reproducible Example) to investigate further: it's difficult to infer what could be the cause, without knowing how you deploy APISIX and/or how you configure the routes 😄 |
Is it because the identity authentication service returned too many fields? May I ask what content this session is based on, or what information do you need me to provide to help me locate the problem more quickly |
I think the problem is not related to APISIX, but rather to OpenResty/NGiNX default configuration: since there's no direct reference, in APISIX source code, to that "Request Header Or Cookie Too Large", I'm inclined to believe it's due to something else. Upon searching, I've found the following references: To solve this you can try increasing the You can do that by editing your APISIX configuration file (located at nginx_config:
http_configuration_snippet: |
large_client_header_buffers 4 32k; You can have a look at this example config file. Let me know if that solved the issue 🙂 |
@mikyll
|
Description
When I requested, it prompted that the cookie was too long. What is the reason for the session callback after logging in, and what is the encryption method? After entering my account password, it prompted me with this error message.
Environment
apisix version
):3.0.0uname -a
):openresty -V
ornginx -V
):curl http://127.0.0.1:9090/v1/server_info
):luarocks --version
):The text was updated successfully, but these errors were encountered: