tencent cloud

All product documents
Cloud Object Storage
Troubleshooting
Last updated: 2024-02-02 17:35:18
Troubleshooting
Last updated: 2024-02-02 17:35:18

Overview

If an SDK API call to request the COS service fails, the system will return the error information in the callback.

Sample error

cos.headBucket({
Bucket: 'examplebucket-1250000000',
Region: 'COS_REGION', /* Bucket region. Required */
}, function(err, data) {
if (err) {
console.log(err.error);
}
});

Client Exceptions

Parameter
Description
Type
err
Network or service error returned when the request fails. If the request is successful, this parameter is empty. For more information, see Error Codes.
Object
- error
Error message for the request
Object/String

Server Exceptions

Parameter
Description
Type
err
Network or service error returned when the request fails. If the request is successful, this parameter is empty. For more information, see Error Codes.
Object
- statusCode
HTTP status code, such as 200, 403, and 404
Number
- headers
Headers
Object
- error
Error information
Object/String
- - Code
Error code returned by the body when the request fails. For more information, see Error Codes
String
- - Message
Error message returned by the body when the request fails. For more information, see Error Codes
String
- - RequestId
Unique ID of the request in the server request log that can be submitted when you contact us for troubleshooting
String

Using the Diagnosis Tool

COS provides a self-help diagnosis tool to help you quickly locate request problems and debug code.

Directions

1. Copy the request ID (RequestId) returned when the request error occurs.
2. Click Diagnosis Tool.

3. Enter RequestId and click Diagnose.
4. Wait and view the diagnostic result.
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 available.

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