Request header or cookie too large (docker with port-forwarding)

I setup Kong 2.1.0 using docker. Kong proxy listens on 8080 and 8443 and on host Ubuntu machine I setup iptables to forward 80 and 443 to 8080 and 8443 respectively. I configured the mock service as defined in kong docs below

When i make a simple request on port 80 or 443, I am getting following response

HTTP/1.1 494
Connection: keep-alive
Content-Length: 35
Content-Type: text/plain; charset=utf-8
Date: Fri, 24 Jul 2020 19:53:07 GMT
Server: kong/2.1.0
Via: kong/2.1.0
X-Kong-Proxy-Latency: 21
X-Kong-Response-Latency: 0

Also, in kong logs it appears that it received around 500+ requests. Any help is really appreciated

Thanks in advance

How do you configure your mock service? How do you make the request to your service? More details would be helpful to look into the problem.


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ