What should I do if I cannot move objects after upgrading the Python SDK?
How do I get a temporary download URL with the Python SDK?
The Python SDK provides APIs for getting request signatures, pre-signed URLs, and pre-signed download URLs. The calling methods to get a pre-signed URL by using a permanent key or temporary key are the same, except that if you use a temporary key, you need to add x-cos-security-token
to the header or query_string
. For more information, see Getting Pre-Signed URLs. What should I do if the Python SDK reports an exception?
If an XML Python SDK operation is successful, a dict or None will be returned. If an SDK API for requesting the COS service fails, the system will report a CosClientError or CosServiceError.
CosServiceError: Errors returned due to client requests not meeting requirements, such as accessing a non-existent or unauthorized object. For more information, see Error Codes. CosClientError: Network exceptions, I/O errors during file reads/writes, parameter verification failures, etc.
Apakah halaman ini membantu?