-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
SQS Response Protocol Migrated from XML to JSON #7054
Comments
Interesting - that should have been fixed by #6331 already. Maybe the Ruby SDK uses a different header than the other SDK's to flag that we should return JSON. Will look into it later. |
I can't reproduce this with the latest version of Moto. Looking at the repository that you linked, you are using a custom Docker image: And that Docker image was updated 3 years ago - which makes me think that you're actually running against an old(er) version of Moto. (https://quay.io/repository/cjlarose/moto-sqs-server) |
Hey @bblommers I was able to replicate this using the Dockerfile I provided in the initial post, which uses the most up to date version of Python and Moto I've created a very basic app that uses the most up to date versions of Moto and the AWS Ruby SDK. Interestingly, the https://github.com/mkeemon/moto-aws-ruby-debug Edit: To validate this further, modifying the Gemfile to downgrade gem 'aws-sdk-sqs', '1.65.0' aws-sdk-sqs 1.67.0aws-sdk-sqs 1.65.0 |
Thanks for the investigation @mkeemon. I had only tested with the operations that happened to work, that's why I couldn't reproduce. The problem is that there are a few operations that do not return any useful data (such as I'll raise a PR to fix this + add a test using the Ruby SDK. |
Moto (installed via Docker, pip)
AWS Ruby SDK
According to AWS documentation, the most recent version of their SDKs utilize JSON instead of XML for SQS responses. It appears this is a backward incompatible change, so migrating to the most recent version of the various AWS SDKs will cause cause issues with Moto.
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-json-faqs.html
Tests are failing in the ruby-shoryuken/shoryuken repository due to the XML responses in Moto
Action run in ruby-shoryuken/shoryuken:
Dockerfile for Moto
The text was updated successfully, but these errors were encountered: