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

Add extra message for SQS exceptions in QueueAttributesResolver #1200

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joseiedo
Copy link

@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?

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants