我有一个 Ruby on Rails 网站,可以对外部 Web 服务进行 HTTP 调用。
大约每天一次,我收到一封 SystemExit(下面的堆栈跟踪)错误电子邮件,其中对服务的调用失败。如果我稍后在我的网站上尝试完全相同的查询,它就可以正常工作。自从该网站上线以来就一直在发生这种情况,我没有运气追踪到是什么原因造成的。
Ruby 是 1.8.6 版,rails 是 1.2.6 版。
其他人有这个问题吗?
这是错误和堆栈跟踪。
发生 SystemExit /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/fcgi_handler.rb:116:in exit' /usr/local/lib/ruby/gems/1.8/gems/ rails-1.2.6/lib/fcgi_handler.rb:116:in exit_now_handler' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/inflector.rb:250:in to_proc ' /usr/local/lib/ruby/1.8/net/protocol.rb:133:in call' /usr/local/lib/ruby/1.8/net/protocol.rb:133:in sysread' /usr/local/ lib/ruby/1.8/net/protocol.rb:133:in rbuf_fill' /usr/local/lib/ruby/1.8/timeout.rb:56:in timeout' /usr/local/lib/ruby/1.8/timeout. rb:76:in timeout' /usr/local/lib/ruby/1.8/net/protocol.rb:132:in rbuf_fill' /usr/local/lib/ruby/1.8/net/protocol.rb:116:in readuntil ' /usr/local/lib/ruby/1.8/net/protocol.rb:126:in readline' /usr/local/lib/ruby/1.8/net/http.rb:2017:在 read_status_line'/usr/local/lib/ruby/1.8/net/http.rb:2006:in read_new'/usr/local/lib/ruby/1.8/net/http.rb:1047:in request'/usr/ local/lib/ruby/1.8/net/http.rb:945:in request_get' /usr/local/lib/ruby/1.8/net/http.rb:380:in get_response' /usr/local/lib/ruby/ 1.8/net/http.rb:543:in start' /usr/local/lib/ruby/1.8/net/http.rb:379:in get_response'