Skip to content

Instantly share code, notes, and snippets.

@mattray
Created February 27, 2014 19:27
Show Gist options
  • Select an option

  • Save mattray/9257291 to your computer and use it in GitHub Desktop.

Select an option

Save mattray/9257291 to your computer and use it in GitHub Desktop.
conn = Fog::Compute.new(:provider => 'OpenStack', :openstack_auth_url => "http://10.0.100.8:8774/v2.0/tokens", :openstack_username => 'admin', :openstack_api_key => 'admin', :openstack_tenant => 'admin')
Excon::Errors::BadRequest: Expected([200, 204]) <=> Actual(400 Bad Request)
response => #<Excon::Response:0x007f9c1d393990 @data={:body=>"{\"badRequest\": {\"message\": \"The server could not comply with the request since it is either malformed or otherwise incorrect.\", \"code\": 400}}", :headers=>{"Content-Length"=>"141", "Content-Type"=>"application/json; charset=UTF-8", "Date"=>"Thu, 27 Feb 2014 19:26:10 GMT"}, :status=>400, :remote_ip=>"10.0.100.8"}, @body="{\"badRequest\": {\"message\": \"The server could not comply with the request since it is either malformed or otherwise incorrect.\", \"code\": 400}}", @headers={"Content-Length"=>"141", "Content-Type"=>"application/json; charset=UTF-8", "Date"=>"Thu, 27 Feb 2014 19:26:10 GMT"}, @status=400, @remote_ip="10.0.100.8">
from /Users/mray/.chgems/chef/.gem/ruby/1.9.3/gems/excon-0.31.0/lib/excon/middlewares/expects.rb:10:in `response_call'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment