Skip to content

Expire token error code? #1843

Closed
Closed
@lsong0905

Description

@lsong0905

Describe the issue

Hello,

When I issue a S3 request(PUT, GET, etc) with an expire credentials (generated by STS service), the S3 SDK seems returning UNKNOWN = 100 error code from S3Errors.h. The error message "ExpiredToken:Unable to parse ExceptionName: ExpiredToken Message: The provided token has expired." , on the other hand, seems containing some hint that indicates why the request failed.

Other than parsing the error message, is there any better way to verify the request failed due to "ExpiredToken"? I expected to receive an error code that maps to "ExpiredToken" in S3Errors.h, but it is returning UNKNOWN = 100 error code. I am not certain if this is intentional.

Thank you in advance!

Steps to Reproduce

No response

Current behavior

No response

AWS CPP SDK version used

1.7.29

compiler and version used

na

Operating System and version

na

Metadata

Metadata

Assignees

Labels

closed-for-stalenessguidanceQuestion that needs advice or information.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 10 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions