From: regan russell Date: 2011-08-31T07:06:47+09:00 Subject: AWS CreateHit ruby code Hi. I've been a C developer since 1988, I know zero about ruby and I haven't been enjoying it so far. I have been handed some code. ???? My Question is has anyone every had any success with the Amazon Mechanical Turk and the CreateHit(...) method.... ???? I have upgraded to ruby 1.9.with rvm, and building from source. I have updated gems I have installed bundler I have bundled the required gems... if that is the correct term. From what I can tell I have the most up to date version of ruby and gems. The code I was handed seems to be crashing with no method error in a call from some gem to to some other gem code several levels deep. I have dumped out the parameters to CreateHit() that the code passes and it all looks valid. So from what I see it has little to nothing to do with the application level code and something wrong in the gem itself(?) output: Got account balance: 10000.00 Connection refused - connect(2) Job was not retrieved. Connection refused - connect(2) Job was not retrieved. Connection refused - connect(2) Job was not retrieved. Connection refused - connect(2) Job was not retrieved. Connection refused - connect(2) Job was not retrieved. /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 /Library/Ruby/Gems/1.8/gems/ruby-aws-1.3.1/lib/amazon/webservices/mturk/ me chanical_turk_error_handler.rb:124:in `each' from /Library/Ruby/Gems/1.8/gems/ruby-aws-1.3.1/lib/amazon/webservices/mturk/ me chanical_turk_error_handler.rb:124:in `validateResponse' from /Library/Ruby/Gems/1.8/gems/ruby-aws-1.3.1/lib/amazon/webservices/mturk/ me chanical_turk_error_handler.rb:45:in `dispatch' from /Library/Ruby/Gems/1.8/gems/ruby-aws-1.3.1/lib/amazon/webservices/mechan ic al_turk.rb:65:in `method_missing' from /Library/Ruby/Gems/1.8/gems/ruby-aws-1.3.1/lib/amazon/webservices/util/c on venience_wrapper.rb:22:in `send' from /Library/Ruby/Gems/1.8/gems/ruby-aws-1.3.1/lib/amazon/webservices/util/c on venience_wrapper.rb:22:in `callService' from /Library/Ruby/Gems/1.8/gems/ruby-aws-1.3.1/lib/amazon/webservices/util/c on venience_wrapper.rb:43:in `createHITRaw' from /Library/Ruby/Gems/1.8/gems/ruby-aws-1.3.1/lib/amazon/webservices/util/c on venience_wrapper.rb:50:in `send' from /Library/Ruby/Gems/1.8/gems/ruby-aws-1.3.1/lib/amazon/webservices/util/c on venience_wrapper.rb:50:in `createHIT' from mnpr.rb:119:in `createSimpleSurvey' from mnpr.rb:139 Regards, Regan -- Posted via http://www.ruby-forum.com/.