Comments (6)
Getting the same with a local build from 42f5c2d commit.
Using both the postman collection and the was cli
from goaws.
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.
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.
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.
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.
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)
- Allow either `goaws.yml` or `goaws.yaml` config by default HOT 3
- waitTimeSeconds being set to default even if developer called it with 0 HOT 1
- fatal error: concurrent map read and map write HOT 2
- What is the project state ? HOT 8
- Populate `Owner` tag in ListSubscriptionsByTopic Response HOT 5
- Health endpoint available but unused HOT 2
- c
- Feature Request: Configuration Hot-Reload HOT 1
- SNS Publish is content type json when body isnt json HOT 1
- Redrive policy MaxReceive logic is off by one
- Old release v1.1.2 is marked as latest HOT 10
- Optionally persisting topology (queues, topics and subscriptions) HOT 3
- Error when testing with node using aws-sdk v2 HOT 2
- Support SNS PublishBatch HOT 3
- How to set endpoint for local development using AWS SNS? HOT 1
- Release v0.4.3 arm64 is not support config file HOT 2
- SQS AWS JSON-1.0 gives bad request HOT 1
- Can we make a new release? 0.4.6 HOT 1
- Boto3 SNS Publish HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goaws.