Closed
Description
Describe the bug
After the #5060, for example, the error code of deleting a non-existent queue is changed from AWS.SimpleQueueService.NonExistentQueue
to NonExistentQueue
. But the SQS api comes back with AWS.SimpleQueueService.NonExistentQueue
in practise and make the error code check unworkable.
aws/aws-sdk-go-v2#2348
aws/aws-sdk#105
Expected Behavior
The error code of deleting a non-existent queue can match sqs.ErrCodeQueueDoesNotExist
Current Behavior
Not match
Reproduction Steps
input := &sqs.DeleteQueueInput{
// non-existent queue
QueueUrl: aws.String(url),
}
if _, err := s.DeleteQueue(input); err != nil {
if ae, ok := err.(awserr.Error); ok && ae.Code() == sqs.ErrCodeQueueDoesNotExist {
return nil
} else {
return err
}
}
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.47.13
Environment details (Version of Go (go version
)? OS name and version, etc.)
go1.19.7 linux/amd64