Thursday, March 5, 2009

Possible Cause of Queue Trouble

The error I am getting involves parts of this message:
...QueueAlreadyExists...This queue already exists for another wsdl version. Queue names must be unique across wsdl versions....
I did a search and found a helpful page at the Amazon Web Services site. It seems that if we're using different versions of the API we may not be able to see the queues. I am using right_aws for ruby, which the documentation says uses the 2007-05-01 API. The newest version appears to be 2008-01-01. What are others using? I asked Devlin about it and I'll post if there's something we can think of.

1 comment:

Bracken said...

right aws implements both of the interfaces, you need to use the "RightAws::SqsGen2". This page has the documentation for you:

http://rightaws.rubyforge.org/right_aws_gem_doc/

Here is how you can list all the queues:
require 'right_aws'
sqs = RightAws::SqsGen2.new(get_access_id, get_secret_key)
sqs.queues.each {|q| puts q.name}

That will output:
approvalprocess
approvalresult
commentprocess
commentqueue
commentresult
deadlyqueueofdoom
imageprocess
imageresult