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

Unable to capture error on deleting NonExistentQueue #2348

Closed
Moulick opened this issue Nov 3, 2023 · 3 comments
Closed

Unable to capture error on deleting NonExistentQueue #2348

Moulick opened this issue Nov 3, 2023 · 3 comments
Assignees
Labels
bug This issue is a bug. p2 This is a standard priority issue service-api This issue is due to a problem in a service API, not the SDK implementation.

Comments

@Moulick
Copy link

Moulick commented Nov 3, 2023

Describe the bug

I am trying to catch the error that queue does not exist when deleting a non-existent queue. But I unable to check if the error is of type *types.QueueDoesNotExist with errors.As

Expected Behavior

errors.As is able to convert api error AWS.SimpleQueueService.NonExistentQueue: The specified queue does not exist for this wsdl version into types.QueueDoesNotExist

Current Behavior

Unable to unwrap error. The error string returned by the Go SDK is "api error AWS.SimpleQueueService.NonExistentQueue: The specified queue does not exist for this wsdl version."

Reproduction Steps

  1. Try to delete a queue that does not exist
  2. Try to catch that errors.As with types.QueueDoesNotExist
  3. The error was not unwraped astypes.QueueDoesNotExist

Example code repo https://github.com/Moulick/sqs-error-catching

Possible Solution

No response

Additional Information/Context

No response

AWS Go SDK V2 Module Versions Used

module sqs

go 1.20

require (
github.com/aws/aws-sdk-go-v2 v1.22.1
github.com/aws/aws-sdk-go-v2/config v1.22.0
github.com/aws/aws-sdk-go-v2/service/sqs v1.26.0
github.com/aws/aws-sdk-go-v2/service/sts v1.25.0
)

require (
github.com/aws/aws-sdk-go-v2/credentials v1.15.1 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.2 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.1 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.1 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.5.0 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.1 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.17.0 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.19.0 // indirect
github.com/aws/smithy-go v1.16.0 // indirect
)

Compiler and Version used

go version go1.21.3 darwin/arm64

Operating System and version

MacOS Sonoma 14

@Moulick Moulick added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 3, 2023
@RanVaknin RanVaknin self-assigned this Nov 8, 2023
@RanVaknin
Copy link
Contributor

Hi @Moulick ,

This is a known issue with SQS itself.
aws/aws-sdk#105

We already have an internal ticket with SQS, but havent heard back in a while. While I try to reach out to SQS again, I would appreciate if you can create a support ticket via the AWS console as this would help get SQSs attention on the matter.

Thanks,
Ran~

@RanVaknin RanVaknin added service-api This issue is due to a problem in a service API, not the SDK implementation. p2 This is a standard priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Nov 9, 2023
@lucix-aws
Copy link
Contributor

Closing as duplicate

Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

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. p2 This is a standard priority issue service-api This issue is due to a problem in a service API, not the SDK implementation.
Projects
None yet
Development

No branches or pull requests

3 participants