aws / aws/aws-sdk-java-v2

access-analyzer: upon throttling, AwsServiceException is thrown, instead of ThrottlingException

Open
#6,621 6 comments 0 reactions 0 assignees View on GitHub
bug p2 service:access-analyzer
Dominant language
Java
Stars
2.6k
Forks
1k
Avg merge
2d 9h
Merged PRs (30d)
51

Description

### Describe the bug

i am using sdk for access-analyzer, 2.33.0
when i hit throttling, i see that i get `AwsServiceException` , instead of `ThrottlingException`.
in ThrottlingException there is a method (according to the docs) `retryAfterSeconds()` so I would like to use it - to know how much time to "sleep". but all i get is AwsServiceException, and when i call `isThrottlingException()` i get "true".

### Regression Issue

- [ ] Select this option if this issue appears to be a regression.

### Expected Behavior

i would expect the SDL to throw ThrottlingException.

### Current Behavior

i see that the SDK throws AwsServiceException

### Reproduction Steps

call the SDK many times till u hit throttling error.

### Possible Solution

_No response_

### Additional Information/Context

_No response_

### AWS Java SDK version used

2.33.0

### JDK version used

"21.0.6" 2025-01-21 LTS

### Operating System and version

MAC

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.