2013-07-25 21 views
1

運行rally查詢時,該進程在某些框上退出時顯示以下錯誤消息,而它僅在其他框上顯示。任何幫助,將不勝感激。查詢工件時,由Ruby上的rally_api引發的資源異常

環境 - 紅寶石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' 

回答

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] = "[email protected]" 
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:[email protected]:Port 

b)中的非認證代理。

IPAddress:Port 
+0

非常感謝您的幫助 - 但是,這並不適合我。您在開始時建議的小程序會立即返回。在這一點上,我想知道如果我正在查詢太多的數據,試圖重新構建程序以塊來做。 – user2038295

相關問題