views:

389

answers:

0

In rails, as the "open" method of 'rest-open-uri' package can help call restful webservice. In a project, I can use that method to call restful webservice of other projects. However, when I use "open" method to call a restful webservice of the same project, it always returns the "execution expired" error as follows. Who can tell me why, and can I call restful webservice within a same project with this "open" method?

Timeout::Error in /test controller/test inviteController#index execution expired RAILS_ROOT: D:/eclipse/workspace/Tuzhu

Application Trace | Framework Trace | Full Trace C:/Ruby/lib/ruby/1.8/timeout.rb:60:in rbuf_fill' C:/Ruby/lib/ruby/1.8/net/protocol.rb:132:in rbuf_fill' C:/Ruby/lib/ruby/1.8/net/protocol.rb:116:in readuntil' C:/Ruby/lib/ruby/1.8/net/protocol.rb:126:in readline' C:/Ruby/lib/ruby/1.8/net/http.rb:2020:in read_status_line' C:/Ruby/lib/ruby/1.8/net/http.rb:2009:in read_new' C:/Ruby/lib/ruby/1.8/net/http.rb:1050:in request' C:/Ruby/lib/ruby/gems/1.8/gems/rest-open-uri-1.0.0/lib/rest-open-uri.rb:291:in open_http' C:/Ruby/lib/ruby/1.8/net/http.rb:543:in start' C:/Ruby/lib/ruby/gems/1.8/gems/rest-open-uri-1.0.0/lib/rest-open-uri.rb:271:in open_http' C:/Ruby/lib/ruby/gems/1.8/gems/rest-open-uri-1.0.0/lib/rest-open-uri.rb:659:in buffer_open' C:/Ruby/lib/ruby/gems/1.8/gems/rest-open-uri-1.0.0/lib/rest-open-uri.rb:194:in open_loop' C:/Ruby/lib/ruby/gems/1.8/gems/rest-open-uri-1.0.0/lib/rest-open-uri.rb:192:in catch' C:/Ruby/lib/ruby/gems/1.8/gems/rest-open-uri-1.0.0/lib/rest-open-uri.rb:192:in open_loop' C:/Ruby/lib/ruby/gems/1.8/gems/rest-open-uri-1.0.0/lib/rest-open-uri.rb:162:in open_uri' C:/Ruby/lib/ruby/gems/1.8/gems/rest-open-uri-1.0.0/lib/rest-open-uri.rb:561:in open' C:/Ruby/lib/ruby/gems/1.8/gems/rest-open-uri-1.0.0/lib/rest-open-uri.rb:35:in open' app/controllers/test_controller/test_invite_controller.rb:25:in index' -e:2:in `load' -e:2