1

运行拉力赛查询时,该过程在某些盒子上退出并显示以下错误消息,而在其他盒子上只能正常工作。任何帮助,将不胜感激。

环境 - 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'
4

1 回答 1

0

您可能会看到这个仅测试连接的简单 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 应该设置如下。

a) 用于认证代理:

yourusername:yourpassword@IPAddress:Port

b) 对于非认证代理。

IPAddress:Port
于 2013-07-26T03:50:49.237 回答