简体   繁体   English

Laravel 5.1 Mail ::队列Amazon SQS错误404

[英]Laravel 5.1 Mail::queue Amazon SQS error 404

I first encountered with queue services (in that case it Amazon SQS). 我第一次遇到队列服务(在这种情况下是Amazon SQS)。 I configure queue.php and tried to send mail like that: 我配置queue.php并试图像这样发送邮件:

\Mail::queue('emails.reminder', [], function($message){
    $message->to('xxxxxxx@gmail.com', 'XXX')->subject('XXX');
});

But I have an error: 但是我有一个错误:

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>

Can anyone help me? 谁能帮我?

Thanks! 谢谢!

I have done very simple mistake - in queue.php in block 我在块中的queue.php中做了非常简单的错误

'sqs' => ['queue'  => 'https://sqs.eu-central-1.amazonaws.com/XXXXXXX/QueueNAME']

I just wtire Queue name, without full url (But it need full URL like that: https://sqs.eu-central-1.amazonaws.com/XXXXXXX/QueueNAME ). 我只是打破队列名称,没有完整的URL(但它需要完整的URL,如: https://sqs.eu-central-1.amazonaws.com/XXXXXXX/QueueNAME ://sqs.eu-central-1.amazonaws.com/XXXXXXX/QueueNAME)。

Thanks. 谢谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM