Question
ruby doproxy.rb create Error
Hi Friends,
I am able to create new droplets with below commands
*ruby doproxy.rb create *
But when I try to “ruby doproxy.rb print” i got 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)
merge’
from /root/.rbenv/versions/2.2.3/lib/ruby/2.2.0/uri/generic.rb:1097:in
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'
buildenv’
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/faraday-0.9.2/lib/faraday/rack_builder.rb:192:in
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/faraday-0.9.2/lib/faraday/rackbuilder.rb:139:in build_response'
runrequest’
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/faraday-0.9.2/lib/faraday/connection.rb:377:in
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/resourcekit-0.1.4/lib/resourcekit/actioninvoker.rb:34:in response'
handleresponse’
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
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/resourcekit-0.1.4/lib/resourcekit/actioninvoker.rb:14:in call'
block in methodforaction’
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
from doproxy.rb:39:in block in get_inventory'
eachline’
from doproxy.rb:38:in
from doproxy.rb:38:in `getinventory’
from doproxy.rb:29:in initialize'
new’
from doproxy.rb:140:in
from doproxy.rb:140:in `<main>’
Now am also not able to create new droplets with *ruby doproxy.rb create *
Getting same error as above “ruby doproxy.rb print”
Please help with the solution.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×