All Products
Search
Document Center

Object Storage Service:0002-00000007

Last Updated:Jul 21, 2023

Problem description

The temporary access credentials included in the request expire.

Causes

Temporary access credentials provided by STS are used in the request to access OSS. However, the credentials in the request expire.

Examples

Temporary access credentials with a validity period of one hour is obtained from STS. If these credentials are used in a request to access OSS, this error occurs.

Solutions

To use STS access credentials to initiate a request, call the AssumeRole operation or use STS SDKs for various programming languages to obtain temporary access credentials. You must specify a validity period for the temporary access credentials obtained from STS. If the temporary access credentials expire, you must obtain new temporary access credentials

For more information, see Use temporary credentials provided by STS to access OSS.