Git Product home page Git Product logo

Comments (6)

gitaugakwa avatar gitaugakwa commented on June 24, 2024

Getting the same with a local build from 42f5c2d commit.

Using both the postman collection and the was cli

from goaws.

gitaugakwa avatar gitaugakwa commented on June 24, 2024

My bad, I wasn't sending the appropriate body using the collection.

Works with the postman but the cli doesn't work with a command like
aws --endpoint-url http://localhost:4100 --profile Profile --region eu-west-1 sqs list-queues

Env: aws-cli/2.13.38 Python/3.11.6 Windows/10 exe/AMD64 prompt/off

from goaws.

jrhy avatar jrhy commented on June 24, 2024

I see a similar response after upgrading from github.com/aws/aws-sdk-go from v1.45.28 to v1.48.6. It could be because the SDK request format has changed, and no longer uses Content-Type: application/x-www-form-urlencoded, but Content-Type: application/x-amz-json-1.0, like:

POST / HTTP/1.1
Host: 127.0.0.1:9324
Accept-Encoding: zstd,gzip
Content-Type: application/x-amz-json-1.0
X-Amz-Date: 20231128T222049Z
X-Amz-Target: AmazonSQS.GetQueueUrl

{"QueueName":"myqueue"}

from goaws.

jrhy avatar jrhy commented on June 24, 2024

The AWS SDK for Go began supporting JSON requests for SQS in v1.47.7, and AWS SDK for Go v2 in v1.28.0, according to https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-json-faqs.html .

from goaws.

iamed2 avatar iamed2 commented on June 24, 2024

AWS changed the service definition in-place for SQS without a version change, switching it from Query to JSON. Most SDKs will not be set up to handle both versions; either they are custom-written (rare) and will continue using the Query protocol, or they are auto-generated and will switch to the JSON protocol when regenerated from recent specs. I haven't yet seen an SDK that supports the JSON protocol for SQS but allows forcing the Query protocol.

Likely there is a significant portion of users in both camps right now.

from goaws.

Admiral-Piett avatar Admiral-Piett commented on June 24, 2024

I think this is a duplicate of #279 we are working on implementing JSON processing as quickly as we can. Though the work is significant, and I only have so much time. 🙂

There's a feature branch in that issue with the work in progress if anyone would like to track and/or contribute.

Closing as a duplicate.

from goaws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.