apache / apisix

The Cloud-Native API Gateway
https://apisix.apache.org/blog/
Apache License 2.0
13.97k stars 2.45k forks source link

help request: Unexpected End Of File position 60791: null #11307

Open rahulracker7539 opened 1 month ago

rahulracker7539 commented 1 month ago

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

rahulracker7539 commented 1 month ago

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