Incomplete response body being returned from Rails 3 app with RABL

 ̄綄美尐妖づ 提交于 2019-12-18 06:16:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!