Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS SDK for PHP - SQS error

using the SDK, I can create a queue and get the queue list - but somehow I can not send message to any of the queues. Used the following:

$sqs = new AmazonSQS();
$sqs->set_region(AmazonSQS::REGION_SINGAPORE);
$queues =  $sqs->get_queue_list();
$response = $sqs->send_message($queues[0], $message);

But, I am getting the error:

[Type] => Sender
[Code] => AWS.SimpleQueueService.NonExistentQueue
[Message] => The specified queue does not exist for this wsdl version.

$queues is following: (xxxxx is a number)

    Array
(
    [0] => https://sqs.ap-southeast-1.amazonaws.com/1001xxxxxxxx/website-email
)

Any ideas?

like image 372
Vikash Avatar asked Nov 22 '25 22:11

Vikash


1 Answers

I have the same problem. It seems to be a bug in SDK 1.5!

Check this: https://forums.aws.amazon.com/thread.jspa?threadID=82874&tstart=0

Quote from there:

Users are experiencing problems when performing queue operations like send_message and receive_message where an HTTP 400 error is received with the error code AWS.SimpleQueueService.NonExistentQueue. This is being caused by a regression introduced in version 1.5 of the SDK in which the request URL for queue operations is not being constructed properly.

HTH

like image 137
psic4t Avatar answered Nov 24 '25 14:11

psic4t



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!