apisix icon indicating copy to clipboard operation
apisix copied to clipboard

help request: Unexpected End Of File position 60791: null

Open rahulracker7539 opened this issue 1 year ago • 2 comments

Description

Hi Everyone,

I have deployed the apisix and able to serve the traffic through the API gateway after whitelisting the domain and configuring upstream to send the traffic to. my current problem is whenever application team is doing load testing then they are getting "Unexpected End Of File position 60791: null" at some point. when we do normal curl request then we are getting expected traffic.

While investigating the above we found that response payload has syntax error for few of the requests and it seems that response was too long and got chopped off.

Is there any limitation in apisix on response length ?

I have done some tweaking in nginx settings but it doesn't help.

can someone provide any instruction or ways to fix this ?

Environment

  • APISIX version (run apisix version): 3.9.1
  • Operating system (run uname -a): Linux
  • OpenResty / Nginx version (run openresty -V or nginx -V): nginx version: openresty/1.25.3.1
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant: Image: apache/apisix-dashboard:3.0.0-alpine
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):

rahulracker7539 avatar May 30 '24 11:05 rahulracker7539

Here is my apisix config yaml file [1] where I have also done some tweaking in nginx part but still it didn't help. additionally am not seeing any error in the apisix pod logs.

nginx_config: # config for render the template to genarate nginx.conf http_configuration_snippet: | proxy_buffer_size 256k; proxy_buffers 64 256k; proxy_busy_buffers_size 256k; http_server_configuration_snippet: | proxy_buffer_size 256k; proxy_buffers 64 256k; proxy_busy_buffers_size 256k;

[1] https://gist.github.com/rahulracker7539/34e9ed61ba949dc16797bb38e97d06f8

rahulracker7539 avatar May 30 '24 11:05 rahulracker7539

Can you provide detailed steps for reproduction? It is not possible to reproduce the problem from the information available.

Baoyuantop avatar May 28 '25 09:05 Baoyuantop