Skip to content
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 Bad response code = 400, statusText=Bad Request with example #303

Open
cup-a-snot opened this issue Jan 25, 2021 · 0 comments
Open

SQS Bad response code = 400, statusText=Bad Request with example #303

cup-a-snot opened this issue Jan 25, 2021 · 0 comments
Labels

Comments

@cup-a-snot
Copy link

I tried the example for SQS and replaced the values with mine and I get the following error:

Unhandled Exception: Exception: Bad response code=400, statusText=Bad Request

This is my code:
`var credentials = Credentials(
accessKey: 'XXXXXXXXXXXXX',
secretKey: 'YYYYYYYYYYYYYYYYYY');

var httpClient = http.ConsoleClient();
var aws = new Aws(credentials: credentials, httpClient: httpClient);
var queue = aws.sqs
    .queue('https://sqs.us-east-1.amazonaws.com/123456789/nameOfMyQueue.fifo');
await queue.sendMessage('Hello from Dart client!');
httpClient.close();`

Any idea of what could be going on?

Cheers

@Schwusch Schwusch added the bug label Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants