Kong / charts

Helm chart for Kong
Apache License 2.0
239 stars 473 forks source link

request-size-limiting http2 requests are not supported without content-length header #1015

Closed tomcatu closed 4 months ago

tomcatu commented 4 months ago

Current Behavior request-size-limiting does not support http2 kong version 3.6 proxy_listen 0.0.0.0:8143 ssl reuseport backlog=16384 proxy_protocol http2 error 2024/02/21 08:49:24 [debug] 1279#0: 101 [lua] handler.lua:84: [otel] exporter sent 1 traces to in 1.0390000343323 seconds 2024/02/21 08:49:24 [debug] 1279#0: 101 [kong] queue.lua:185 [opentelemetry plugin 1dab527e-c428-4687-b7b6-da0b82dfe445] queue 1dab527e-c428-4687-b7b6-da0b82dfe445: handler processed 1 entries successfully 2024/02/21 08:49:24 [debug] 1279#0: 101 [kong] queue.lua:185 [opentelemetry plugin 1dab527e-c428-4687-b7b6-da0b82dfe445] queue 1dab527e-c428-4687-b7b6-da0b82dfe445: processing queue 2024/02/21 08:49:24 [debug] 1279#0: 101 [kong] queue.lua:185 [opentelemetry plugin 1dab527e-c428-4687-b7b6-da0b82dfe445] queue 1dab527e-c428-4687-b7b6-da0b82dfe445: passing 1 entries to handler 2024/02/21 08:49:24 [debug] 1279#0: 101 [lua] handler.lua:84: [otel] exporter sent 1 traces to in 0.30699992179871 seconds 2024/02/21 08:49:24 [debug] 1279#0: 101 [kong] queue.lua:185 [opentelemetry plugin 1dab527e-c428-4687-b7b6-da0b82dfe445] queue 1dab527e-c428-4687-b7b6-da0b82dfe445: handler processed 1 entries successfully 2024/02/21 08:49:24 [debug] 1279#0: 101 [kong] queue.lua:185 [opentelemetry plugin 1dab527e-c428-4687-b7b6-da0b82dfe445] queue 1dab527e-c428-4687-b7b6-da0b82dfe445: processing queue 2024/02/21 08:49:24 [debug] 1279#0: 101 [kong] queue.lua:185 [opentelemetry plugin 1dab527e-c428-4687-b7b6-da0b82dfe445] queue 1dab527e-c428-4687-b7b6-da0b82dfe445: passing 1 entries to handler 2024/02/21 08:49:24 [debug] 1279#0: 2737 [lua] consistent_hashing.lua:136: getPeer(): trying to get peer with value to hash: [60ecf6f85b92fc1e8a29290f] 2024/02/21 08:49:24 [debug] 1279#0: 2737 [lua] init.lua:1362: balancer(): setting address (try 1): 10.118.169.23:8088 2024/02/21 08:49:24 [debug] 1279#0: 2737 [lua] init.lua:1395: balancer(): enabled connection keepalive (pool=10.118.169.23|8088, pool_size=512, idle_timeout=60, max_requests=10000) 2024/02/21 08:49:24 [debug] 1279#0: 101 [lua] handler.lua:84: [otel] exporter sent 1 traces to in 0.30200004577637 seconds 2024/02/21 08:49:24 [debug] 1279#0: 101 [kong] queue.lua:185 [opentelemetry plugin 1dab527e-c428-4687-b7b6-da0b82dfe445] queue 1dab527e-c428-4687-b7b6-da0b82dfe445: handler processed 1 entries successfully 2024/02/21 08:49:24 [debug] 1279#0: 101 [kong] queue.lua:185 [opentelemetry plugin 1dab527e-c428-4687-b7b6-da0b82dfe445] queue 1dab527e-c428-4687-b7b6-da0b82dfe445: processing queue 2024/02/21 08:49:24 [debug] 1279#0: 101 [kong] queue.lua:185 [opentelemetry plugin 1dab527e-c428-4687-b7b6-da0b82dfe445] queue 1dab527e-c428-4687-b7b6-da0b82dfe445: passing 1 entries to handler 2024/02/21 08:49:25 [debug] 1278#0: 2739 [lua] init.lua:1362: balancer(): setting address (try 1): 10.118.169.32:3000 2024/02/21 08:49:25 [debug] 1278#0: 2739 [lua] init.lua:1395: balancer(): enabled connection keepalive (pool=10.118.169.32|3000, pool_size=512, idle_timeout=60, max_requests=10000) 2024/02/21 08:49:25 [debug] 1278#0: 2740 [lua] init.lua:1362: balancer(): setting address (try 1): 47.75.19.2:80 2024/02/21 08:49:25 [debug] 1278#0: 2740 [lua] init.lua:1395: balancer(): enabled connection keepalive (pool=47.75.19.2|80, pool_size=512, idle_timeout=60, max_requests=10000) 2024/02/21 08:49:25 [debug] 1278#0: 2740 [lua] init.lua:1362: balancer(): setting address (try 1): 47.75.19.2:80 2024/02/21 08:49:25 [debug] 1278#0: 2740 [lua] init.lua:1395: balancer(): enabled connection keepalive (pool=47.75.19.2|80, pool_size=512, idle_timeout=60, max_requests=10000) 2024/02/21 08:49:25 [error] 1278#0: 2740 [kong] init.lua:405 [request-size-limiting] /usr/local/share/lua/5.1/kong/pdk/request.lua:710: http2 requests are not supported without content-length header, request_id: "b96541373a593c1eca3b652d3678a268" 2024/02/21 08:49:25 [debug] 1278#0: 2740 [lua] handler.lua:168: [otel] total spans in current request: 7 2024/02/21 08:49:25 [debug] 1278#0: 2740 [lua] instrumentation.lua:383: runloop_log_after(): [tracing] collected 7 spans: Span #1 name=kong duration=10.455296ms attributes={"net.peer.ip":"10.118.169.1","http.status_code":500"kong.request.id":"b96541373a593c1eca3b652d3678a268","http.method":"GET","http.flavor":"2.0","http.route":"/"} Span #2 name=kong.rewrite.plugin.common duration=0.024832ms Span #3 name=kong.router duration=2.858240ms Span #4 name=kong.access.plugin.request-size-limiting duration=2.341632ms Span #5 name=kong.header_filter.plugin.response-transformer duration=1.631232ms Span #6 name=kong.header_filter.plugin.common duration=0.722688ms Span #7 name=kong.header_filter.plugin.opentelemetry duration=0.004608ms remote_addr=[47.76.81.204] http_x_forward=[-] time=[21/Feb/2024:08:49:25 +0000] request=[GET /rest/v1/logo/?domain_id=5a4b9c8f21c2a233713d4f5b HTTP/2.0] request_byte=[209] status=[500] response_byte=[1447] elapsed=[0.010] upstream_connect_time=[-] upstream_header_time=[-] upstream_response_time=[-] http_accept=[application/json, text/plain, /|gzip, deflate, br|en,zh-CN;q=0.9,zh;q=0.8] traceparent=[00-e0f3bbcd18178241f6aa3fcfb8df530f-224ce6c47d9b3568-01] 2024/02/21 08:49:25 [debug] 1278#0: 2740 [lua] init.lua:1362: balancer(): setting address (try 1): 10.118.169.23:8088 2024/02/21 08:49:25 [debug] 1278#0: 2740 [lua] init.lua:1395: balancer(): enabled connection keepalive (pool=10.118.169.23|8088, pool_size=512, idle_timeout=60, max_requests=10000) 2024/02/21 08:49:25 [debug] 1278#0: 2740 [lua] handler.lua:168: [otel] total spans in current request: 7 2024/02/21 08:49:25 [debug] 1278#0: 2740 [lua] instrumentation.lua:383: runloop_log_after(): [tracing] collected 7 spans: Span #1 name=kong duration=5.509376ms attributes={"net.peer.ip":"10.118.169.1","http.status_code":500,"http.scheme":"https","kong.request.id":"1e23c22df4b393518f57340f11078d1c","http.method":"GET","http.flavor":"2.0","http.route":"/"} Span #2 name=kong.rewrite.plugin.common duration=0.024320ms Span #3 name=kong.router duration=0.169216ms Span #4 name=kong.access.plugin.request-size-limiting duration=0.132096ms Span #5 name=kong.header_filter.plugin.response-transformer duration=0.046080ms Span #6 name=kong.header_filter.plugin.common duration=0.240640ms Span #7 name=kong.header_filter.plugin.opentelemetry duration=0.007168ms 2024/02/21 08:49:25 [error] 1278#0: 2740 [kong] init.lua:405 [request-size-limiting] /usr/local/share/lua/5.1/kong/pdk/request.lua:710: http2 requests are not supported without content-length header server: kong, request: "GET /rest/ HTTP/2.0", request_id: "57f5b41f7010890cead4f172e1f8d75c" 2024/02/21 08:49:25 [debug] 1278#0: 2740 [lua] handler.lua:168: [otel] total spans in current request: 7 2024/02/21 08:49:25 [debug] 1278#0: *2740 [lua] instrumentation.lua:383: runloop_log_after(): [tracing] collected 7 spans: Span #1 name=kong duration=11.509504ms attributes={"net.peer.ip":"10.118.169.1","http.status_code":500,"http.host":"kong.request.id":"57f5b41f7010890cead4f172e1f8d75c","http.method":"GET","http.flavor":"2.0","http.route":"/"}

oowl commented 4 months ago

will be fixed in https://github.com/Kong/kong/pull/12658