{"action":"opened","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/810","labels_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/810/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/810/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/810/events","html_url":"https://github.com/aws/aws-sdk-ruby/issues/810","id":75997960,"number":810,"title":"Aws::CloudFormation::Client throws ArgumentError when returning response","user":{"login":"rdark","id":260691,"avatar_url":"https://avatars.githubusercontent.com/u/260691?v=3","gravatar_id":"","url":"https://api.github.com/users/rdark","html_url":"https://github.com/rdark","followers_url":"https://api.github.com/users/rdark/followers","following_url":"https://api.github.com/users/rdark/following{/other_user}","gists_url":"https://api.github.com/users/rdark/gists{/gist_id}","starred_url":"https://api.github.com/users/rdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdark/subscriptions","organizations_url":"https://api.github.com/users/rdark/orgs","repos_url":"https://api.github.com/users/rdark/repos","events_url":"https://api.github.com/users/rdark/events{/privacy}","received_events_url":"https://api.github.com/users/rdark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-13T14:14:09Z","updated_at":"2015-05-13T14:14:09Z","closed_at":null,"body":"The below code throws an ArgumentError when getting a response - though the\r\nactual (cloud) stack creation works successfully and resources are created as\r\nexpected. I started to trace through the stack trace to try and pinpoint where\r\nthis was originating from but the stack is pretty deep and I'm not that\r\nfamiliar with the code..\r\n\r\nReally simple example:\r\n\r\n    module ExampleBootStrap\r\n      class AWSCloudFormation\r\n    \r\n        attr_reader :profile, :credentials, :region, :client\r\n    \r\n        def initialize(profile=ENV['AWS_PROFILE'],region=ENV['AWS_REGION'])\r\n          @profile = profile\r\n          @region  = region\r\n          @credentials = Aws::SharedCredentials.new(:profile_name => profile)\r\n          @client = Aws::CloudFormation::Client.new(\r\n            :region      => @region,\r\n            :credentials => @credentials\r\n          )\r\n        end\r\n    \r\n        def create_stack(stack_name,template_body,client=@client)\r\n          client.create_stack(\r\n            :stack_name    => stack_name,\r\n            :template_body => template_body\r\n          )\r\n        end\r\n    \r\n      end\r\n    end\r\n\r\n\r\nCalled with, for e.g:\r\n\r\n    stack_name = \"stack-name\"\r\n    stack_json = \"{ \"foo\" : \"bar\" }\" # valid cloudformation template/json string\r\n    cloudform = ExampleBootStrap::AWSCloudFormation.new()\r\n    response = cloudform.create_stack(stack_name,stack_json)\r\n\r\nStack Trace:\r\n\r\n    /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/aws-sdk-core/xml/parser/stack.rb:20:in `attr': wrong number of arguments (1 for 2) (ArgumentError)\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/aws-sdk-core/xml/parser/engines/rexml.rb:29:in `block in tag_start'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/aws-sdk-core/xml/parser/engines/rexml.rb:28:in `each'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/aws-sdk-core/xml/parser/engines/rexml.rb:28:in `tag_start'\r\n        from /home/rdark/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/rexml/parsers/streamparser.rb:24:in `parse'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/aws-sdk-core/xml/parser/engines/rexml.rb:19:in `parse'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/aws-sdk-core/xml/parser.rb:28:in `parse'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/aws-sdk-core/query/handler.rb:36:in `parse_xml'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/aws-sdk-core/query/handler.rb:13:in `block in call'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/seahorse/client/response.rb:43:in `call'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/seahorse/client/response.rb:43:in `block in on'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/seahorse/client/http/response.rb:137:in `block in on_success'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/seahorse/client/http/response.rb:164:in `call'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/seahorse/client/http/response.rb:164:in `block in listener'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/seahorse/client/http/response.rb:128:in `call'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/seahorse/client/http/response.rb:128:in `on_done'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/seahorse/client/http/response.rb:135:in `on_success'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/seahorse/client/response.rb:42:in `on'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/seahorse/client/response.rb:51:in `on_success'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/aws-sdk-core/query/handler.rb:11:in `call'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/aws-sdk-core/plugins/user_agent.rb:12:in `call'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/seahorse/client/plugins/restful_bindings.rb:13:in `call'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/seahorse/client/plugins/endpoint.rb:31:in `call'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/seahorse/client/plugins/param_validation.rb:22:in `call'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/seahorse/client/plugins/raise_response_errors.rb:14:in `call'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/seahorse/client/plugins/param_conversion.rb:22:in `call'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/aws-sdk-core/plugins/response_paging.rb:10:in `call'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/seahorse/client/plugins/response_target.rb:18:in `call'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/seahorse/client/request.rb:70:in `send_request'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/vendor/bundle/ruby/2.0.0/gems/aws-sdk-core-2.0.42/lib/seahorse/client/base.rb:216:in `block (2 levels) in define_operation_methods'\r\n        from /home/rdark/.gitrepos/ops_example/example-bootstrap/tmp/lib/coreosbootstrap/aws_cloudformation.rb:20:in `create_stack'\r\n        from ./bin/cloudify.rb:47:in `block in <main>'\r\n        from ./bin/cloudify.rb:45:in `each'\r\n        from ./bin/cloudify.rb:45:in `<main>'\r\n\r\n"}}