The secrets_manager.get_paginator('list_secrets') fails since version 1.28.11 #3799
Labels
closing-soon
This issue will automatically close in 4 days unless further comments are made.
pagination
response-requested
Waiting on additional information or feedback.
Describe the bug
Since upgrading to version
1.28.11
, theget_paginator('list_secrets')
of the secrets manager started to fail with theOperation cannot be paginated: list_secrets
error.Expected Behavior
The expectation would be to get a paginated list of secrets as stated in some of the examples in the documentation.
Current Behavior
Instead getting a paginated list of secrets, we get the following error:
Traceback (most recent call last):
File "/opt/load_secrets/load_secrets", line 95, in
main()
File "/opt/load_secrets/load_secrets", line 86, in main
secrets = getattr(mgr_module, 'get_secrets')(args, dv, logger=logger)
File "/opt/load_secrets/aws_secrets_manager.py", line 34, in get_secrets
paginator = sm.get_paginator('list_secrets')
File "/usr/local/lib/python3.8/dist-packages/botocore/client.py", line 671, in get_paginator
raise OperationNotPageableError(operation_name=operation_name)
botocore.exceptions.OperationNotPageableError: Operation cannot be paginated: list_secrets
Reproduction Steps
The following chunk of code was working properly up to version
1.28.10
, but started breaking with the latest versions of boto3:Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.28.11
Environment details (OS name and version, etc.)
EC2 / Ubuntu
The text was updated successfully, but these errors were encountered: