-
Notifications
You must be signed in to change notification settings - Fork 48
Update to SQS 7.4.0 #4996
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
Update to SQS 7.4.0 #4996
Conversation
26e2e74 to
83bbdb6
Compare
|
It seems the region endpoint discovery no longer throws an exception but returns "unknown" which causes one of the tests to fail. Stopping for now |
|
There is this method that deals with unknown regions https://github.com/aws/aws-sdk-net/blob/c74b20bd7ea3e4402479067e27bbb495f406e44b/sdk/src/Core/RegionEndpoint/RegionEndpoint.cs#L174 |
This is required because RegionEndpoint.GetBySystemName() returns `unknown` instead of throwing.
|
@danielmarbach, I pushed a commit to it to validate the region input beforehand. |
| if (!IsValidAwsRegion(sqsConnectionString.Region)) | ||
| { | ||
| throw new ArgumentException("Invalid region endpoint provided"); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am unsure if we need this validation here, because i assume the connection string region would already be validated, @danielmarbach ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is validated by the SDK but not by us. It would throw a different exception though indicating an unknown name or host or something like that. This would at least keep the behavior consistent
No description provided.