Closed emilsedai closed 3 months ago
Token is returned if the maxResults
parameter is not specified, but the documentation mentions the following
If this parameter is used, the operation returns up to MaxResults results at a time,
along with a NextToken value. To get the next set of results, include the NextToken
value in a subsequent call. If this parameter is not used, the operation returns up to
50 results and a NextToken value, if applicable.
@meenakshi8016 to see if I understand the issue:
maxResults
is not provided, nextToken
is returned in the responsemaxResults
= 2 for the same service namespace and same account, nextToken
is not returned How many results do you get in the first call when maxResults
is not provided?
@debora-ito when maxResults
is not populated I get results 50
at a time
Understood. I'll reach out to the ApplicationAutoScaling team and keep this issue updated.
Moving this to the central aws-sdk
repo for cross-SDK visibility.
P98567392
Reached out to service team for the backlog item in their feature list. As of now, no ETA is available for prioritization and fix. Closing this issue since it is already tracked in service team backlog.
This issue is now closed.
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.
Describe the bug
The result of the function
describeScalableTargets
of the classAWSApplicationAutoscaling
does not have the fieldnextToken
populated.Pagination doesn't work for this request because
nextToken
will always be null.Expected Behavior
The
nextToken
field would have the token for requesting the next page of the API response.Current Behavior
The
nextToken
field in theDescribeScalableTargetsResult
is always null.Reproduction Steps
Possible Solution
No response
Additional Information/Context
The problem was reproduced in accounts with multiple autoscalers.
AWS Java SDK version used
1.12.400
JDK version used
17.0.8
Operating System and version
Ubuntu 22.04.1 LTS