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

UnauthorizedOperation is not supported yet in error handling #1972

Open
Flow86 opened this issue Jun 24, 2022 · 0 comments
Open

UnauthorizedOperation is not supported yet in error handling #1972

Flow86 opened this issue Jun 24, 2022 · 0 comments
Labels
bug This issue is a bug. needs-reproduction This issue needs reproduction. p2 This is a standard priority issue

Comments

@Flow86
Copy link

Flow86 commented Jun 24, 2022

Describe the bug

If you block a region via AWS Control Tower, any operation (EBS, EC2, RDS) will return UnauthorizedOperation error.
This error can not be handled in a special way. Thats not good, but not a bug yet.
If you try to use GetExceptionName on the error, you get

Unable to parse ExceptionName: UnauthorizedOperation

as a result. And thats wrong.

// ...
const auto error = outcome.GetError();

// if(error.GetErrorType() == Aws::RDS::RDSErrors::UNAUTHORIZED_OPERATION) // -> not possible, since error does not exist
// {}

error.GetExceptionName() // -> returns "Unable to parse ExceptionName: UnauthorizedOperation"

Expected Behavior

UnauthorizedOperation should be handled in all places where it can happen (i.e "core"?)

Current Behavior

see "Describe the bug"

Reproduction Steps

see "Describe the bug"

Possible Solution

see "Describe the bug"

Additional Information/Context

No response

AWS CPP SDK version used

1.9.285

Compiler and Version used

VS2022

Operating System and version

Windows 11

@Flow86 Flow86 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jun 24, 2022
@Flow86 Flow86 changed the title (short issue description) UnauthorizedOperation is not supported yet in error handling Jun 24, 2022
@jmklix jmklix added p2 This is a standard priority issue needs-reproduction This issue needs reproduction. and removed needs-triage This issue or PR still needs to be triaged. labels Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-reproduction This issue needs reproduction. p2 This is a standard priority issue
Projects
None yet
Development

No branches or pull requests

2 participants