You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Marios Andreou (JIRA)" <ji...@apache.org> on 2012/06/14 12:51:43 UTC

[jira] [Commented] (DTACLOUD-235) GET -X /api/metrics?format=xml (or json) gives 'undefined local variable or method' error

    [ https://issues.apache.org/jira/browse/DTACLOUD-235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294948#comment-13294948 ] 

Marios Andreou commented on DTACLOUD-235:
-----------------------------------------

thanks - pushed to master, commit hash: 64148f35c6d53f6a8f69ccaa59c331bd8aa046e0
                
> GET -X /api/metrics?format=xml (or json) gives 'undefined local variable or method' error
> -----------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-235
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-235
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: deltacloud commit version: 138adab3396ea95a41c8320058dd78bbac446b08
>            Reporter: Ronelle Landy
>            Assignee: Marios Andreou
>         Attachments: 0001-Adds-XML-for-metrics-resolves-JIRA-DTACLOUD_235.patch
>
>
> >>  curl -X GET --user "un:pw" "http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=xml"
> (long trace goes off console) end of trace below:
> ...........
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/controllers/controller.rb:86:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `send'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!'
> /usr/share/deltacloud-core/bin/deltacloudd:239
> /usr/bin/deltacloudd:5:in `load'
> /usr/bin/deltacloudd:5]]></backtrace>
>   <request>
>     <param name='format'>xml</param>
>     <param name='splat'></param>
>     <param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7afc7198></param>
>   </request>
> </error>
> Using format=json:
> XML Parsing Error: not well-formed
> Location: http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=json
> Line Number 547, Column 84:    <param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7af7c2d8></param>
> -----------------------------------------------------------------------------------^

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira