Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ruby doproxy.rb print error #3

Open
ranjeetranjan opened this issue Mar 16, 2016 · 1 comment
Open

ruby doproxy.rb print error #3

ranjeetranjan opened this issue Mar 16, 2016 · 1 comment

Comments

@ranjeetranjan
Copy link

Hi,

When I execute ruby doproxy.rb print getting below error.

root@doproxy:~/doproxy# ruby doproxy.rb print
/root/.rbenv/versions/2.2.3/lib/ruby/2.2.0/uri/generic.rb:1100:in rescue in merge': bad URI(is not URI?): /v2/droplets/12042416 (URI::InvalidURIError) from /root/.rbenv/versions/2.2.3/lib/ruby/2.2.0/uri/generic.rb:1097:inmerge'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/faraday-0.9.2/lib/faraday/connection.rb:406:in build_exclusive_url' from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/faraday-0.9.2/lib/faraday/rack_builder.rb:192:inbuild_env'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/faraday-0.9.2/lib/faraday/rack_builder.rb:139:in build_response' from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/faraday-0.9.2/lib/faraday/connection.rb:377:inrun_request'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/faraday-0.9.2/lib/faraday/connection.rb:140:in get' from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/resource_kit-0.1.4/lib/resource_kit/action_invoker.rb:34:inresponse'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/resource_kit-0.1.4/lib/resource_kit/action_invoker.rb:18:in handle_response' from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/resource_kit-0.1.4/lib/resource_kit/action_invoker.rb:14:incall'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/resource_kit-0.1.4/lib/resource_kit/method_factory.rb:16:in block in method_for_action' from doproxy.rb:39:inblock in get_inventory'
from doproxy.rb:38:in each_line' from doproxy.rb:38:inget_inventory'
from doproxy.rb:29:in initialize' from doproxy.rb:140:innew'
from doproxy.rb:140:in `

'

@ftheo
Copy link

ftheo commented Mar 26, 2016

So I got this error too with Ruby 2.2.2. You can see the error here too. They suggest to stick with Ruby 2.1.5

I had to install ruby 2.2.2 instead of 2.1.5 that the README says because with 2.1.5 while trying to install droplet_kit I got the following error

ERROR: Error installing droplet_kit: activesupport requires Ruby version >= 2.2.2.

To be able to use droplet_kit with ruby 2.1.5 I had to first install another version of activesupport that did support ruby 2.1.5 simply by installing it manually

gem install activesupport

Then I installed the droplet_kit as per the README

gem install droplet_kit

Now you should not see the errors. Hope this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants