查询工件时Ruby上的rally_api引发的资源异常

查询工件时Ruby上的rally_api引发的资源异常,ruby,rally,Ruby,Rally,当运行rally query时,进程将退出,并在某些框上显示以下错误消息,而在其他框上运行。任何帮助都将不胜感激 环境-Ruby 1.9xx-rally_api Command return code: 1 Command error output: /home/reaper/.rvm/gems/ruby-1.9.3-p429/gems/rally_api- 0.9.16/lib/rally_api/rally_json_connection.rb:142:in `rescue in se

当运行rally query时,进程将退出,并在某些框上显示以下错误消息,而在其他框上运行。任何帮助都将不胜感激

环境-Ruby 1.9xx-rally_api

Command return code: 1
Command error output: /home/reaper/.rvm/gems/ruby-1.9.3-p429/gems/rally_api-    0.9.16/lib/rally_api/rally_json_connection.rb:142:in `rescue in send_request': RallyAPI: -     rescued exception - SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read finished A on     request to https://rally1.rallydev.com/slm/webservice/1.42/defect.js with params     {:pagesize=>10, :start=>441, :query=>"(LastUpdateDate > \"2013-06-29T00:00:00+00:00\")",     :fetch=>"Iteration,Capitalizeable,CapBucket,FormattedID,DirectChildrenCount,RevisionHistory,Re    visions,Parent,Project,Portfolio",     :workspace=>"https://rally1.rallydev.com/slm/webservice/1.42/workspace/41593629.js",     :project=>"https://rally1.rallydev.com/slm/webservice/1.42/project/7634660382.js",     :projectScopeUp=>false, :projectScopeDown=>true, :order=>nil} (StandardError)
    from /home/reaper/.rvm/gems/ruby-1.9.3-p429/gems/rally_api-    0.9.16/lib/rally_api/rally_json_connection.rb:136:in `send_request'
    from /home/reaper/.rvm/gems/ruby-1.9.3-p429/gems/rally_api-    0.9.16/lib/rally_api/rally_json_connection.rb:196:in `block (2 levels) in run_single_thread'
    from /home/reaper/.rvm/gems/ruby-1.9.3-p429/gems/rally_api-    0.9.16/lib/rally_api/rally_json_connection.rb:195:in `each'
    from /home/reaper/.rvm/gems/ruby-1.9.3-p429/gems/rally_api-    0.9.16/lib/rally_api/rally_json_connection.rb:195:in `block in run_single_thread'

您可能会看到,这个只测试连接的简单ruby代码是否也会因相同的错误而失败:

require 'rally_api'

#Setup custom app information
headers = RallyAPI::CustomHttpHeader.new() headers.name = "My Utility"
headers.vendor = "Nick M RallyLab"
headers.version = "1.0"

# Connection to Rally
config = {:base_url => "https://rally1.rallydev.com/slm"}
config[:username] = "user@co.com"
config[:password] = "password"
config[:workspace] = "W"
config[:project] = "P"
config[:version] = "1.43"
config[:headers] = headers 

@rally = RallyAPI::RallyRestJson.new(config)
puts @rally.user
我也看到过同样的错误报告,结果证明是一名代理人造成的。如果它在某些计算机上运行,而在其他计算机上出现故障,则会将问题的潜在根源缩小到运行脚本的环境中—可能是代理配置发生了更改

如果在运行脚本的计算机和rally1.rallydev.com之间有一个代理,请验证http_proxy环境变量是否设置为当前有效值。 通常,环境变量http_proxy应设置如下

用于身份验证代理的配置文件:

yourusername:yourpassword@IPAddress:Port
b表示非身份验证代理

IPAddress:Port

非常感谢你的帮助-但是,这对我来说不起作用。您在开始时建议的小程序立即返回。在这一点上,我想知道我是不是查询了太多的数据,试图重新设计程序,使其分块执行。