The specified queue does not exist for this wsdl version PHP- Laravelでこんなエラー

AWS,PHP

+1

CSVをダウンロードするキューを追加しようとするとローカル環境ではAWSのSQSに接続できないようです。

App\Exceptions\Handler@report(41) - 
<strong>Error</strong> 
executing "SendMessage" on "https://sqs.ap-northeast-1.amazonaws.com/091803464063/local-ticket-csv-generate-queue"; AWS HTTP 
<strong>error:</strong> Client <strong>error:</strong> `POST https://sqs.ap-northeast-1.amazonaws.com/091803464063/local-ticket-csv-generate-queue` resulted in a `400 Bad Request` response: 
<?xml version="1.0"?><ErrorResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/">
<<strong>Error</strong>><Type>Sender</Type><Code>A (truncated...) AWS.SimpleQueueService.NonExistentQueue (client): The specified queue does not exist for this wsdl version. - 
<?xml version="1.0"?><ErrorResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/">
<<strong>Error</strong>><Type>Sender</Type><Code>AWS.SimpleQueueService.NonExistentQueue</Code>
<Message>The specified queue does not exist for this wsdl version.</Message>
<Detail/></<strong>Error</strong>><RequestId>d1e846e8-55f4-5bf7-9ff6-1ea2ef1dbeba</RequestId></ErrorResponse>

.envファイルを以下のように書き換えて対処。

#QUEUE_DRIVER=sqs
QUEUE_DRIVER=sync

もちろん.envを更新したら

php artisan config:cache

も行いましょう(僕は忘れてました)

+1

Posted by riku