Comments (9)
Otherwise environment variables will have different meanings which can lead to potential issues in the future..
Btw, thanks for this amazing work!
from laravel-bridge.
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?
from laravel-bridge.
Thanks for the report! I'll work on that tomorrow and post back.
from laravel-bridge.
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'),
]);
from laravel-bridge.
@heathdutton I am sending you an email right now, I have more details for you about this project. Talk to you soon.
from laravel-bridge.
@mnapoli
I had the same issue and it required:
'queue' => getenv('SQS_PREFIX').'/'.getenv('SQS_QUEUE'),
Should we update documentation?
from laravel-bridge.
Isn't the documentation mentioning to put the full URL already?
from laravel-bridge.
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
.
from laravel-bridge.
👍 then maybe a note about this could help indeed.
from laravel-bridge.
Related Issues (20)
- View not found in Laravel when I cache the views
- Uploaded files are not shown in S3 Bucket
- Error Unzipped size must be smaller than 209927080 bytes. HOT 1
- SES - Request to AWS SES API failed. Reason: The Security Token included in the request is invalid HOT 1
- [v2] Issues with Build Server HOT 1
- storage directory creation causes permission issues with bref/php-82-fpm-dev:2 HOT 6
- Using multiple queues on a single connection: is this possible? HOT 3
- SQS QueueHandler tried to delete message, got error `400 Bad Request` HOT 7
- Queue worker does not respect `maxExceptions` HOT 8
- SQS - get InvalidClientTokenId (client): The security token included in the request is invalid HOT 1
- Compatibility with Octane 2.x HOT 2
- Output on STDERR during initialization: is there is a way to not having that? HOT 4
- Cannot deploy project anymore HOT 1
- When using Laravel Passport the storage is overridden to /tmp before the keys are loaded HOT 2
- Reading the AWS Request ID HOT 9
- Is there a way to disable the automatic logging added by this package for "Job Processing" and "Job Processed" ? HOT 6
- If the queue is SQS, retries due to job timeouts are different from retries due to errors.
- App::runningInConsole() returning true on web function when octane is turned on HOT 1
- Invalid configuration value provided for "token". Expected Aws\Token\TokenInterface|Aws\CacheInterface|array|bool|callable, but got string HOT 2
- SQS Session token is stored only in default connection HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-bridge.