Uploaded image for project: 'DeltaCloud'
  1. DeltaCloud
  2. DTACLOUD-439

Exception is thrown when requesting /api/images against RAX or GoGrid and using JSON

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: Server
    • Labels:
      None

      Description

      >> 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'

        Attachments

          Activity

            People

            • Assignee:
              marios Marios Andreou
              Reporter:
              karnath Christian Karnath
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: