不完整的响应主体从Rabl的Rails 3的应用程序返回 [英] Incomplete response body being returned from Rails 3 app with RABL
问题描述
我已经建立了使用Rails 3和JSON API Rabl的
I've built a JSON API using Rails 3 and RABL
该API工作得很好,但仅在数据的一部分被返回特定请求 - 将JSON的其余部分被切断。由于JSON是无效的,因此,移动应用程序,它依赖于API崩溃。
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
推荐答案
于是我就能够跟踪这个问题到乘客
So I was able to track this issue down to Passenger
长话短说我通过设置固定它 passenger_buffer_response关闭;
在我的乘客CONFIGS
Long story short I fixed it by setting passenger_buffer_response off;
in my passenger configs.
这篇关于不完整的响应主体从Rabl的Rails 3的应用程序返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!