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

Updated SQS hello-world example #512

Merged
merged 3 commits into from
Jun 21, 2021
Merged

Updated SQS hello-world example #512

merged 3 commits into from
Jun 21, 2021

Conversation

Doug-AWS
Copy link
Contributor

Issue #, if available:
The hello-world code example was missing the required message_group_id parameter for send_message call

Description of changes:
Added the parameter.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

.send()
.await?;
println!("sent a message: {:#?}", rsp);

println!("Response from sending a message: {:#?}", rsp);

let rcv_message_output = client
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you delete line 41 while you're here? (and retest). That issue should be fixed. I'm not sure what's going on here, I'm pretty sure I manually tested this example. Did you get an error because message_group_id was missing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Here's the output if I comment out line 32 (.message_group_id("MyGroup")):

Error: Unhandled(Error { code: Some("MissingParameter"), message: Some("The request must contain the parameter MessageGroupId."), request_id: Some("e7512769-443f-5116-80ee-7e23e41e2d13"), extras: {} })

@rcoh rcoh enabled auto-merge (squash) June 21, 2021 15:37
@rcoh rcoh merged commit 0f534f0 into main Jun 21, 2021
@rcoh rcoh deleted the doug-update-sqs-helloworld branch June 21, 2021 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants