Skip to content

Add more detailed error message for SQS exceptions in QueueAttributesResolver #1200

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

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

joseiedo
Copy link
Contributor

@joseiedo joseiedo commented Sep 2, 2024

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Checks in QueueAttributesResolver.wrapException if the upcoming exception is an SqsException. If true, it adds a message suggesting the user check their credentials, network, and configuration.

💡 Motivation and Context

Solves #1149
The current message has caused some confusion regarding errors related to SQS, leading some users to mistakenly think that the QueueAttributesResolver class was the issue.

💚 How did you test it?

I ran a test that throws a QueueDoesNotExistException and examined the stack trace.

image

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • I updated reference documentation to reflect the change
  • All tests passing
  • No breaking changes

🔮 Next steps

Check if this new message is good enough :)
(And if its the right place to make this change)

@github-actions github-actions bot added the component: sqs SQS integration related issue label Sep 2, 2024
@maciejwalkowiak
Copy link
Contributor

It looks good to me. @tomazfernandes any concerns?

@maciejwalkowiak maciejwalkowiak added this to the 3.3.0 M2 milestone Dec 11, 2024
@maciejwalkowiak maciejwalkowiak added the type: enhancement Smaller enhancement in existing integration label Dec 11, 2024
@maciejwalkowiak maciejwalkowiak merged commit 18b1ea8 into awspring:main Dec 11, 2024
4 checks passed
@maciejwalkowiak maciejwalkowiak changed the title Add extra message for SQS exceptions in QueueAttributesResolver Add more detailed error message for SQS exceptions in QueueAttributesResolver Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: sqs SQS integration related issue type: enhancement Smaller enhancement in existing integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants