我第一次遇到队列服务(在这种情况下是Amazon SQS)。我配置queue.php并尝试发送这样的邮件:
\Mail::queue('emails.reminder', [], function($message){
$message->to('xxxxxxx@gmail.com', 'XXX')->subject('XXX');
});
但我有一个错误:
Error executing "SendMessage" on "https://sqs.eu-central-1.amazonaws.com/EmailQueue"; AWS HTTP error: Client error: `POST https://sqs.eu-central-1.amazonaws.com/EmailQueue` resulted in a `404 Not Found` response:
<?xml version="1.0"?><ErrorResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><Error><Type>Sender</Type><Code>I (truncated...)
InvalidAddress (client): The address /EmailQueue is not valid for this endpoint. - <?xml version="1.0"?><ErrorResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><Error><Type>Sender</Type><Code>InvalidAddress</Code><Message>The address /EmailQueue is not valid for this endpoint.</Message><Detail/></Error><RequestId>72ea954e-eaf4-55b8-96bb-c6499a1e4015</RequestId></ErrorResponse>
任何人都可以帮助我吗?
谢谢!
答案 0 :(得分:2)
我做了一个非常简单的错误 - 在block
中的queue.php中'sqs' => ['queue' => 'https://sqs.eu-central-1.amazonaws.com/XXXXXXX/QueueNAME']
我只是打败队列名称,没有完整的网址(但它需要完整的网址:https://sqs.eu-central-1.amazonaws.com/XXXXXXX/QueueNAME
)。
感谢。