aws / aws-sdk-go

AWS SDK for the Go programming language.

Home Page:http://aws.amazon.com/sdk-for-go/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calling ListBucket result error, only return partial result

EugeneYCSong1212 opened this issue · comments

Describe the bug

I have own accessKey, secretKey, region and endpoint and I have built my client as below,
image
then I have supported my users relying on checking whether the bucket and the object exists, the implement is as below
image
However, which is strange is that the count of my ListBuckets returns 1000 when I am sure I have buckers more than it. Therefore, I have implemented a ExistBucket function relying on ListBuckets and I get the wrong result. The implementation is as below,
image
However, I can get objects under this bucket. Is there any filter of list buckets I have ignored and how could I make sure see the right result. I 'll appreciate it if you could help~

Expected Behavior

I hope it could list all the buckets when I am calling ListBuckets(nil)

Current Behavior

it returns 1000 of it

Reproduction Steps

a.txt
I can get objects in bucket 'aip-svc-123-modelrepo' but I can not get such bucket in 'ListBucket'

Possible Solution

No response

Additional Information/Context

No response

SDK version used

v1.48.3 & the latest

Environment details (Version of Go (go version)? OS name and version, etc.)

go1.20

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.