Closed heathdutton closed 4 years ago
Thanks for the report! I'll work on that tomorrow and post back.
I think I may have figured it out. In handler.php I'm using:
return $app->makeWith(LaravelSqsHandler::class, [
'connection' => 'sqs',
'queue' => getenv('SQS_PREFIX') . '/' . getenv('SQS_QUEUE'),
]);
@heathdutton I am sending you an email right now, I have more details for you about this project. Talk to you soon.
@mnapoli
I had the same issue and it required:
'queue' => getenv('SQS_PREFIX').'/'.getenv('SQS_QUEUE'),
Should we update documentation?
Isn't the documentation mentioning to put the full URL already?
Well, I guess that depends on the interpretation.
I used both SQS_PREFIX
and SQS_QUEUE
for Lumen, while worker.php
example expects SQS_QUEUE
to include also SQS_PREFIX
.
👍 then maybe a note about this could help indeed.
Otherwise environment variables will have different meanings which can lead to potential issues in the future.. Btw, thanks for this amazing work!
I agree with @fabiofdsantos laravel-bridge should be using the same environment variable meanings as Laravel/Lumen. That is, the SQS_PREFIX is the URL without the queue name and SQS_QUEUE is the queue name. Then this is more in line with the idea of having one connection with multiple queues and users coming over from the Laravel/Lumen server based world (trying serverless) will have less friction (as we've all had in this thread). All that's needed is an update to the README.md I think?
Thanks a ton for putting this repo out there. Can't wait to use it!
Using Laravel 7/latest.
I am not having any trouble inserting queued jobs, but the worker lambda function gets an error trying to use DeleteMessage. Looks like the prefix or account number is missing. I followed your handler.php script exactly. Feels like I'm missing something quite obvious.
EnvVars:
Logs: