我DONO是什麼原因,但我的Ruby程序拋出超時錯誤suddently程序投擲超時錯誤
/home/mounarajan/.rbenv/versions/2.1.2/lib/ruby/2.1.0/net/http.rb:879:in `initialize': execution expired (Net::OpenTimeout)
from /home/mounarajan/.rbenv/versions/2.1.2/lib/ruby/2.1.0/net/http.rb:879:in `open'
from /home/mounarajan/.rbenv/versions/2.1.2/lib/ruby/2.1.0/net/http.rb:879:in `block in connect'
from /home/mounarajan/.rbenv/versions/2.1.2/lib/ruby/2.1.0/timeout.rb:91:in `block in timeout'
from /home/mounarajan/.rbenv/versions/2.1.2/lib/ruby/2.1.0/timeout.rb:101:in `call'
from /home/mounarajan/.rbenv/versions/2.1.2/lib/ruby/2.1.0/timeout.rb:101:in `timeout'
from /home/mounarajan/.rbenv/versions/2.1.2/lib/ruby/2.1.0/net/http.rb:878:in `connect'
from /home/mounarajan/.rbenv/versions/2.1.2/lib/ruby/2.1.0/net/http.rb:863:in `do_start'
from /home/mounarajan/.rbenv/versions/2.1.2/lib/ruby/2.1.0/net/http.rb:852:in `start'
from /home/mounarajan/.rbenv/versions/2.1.2/lib/ruby/2.1.0/net/http.rb:1369:in `request'
from /home/mounarajan/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/oauth-0.4.7/lib/oauth/consumer.rb:161:in `request'
from /home/mounarajan/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/oauth-0.4.7/lib/oauth/tokens/consumer_token.rb:25:in `request'
from /home/mounarajan/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/oauth-0.4.7/lib/oauth/tokens/access_token.rb:12:in `request'
from /home/mounarajan/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/oauth-0.4.7/lib/oauth/tokens/access_token.rb:27:in `get'
from /home/mounarajan/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/semantics3-0.04/lib/semantics3.rb:36:in `_make_request'
from /home/mounarajan/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/semantics3-0.04/lib/semantics3.rb:217:in `run_query'
from /home/mounarajan/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/semantics3-0.04/lib/semantics3.rb:80:in `get_products'
from project.rb:34:in `block (2 levels) in <main>'
from project.rb:31:in `each'
from project.rb:31:in `each_with_index'
from project.rb:31:in `block in <main>'
from project.rb:30:in `open'
from project.rb:30:in `<main>'
請幫我解決這個問題
從後'project.rb'代碼它是一個問題。 – 2014-10-10 08:27:12
@japed是代碼錯誤還是由於api或互聯網問題? – 2014-10-10 08:47:11
可能,但直到你發佈一些代碼,沒有人能夠幫助你。 – 2014-10-10 08:48:44