From: regan russell Date: 2011-08-31T14:59:26+09:00 Subject: Re: AWS CreateHit ruby code Ryan Davis wrote in post #1019308: > On Aug 30, 2011, at 15:06 , regan russell wrote: > >> /Library/Ruby/Gems/1.8/gems/ruby-aws-1.3.1/lib/amazon/webservices/mturk/ >> me >> chanical_turk_error_handler.rb:127:in `validateResponse': >> AWS.MissingParameters >> (Amazon::WebServices::Util::ValidationException) >> from > > Are you addressing this MissingParameters error? > > I googled around and found a test online that shows: > > result = @@mturk.createHIT(:Title => 'Ruby SDK Test Hit', > :Description => description, > :Keywords => 'Ruby, test, SDK', > :Reward => { > :Amount => 23.44, > :CurrencyCode => 'USD' > }, > :Question => question) Thank you for your response. I put in the missing parameters, which is why my second post doesn't contain that error. So the answer to your question is yes. I didn't write the code and I don't know ruby but I downloaded and installed ruby-debug (rdebug). I have stepped through the code and inspected variables. (rdb:1) list [17, 26] in /usr/local/lib/ruby/gems/1.9.1/gems/ruby-aws-1.3.2/lib/amazon/webservices/util/convenience_wrapper.rb 17 raise "Missing paramters: #{missing_parameters.join(',')}" unless missing_parameters.empty? 18 @service = args[:ServiceClass].new( args ) 19 end 20 21 def callService( method, *args ) => 22 @service.send( method, *args ) 23 end 24 25 def method_missing( method, *args ) 26 if @service.respond_to? method (rdb:1) display method 7: method = GetAccountBalance GetAccountBalance is missing, yet this seems to be a logical part Amazon stuff.. I am confused and I don't even kn ow the language. R. -- Posted via http://www.ruby-forum.com/.