-
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
aws-sdk-core >= 3.192.0 may be not compatible with AWS SQS APIs in XML format #3030
Comments
We're aware of the sweeping protocol changes that affected xml in some way. This was an organizational effort to align with expected behavior. There is not much we can do about it now. My question is, why are you trying to upgrade core and not the sqs gem? If you were to upgrade both, you shouldn't see any issue. |
@mullermp I understand updating both aws-sdk-sqs and aws-sdk-core is the best solution. We are working towards that. Additionally, our application is so huge that updating all AWS SDK gems at the same time is difficult. These are why we have tried to update aws-sdk-core only.
Does this mean that the backward compatibility break reported in this issue is intentional and cannot be fixed? |
I understand. I am very sorry about this. Once localstack is updated to support SQS JSON, you should be able to upgrade SQS and core - no need to upgrade your other SDK gems unless you want to (you should) Have you created an issue or feature request? I can also poke the author to state that this is now expected, and we can possibly help with code. It was not intended to break, however, we've only heard of 2 other cases of SQS related breakage. Given that was minor in that only a few customers were impacted, we decided to commit with the overall changes. Those other customers were able to upgrade easily. For now, you can possibly get away with upgrading aws-sdk-core while also doing a monkey patch. I'm not exactly sure what affected method you would need to patch, but my guess would be |
Thank you! Our basic policy at the moment is as follows.
However, I was interested in this incompatibility, so I filed this issue.
Thank you, I agree.
Does this mean that there is a point of contact other than this repository to report this issue? |
Possibly, but we haven't seen any reports. The query protocol is not largely used anymore.
I meant for localstack. Is SQS JSON supported in localstack v3? If so, then your path is to upgrade. If not, create an issue or feature request with their repo and I can put a comment on it.
I would say you can use that monkey patch if it's working for you. You may as well also patch the other xml parsing changes as well just so it is complete. |
👍
I got it thanks. locastack v3 supports SQS JSON, we are working on upgrading localstack in progress. I sincerely appreciate your response. I understand that this issue will not be fixed. |
Thank you. I'm sorry again that this affected you. I think it would be best to monkey patch the parser for now until you can upgrade your local stack and then finally your SDK gems. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
Our application uses aws-sdk-core 3.170.0 and aws-sdk-sqs 1.46.0.
Recently, we try to update aws-sdk-core to 3.196.1. However, we canceled the update because some features using AWS SQS were degraded.
As a result of investigation, it was found that the result of SQS ReceiveMessage was unintentionally nil.
I did some more detailed debugging and found the following:
Expected Behavior
We can receive the message in AWS SQS when aws-sdk-core >= 3.192.0 and aws-sdk-sqs < 1.66.0.
Current Behavior
We CANNOT receive the message in AWS SQS when aws-sdk-core >= 3.192.0 and aws-sdk-sqs < 1.66.0.
Reproduction Steps
I prepared a sample repository for reproducing this issue.
https://github.com/yokonao/aws-sdk-ruby-examples?tab=readme-ov-file#sqs-xml
Possible Solution
No response
Additional Information/Context
No response
Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version
aws-sdk-core and aws-sdk-sqs
Environment details (Version of Ruby, OS environment)
Ruby 3.1.5, macOS Ventura
The text was updated successfully, but these errors were encountered: