Using Rally API 0.96 to do user creation & maintenance. Getting an error when I send a query for workspace info. Error recurs no matter what the call to the API.
Code:
require 'rubygems'
require 'rally_api'
require 'pp'
$my_base_url = "https://rally1.rallydev.com/slm"
$my_username = "XXXX";
$my_password = "XXXX";
$headers = RallyAPI::CustomHttpHeader.new()
$headers.name = "Ruby User Management Tool 2"
$headers.vendor = "Rally Labs"
$headers.version = "0.10"
API Version
$wsapi_version = "1.40"
config = {:base_url => $my_base_url}
config[:username] = $my_username
config[:password] = $my_password
config[:headers] = $my_headers #from RallyAPI::CustomHttpHeader.new()
config[:version] = $wsapi_version
@Rally = RallyAPI::RallyRestJson.new(config)
subscription_query = RallyAPI::RallyQuery.new()
subscription_query.type = :subscription
subscription_query.fetch = "Name,SubscriptionID,Workspaces,Name,State,ObjectID"
subscription_query.page_size = 200 #optional - default is 200
subscription_query.limit = 50000 #optional - default is 99999
subscription_query.order = "Name Asc"
results = @Rally.find(subscription_query)
p results
Error:
/usr/local/lib/ruby/gems/1.8/gems/rally_api-0.9.6/lib/rally_api/rally_json_connection.rb:111:in send_request': RallyAPI: - rescued exception - undefined methodssl_version=' for #OpenSSL::SSL::SSLContext:0x40232734 on request to https://rally1.rallydev.com/slm/webservice/1.40/subscription.js with params projectScopeDownfalsepagesize200start1orderName AscfetchName,SubscriptionID,Workspaces,Name,State,ObjectIDqueryprojectScopeUpfalse (StandardError)
from /usr/local/lib/ruby/gems/1.8/gems/rally_api-0.9.6/lib/rally_api/rally_json_connection.rb:67:in get_all_json_results' from /usr/local/lib/ruby/gems/1.8/gems/rally_api-0.9.6/lib/rally_api/rally_rest_json.rb:237:infind'
from a.rb:33
Also got these warnings:
/usr/local/lib/ruby/gems/1.8/gems/rally_api-0.9.6/lib/rally_api/rally_object.rb:168: warning: parenthesize argument(s) for future version
/usr/local/lib/ruby/gems/1.8/gems/rally_api-0.9.6/lib/rally_api/rally_rest_json.rb:429: warning: don't put space before argument parentheses
Using Rally API 0.96 to do user creation & maintenance. Getting an error when I send a query for workspace info. Error recurs no matter what the call to the API.
Code:
require 'rubygems'
require 'rally_api'
require 'pp'
$my_base_url = "https://rally1.rallydev.com/slm"
$my_username = "XXXX";
$my_password = "XXXX";
$headers = RallyAPI::CustomHttpHeader.new()
$headers.name = "Ruby User Management Tool 2"
$headers.vendor = "Rally Labs"
$headers.version = "0.10"
API Version
$wsapi_version = "1.40"
config = {:base_url => $my_base_url}
config[:username] = $my_username
config[:password] = $my_password
config[:headers] = $my_headers #from RallyAPI::CustomHttpHeader.new()
config[:version] = $wsapi_version
@Rally = RallyAPI::RallyRestJson.new(config)
subscription_query = RallyAPI::RallyQuery.new()
subscription_query.type = :subscription
subscription_query.fetch = "Name,SubscriptionID,Workspaces,Name,State,ObjectID"
subscription_query.page_size = 200 #optional - default is 200
subscription_query.limit = 50000 #optional - default is 99999
subscription_query.order = "Name Asc"
results = @Rally.find(subscription_query)
p results
Error:
/usr/local/lib/ruby/gems/1.8/gems/rally_api-0.9.6/lib/rally_api/rally_json_connection.rb:111:in
send_request': RallyAPI: - rescued exception - undefined methodssl_version=' for #OpenSSL::SSL::SSLContext:0x40232734 on request to https://rally1.rallydev.com/slm/webservice/1.40/subscription.js with params projectScopeDownfalsepagesize200start1orderName AscfetchName,SubscriptionID,Workspaces,Name,State,ObjectIDqueryprojectScopeUpfalse (StandardError)from /usr/local/lib/ruby/gems/1.8/gems/rally_api-0.9.6/lib/rally_api/rally_json_connection.rb:67:in
get_all_json_results' from /usr/local/lib/ruby/gems/1.8/gems/rally_api-0.9.6/lib/rally_api/rally_rest_json.rb:237:infind'from a.rb:33
Also got these warnings:
/usr/local/lib/ruby/gems/1.8/gems/rally_api-0.9.6/lib/rally_api/rally_object.rb:168: warning: parenthesize argument(s) for future version
/usr/local/lib/ruby/gems/1.8/gems/rally_api-0.9.6/lib/rally_api/rally_rest_json.rb:429: warning: don't put space before argument parentheses