-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
bugThis issue is a confirmed bug.This issue is a confirmed bug.documentationThis is a problem with documentation.This is a problem with documentation.p3This is a minor priority issueThis is a minor priority issues3service-apiThis issue is caused by the service API, not the SDK implementation.This issue is caused by the service API, not the SDK implementation.
Description
Describe the bug
The documentation specifies a string for the variable "MaxKeys" in list_objects_v2 fuction, but this raises an error as it expects an integer.
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
I followed the documentation and got en error:
Invalid type for parameter MaxKeys, value: 2, type: <class 'str'>, valid types: <class 'int'>
Current Behavior
Raises error despite of documentation guidelines
Reproduction Steps
BUCKET = "example_bucket"
PREFIX = "example_prefix"
objects_list = s3.list_objects_v2(
Bucket=BUCKET,
Prefix=PREFIX,
MaxKeys=2
)
Possible Solution
Change documentation, or change the function.
Additional Information/Context
No response
SDK version used
1.36.3
Environment details (OS name and version, etc.)
Ubuntu 24.04.1
Metadata
Metadata
Assignees
Labels
bugThis issue is a confirmed bug.This issue is a confirmed bug.documentationThis is a problem with documentation.This is a problem with documentation.p3This is a minor priority issueThis is a minor priority issues3service-apiThis issue is caused by the service API, not the SDK implementation.This issue is caused by the service API, not the SDK implementation.