问题
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
回答1:
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.
来源:https://stackoverflow.com/questions/11738924/incomplete-response-body-being-returned-from-rails-3-app-with-rabl