tencent cloud

All product documents
Cloud Object Storage
Python SDK FAQs
Last updated: 2024-02-04 16:24:43
Python SDK FAQs
Last updated: 2024-02-04 16:24:43

What should I do if I cannot move objects after upgrading the Python SDK?

You can call the PUT Object - Copy and DELETE Object APIs to move objects. We recommend you check the data consistency before deleting an object as instructed in MD5 Verification.

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.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon