You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Christian Karnath (JIRA)" <ji...@apache.org> on 2013/01/25 17:37:12 UTC
[jira] [Created] (DTACLOUD-439) Exception is thrown when requesting
/api/images against RAX or GoGrid and using JSON
Christian Karnath created DTACLOUD-439:
------------------------------------------
Summary: Exception is thrown when requesting /api/images against RAX or GoGrid and using JSON
Key: DTACLOUD-439
URL: https://issues.apache.org/jira/browse/DTACLOUD-439
Project: DeltaCloud
Issue Type: Bug
Components: Server
Reporter: Christian Karnath
>> curl -k -H "X-Deltacloud-Driver: gogrid" -u "un:pw" "https://127.0.0.1:4001/api/images?format=json"
{"code":500,"message":"undefined method `map' for nil:NilClass","error":"NoMethodError"}
E, [2013-01-25T17:29:31.117057 #24806] ERROR -- 500: [NoMethodError] undefined method `map' for nil:NilClass
/home/karnath/dev-deltacloud/deltacloud/server/lib/deltacloud/models/image.rb:37:in `to_hash'
/home/karnath/dev-deltacloud/deltacloud/server/lib/deltacloud/helpers/deltacloud_helper.rb:76:in `block (3 levels) in filter_all'
/home/karnath/dev-deltacloud/deltacloud/server/lib/deltacloud/helpers/deltacloud_helper.rb:76:in `map'
/home/karnath/dev-deltacloud/deltacloud/server/lib/deltacloud/helpers/deltacloud_helper.rb:76:in `block (2 levels) in filter_all'
/home/karnath/dev-deltacloud/deltacloud/server/lib/sinatra/rack_accept.rb:103:in `call'
/home/karnath/dev-deltacloud/deltacloud/server/lib/sinatra/rack_accept.rb:103:in `respond_to'
/home/karnath/dev-deltacloud/deltacloud/server/lib/deltacloud/helpers/deltacloud_helper.rb:73:in `filter_all'
/home/karnath/dev-deltacloud/deltacloud/server/lib/deltacloud/collections/images.rb:34:in `block (3 levels) in <class:Images>'
/var/lib/gems/1.9.1/gems/sinatra-rabbit-1.1.3/lib/sinatra/rabbit/base.rb:396:in `instance_eval'
/var/lib/gems/1.9.1/gems/sinatra-rabbit-1.1.3/lib/sinatra/rabbit/base.rb:396:in `block in control'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:1265:in `call'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:1265:in `block in compile!'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in `[]'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in `block (3 levels) in route!'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:851:in `route_eval'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in `block (2 levels) in route!'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:872:in `block in process_route'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:870:in `catch'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:870:in `process_route'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:834:in `block in route!'
/var/lib/gems/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:833:in `each'
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira