apache / apisix

The Cloud-Native API Gateway
https://apisix.apache.org/blog/
Apache License 2.0
14.44k stars 2.51k forks source link

bug: 400 Request Header Or Cookie Too Large #11605

Open Mararesliu opened 3 weeks ago

Mararesliu commented 3 weeks ago

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

kayx23 commented 3 weeks ago

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