Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

error:SerializationError: failed to decode REST XML response #4552

@201341

Description

@201341

Describe the bug

when I use aws s3 ls, it can show the correct filename.
截屏2022-09-09 10 37 27

But when I use aws-sdk-go to list, It reports the error SerializationError: failed to decode REST XML response.
This is my code

param := s3.ListObjectsInput{
      Bucket:  &s.bucket,
      Prefix:  &prefix,
      Marker:  &marker,
      MaxKeys: &limit,
}
resp, err := s.s3.ListObjects(&param)

Expected Behavior

s3.ListObjects List the filename correctly.

Current Behavior

s3.ListObjects report the error wrong.

Reproduction Steps

1: Create these files.
截屏2022-09-09 10 37 27
2: Upload these to object storage.
3: use the aws-sdk-go to list the files

Possible Solution

No response

Additional Information/Context

No response

SDK version used

v1.44.94

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

1.18

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions