Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tweyseo opened this issue Mar 22, 2024 · 1 comment
Open

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

tweyseo opened this issue Mar 22, 2024 · 1 comment

Comments

@tweyseo
Copy link

tweyseo commented Mar 22, 2024

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants