Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Incomplete response body being returned from Rails 3 app with RABL

I've built a JSON API using Rails 3 and RABL

The API works well but on particular requests only part of the data is returned - the rest of the JSON is cut off. Since the JSON is therefore invalid, the mobile app which relies on the API is crashing.

Can anybody think of why the body is cut off at a certain size and point me in the right direction to resolve the issue? Thanks

like image 317
bodacious Avatar asked Jul 31 '12 11:07

bodacious


1 Answers

So I was able to track this issue down to Passenger

Long story short I fixed it by setting passenger_buffer_response off; in my passenger configs.

like image 182
bodacious Avatar answered Oct 16 '22 15:10

bodacious