You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems the PHP SDK is still sending SendMessage and other queue related requests to the Queue URL when using the json protocol, when it should target the root URL as per the documentation and the other SDKs behavior.
It works with AWS, but it does not really follow the json protocol specifications.
Thanks for letting us know. SQS recently migrated from query to json protocol— looks like the culprit is this middleware we add to the SQS client's handler list. This is no longer needed.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
It seems the PHP SDK is still sending
SendMessage
and other queue related requests to the Queue URL when using thejson
protocol, when it should target the root URL as per the documentation and the other SDKs behavior.It works with AWS, but it does not really follow the
json
protocol specifications.From the Smithy specs:
https://smithy.io/2.0/aws/protocols/aws-json-1_0-protocol.html#protocol-behaviors
I believe this should be fixed to be in compliance with the Smithy specification for the
awsJson1_0
protocol.Expected Behavior
The AWS PHP SDK should send all requests to the root URL when targeting SQS with the
json
protocol.Current Behavior
The PHP SDK is still sending requests to the Queue URL, as shown by this log:
Especially this part:
[effectiveUri] => https://sqs.us-east-2.amazonaws.com/test-queue
Reproduction Steps
Possible Solution
Maybe the issue lies here, for the new protocol we don't need to append the
QueueUrl
anymore to the endpoint?aws-sdk-php/src/Sqs/SqsClient.php
Line 67 in f3276ec
Additional Information/Context
No response
SDK version used
3.286.1
Environment details (Version of PHP (
php -v
)? OS name and version, etc.)PHP 8.2.12 / macOS Sonoma 14.1
The text was updated successfully, but these errors were encountered: