apisix icon indicating copy to clipboard operation
apisix copied to clipboard

bug: 400 Request Header Or Cookie Too Large

Open Mararesliu opened this issue 1 year ago • 1 comments

Current Behavior

I request domain to apisix got

HTTP/1.1 400 Bad Request Content-Type: text/html; charset=utf-8 Content-Length: 305 Connection: keep-alive Date: Thu, 26 Sep 2024 06:45:27 GMT Server: APISIX/3.10.0

400 Request Header Or Cookie Too Large

400 Bad Request

Request Header Or Cookie Too Large

openresty

Powered by APISIX.

If i request localhost address is success.

Expected Behavior

No response

Error Logs

No response

Steps to Reproduce

use debian 11

wget -O - http://repos.apiseven.com/pubkey.gpg | sudo apt-key add - echo "deb http://repos.apiseven.com/packages/debian bullseye main" | sudo tee /etc/apt/sources.list.d/apisix.list

build docker image

Environment

  • APISIX version (run apisix version): 3.10
  • Operating system (run uname -a): debian 11
  • OpenResty / Nginx version (run openresty -V or nginx -V): 1.25.3.2
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):

Mararesliu avatar Sep 26 '24 06:09 Mararesliu

If you by chance are using dockerized APISIX in WSL2, try setting "pass_host" to "node".

kayx23 avatar Sep 26 '24 07:09 kayx23

Hello, may I ask how you solved this problem? I have also encountered the same problem

lihaishi avatar Feb 27 '25 03:02 lihaishi

I will close this issue first. Please provide specific configuration examples, detailed operation steps, and how to reproduce the problem. If there is still a problem, please open it again.

Baoyuantop avatar May 13 '25 04:05 Baoyuantop