There are two possible causes:
For the former case, you are advised to get a new valid request signature before using the API. For the latter case, you need to sync your system time with the time in your time zone.
First, call the ListMultipartUploads
API to list the multipart uploads. Then, call Abort Multipart upload
to abort the multipart upload and delete the uploaded parts.
Check the object path, which should not start with a /
.
You can call the PUT Object - Copy
API to modify x-cos-storage-class
. For more information, please see PUT Object - Copy.
A timestamp is used to determine whether the COS signature has expired and it cannot be set to permanent. If you use a permanent key to generate the signature and want the signature to be permanent, you can set the timestamp to be a long time (for example, 50 years) after the current time. If your signature is generated using a temporary key, which is valid for only up to 2 hours, your signature will also be valid for only 2 hours.
Was this page helpful?