简体   繁体   English

控制器等待响应,然后应用程序使Ruby on Rails失败

[英]Controller waiting for response and then the application fails Ruby on rails

My Controller waits for a response from a lib folder ruby file which it is calling. 我的控制器等待它正在调用的lib文件夹ruby文件的响应。

lib.rb runs for about 4 minutes and returns a string as result. lib.rb运行约4分钟,并返回一个字符串作为结果。

The controller waits for the string response and then application breaks after a minute showing Internal Server Error 控制器等待字符串响应,然后在一分钟后显示内部服务器错误的应用程序中断

what should i Do? 我该怎么办?

Regards 问候

Can you describe in more detail what this "lib" is doing? 您能否更详细地描述此“ lib”在做什么? If it is intended to take a long time you will have to adjust your server settings so it is not prematurely timed out. 如果要花费很长时间,则必须调整服务器设置,以免过早超时。

For example, Apache will produce a server error if it does not receive a response from your application in a timely manner. 例如,如果Apache没有及时收到您应用程序的响应,它将产生服务器错误。 This time can be adjusted within certain parameters. 可以在某些参数内调整此时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Ruby on Rails环境控制器操作JavaScript响应 - Ruby on Rails Circumstantial Controller Action JavaScript Response 尝试使用 ruby​​ on rails 运行应用程序时出现控制器错误 - Controller error trying to run application with ruby on rails Ruby on Rails:在控制器中使用方法名称“ request”失败 - Ruby on Rails: using method name 'request' in controller fails Rails控制器因TypeError失败-“故障安全响应期间出错”? - Rails controller fails with TypeError - “Error during failsafe response”? 在Ruby on Rails中执行每个控制器后获取响应状态 - Get response status after every controller is executed in Ruby on Rails 使用mysql在Rails中在ruby中创建应用程序时未建立Action Controller :: Connection - Action Controller::Connection not established while creating an application in ruby on rails with mysql ruby on rails在助手与控制器中的应用范围广泛的方法? - ruby on rails application wide method in helper vs. controller? 红宝石上的关注和application_controller.rb之间的区别 - Difference between concern and application_controller.rb in ruby on rails 我应该在 Rails 中的 ruby 中的应用程序 controller 中定义什么? - what should I define in application controller in ruby in rails? Rails应用程序失败,主页控制器上的任何页面都显示500-仅Heroku - Rails Application fails with 500 for any page on Home Controller - Heroku Only
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM