You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Otherwise, it tries to connect to https even when only http is used (for Studio Onsite):
irb(main):001:0> require'studio_api'=>trueirb(main):004:0> connection=StudioApi::Connection.new('user','key','http://studioserver/api/v2/user')=>#<StudioApi::Connection:0x000000030390f0 @user="user", @password="key", @uri=#<URI::HTTP:0x00000003038e98 URL:http://studioserver/api/v2/user>, @proxy=nil, @timeout=45, @ssl={:verify_mode=>0}>irb(main):007:0> StudioApi::Util.configure_studio_connectionconnection=> [StudioApi::Appliance,StudioApi::Build,StudioApi::File,StudioApi::Gallery,StudioApi::Repository,StudioApi::Rpm,StudioApi::RunningBuild,StudioApi::TemplateSet,StudioApi::Testdrive,StudioApi::Appliance::Status,StudioApi::Appliance::Configuration,StudioApi::Appliance::Repository,StudioApi::Appliance::GpgKey,StudioApi::Appliance::Configuration::Firewall,StudioApi::Gallery::Appliance]irb(main):008:0> templates=StudioApi::TemplateSet.find(:all).find{|s| s.name == "default"}.templateActiveResource::SSLError: SSL_connectreturned=1errno=0state=SSLv2/v3readserverhelloA: unknownprotocolfrom /usr/lib64/ruby/gems/2.1.0/gems/activeresource-4.0.0/lib/active_resource/connection.rb:127:in`rescue in request' from /usr/lib64/ruby/gems/2.1.0/gems/activeresource-4.0.0/lib/active_resource/connection.rb:118:in `request' from /usr/lib64/ruby/gems/2.1.0/gems/activeresource-4.0.0/lib/active_resource/connection.rb:82:in `block in get'from/usr/lib64/ruby/gems/2.1.0/gems/activeresource-4.0.0/lib/active_resource/connection.rb:216:in`with_auth' from /usr/lib64/ruby/gems/2.1.0/gems/activeresource-4.0.0/lib/active_resource/connection.rb:82:in `get' from /usr/lib64/ruby/gems/2.1.0/gems/activeresource-4.0.0/lib/active_resource/base.rb:966:in `find_every'from/usr/lib64/ruby/gems/2.1.0/gems/activeresource-4.0.0/lib/active_resource/base.rb:873:in`find' from (irb):8 from /usr/bin/irb:11:in `<main>'
The text was updated successfully, but these errors were encountered:
studio_api needs to depend on activeresource < 4, one of the following in Gemfile should do it:
Otherwise, it tries to connect to https even when only http is used (for Studio Onsite):
The text was updated successfully, but these errors were encountered: