-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.285.1 & >=3.285.2 break sending using a different SQS prefix #3031
Comments
Hi @williamdes, sorry to hear about your issues. SQS service migrated from query to JSON protocol. That changed was introduced in the same version you mentioned - Add a custom middleware that modifies the endpointAssuming you have a custom server handling the requests and hence you need to use a custom endpoint $client = new SqsClient([
'region' => 'us-east-2',
]);
$client->getHandlerList()->appendBuild(
function (callable $handler) {
return function ($command, RequestInterface $request) use ($handler) {
if (isset($command['QueueUrl'])) {
$queueUrl = $command['QueueUrl'];
$request = $request->withUri(
new \GuzzleHttp\Psr7\Uri($queueUrl)
);
}
return $handler($command, $request);
};
}
);
$client->sendMessage([
'QueueUrl' => 'http://customqueueurl',
'MessageBody' => 'Test message'
]); - Pin your version to any version below
|
Good catch ! I upgraded to the latest version of https://github.com/Admiral-Piett/goaws/releases but still have the issue.
I added 'endpoint' => env('SQS_ENDPOINT'), to the Laravel (11.x) config: https://github.com/laravel/framework/blob/3c672db23565c035903104e5329b5b32df560382/config/queue.php#L59 And it worked using the value: @taylorotwell where you aware of AWS breaking the binding with the config ? |
Describe the bug
3.285.1 creates this error (
Error parsing JSON: Syntax error
):And since
3.285.2
:While dispatching a Laravel job locally.
The queue is configured like this:
And the values
You can see that
SQS_PREFIX
is respected by version3.285.1
but does not work and since3.285.2
it is ignoredRegression Issue
Expected Behavior
Push my job
Current Behavior
No job pushed
Reproduction Steps
See description
Possible Solution
No response
Additional Information/Context
No response
SDK version used
3.285.2 and 3.288.1
Environment details (Version of PHP (
php -v
)? OS name and version, etc.)PHP 8.2.25 (cli) (built: Oct 28 2024 22:11:18) (NTS)
The text was updated successfully, but these errors were encountered: