在Laravel 5.1中,我收到以下错误:
product.ERROR: exception 'Aws\Sqs\Exception\SqsException' with message
'Error executing "ReceiveMessage" on "https://sqs.us-east-1.amazonaws.com/your-queue-url"; AWS HTTP error: Client error: `POST https://sqs.us-east-1.amazonaws.com/your-queue-url` resulted in a `403 Forbidden` response:
<?xml version="1.0"?><ErrorResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><Error><Type>Sender</Type><Code>I (truncated...)
InvalidClientTokenId (client): The security token included in the request is invalid. - <?xml version="1.0"?><ErrorResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><Error><Type>Sender</Type><Code>InvalidClientTokenId</Code><Message>The security token included in the request is invalid.</Message><Detail/></Error><RequestId>f2ee54a4-bc0f-56cf-959f-046ce8302605</RequestId></ErrorResponse>'
但我没有使用Sqs。我的配置:QUEUE_DRIVER=async
发生什么事了?感谢。
GuzzleHttp\Exception\ClientException: Client error: `POST https://sqs.us-east-1.amazonaws.com/your-queue-url` resulted in a `403 Forbidden` response:
<?xml version="1.0"?><ErrorResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><Error><Type>Sender</Type><Code>I (truncated...)
in /iwzdata/www/taotaoe/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:111
Stack trace:
#0 /iwzdata/www/taotaoe/vendor/guzzlehttp/guzzle/src/Middleware.php(65): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response))
#1 /iwzdata/www/taotaoe/vendor/guzzlehttp/promises/src/Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
#2 /iwzdata/www/taotaoe/vendor/guzzlehttp/promises/src/Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), Array)
#3 /iwzdata/www/taotaoe/vendor/guzzlehttp/promises/src/TaskQueue.php(47): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
答案 0 :(得分:0)
答案在错误信息中......
InvalidClientTokenId(client):请求中包含的安全令牌无效。
确保使用正确的令牌并以正确的方式发送。一个好的做法是使用代理(如1)来查看您实际通过该线路发送的内容。