openresty / lua-nginx-module

Embed the Power of Lua into NGINX HTTP servers
https://openresty.org/
11.33k stars 2.03k forks source link

huge size response via ngx.location.capture has been truncated #2298

Open tweyseo opened 8 months ago

tweyseo commented 8 months ago

the size of this response is more than 80k, ngx.location.capture return with status 200 and truncate false, but in fact it has been truncated, which i can get full response from upstream via directly curl. i use json_decode(from cjosn) decode the response above, but it throw exceptions like " Expected comma or object end but found T_END at character 88993" or "Expected object key string but found unexpected end of string at character 91105", so I suspect it has been truncated.

zhuizhuhaomeng commented 8 months ago

would you please prepare a small test case for this issue?