-
Notifications
You must be signed in to change notification settings - Fork 146
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
"Bad Request - Action: " with GoLang github.com/aws/aws-sdk-go-v2/service/sqs v1.28.0 #281
Comments
Getting the same with a local build from 42f5c2d commit. Using both the postman collection and the was cli |
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 Env: |
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
|
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 . |
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. |
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. |
Attempting to use GetQueueUrl with GoLang github.com/aws/aws-sdk-go-v2/service/sqs v1.28.0 causes Bad Request.
Works fine with v1.24.7.
Needs further investigation.
The text was updated successfully, but these errors were encountered: