tencent cloud

Cloud Object Storage

Troubleshooting

Download
聚焦模式
字号
最后更新时间: 2024-02-02 15:51:37

Overview

The response returned by an API is of the Response type in Go's HTTP standard library. You can get the error code and message returned by the server through err.Error(). For more information, see Error Codes.

Server Exceptions

The response returned by an API contains the following call structure:
Member
Description
Type
X-Cos-Request-Id
Response header and request ID, which are used to represent a request and are very important for troubleshooting.
string
StatusCode
Status code in the response. 4xx indicates that the request failed due to a client exception. 5xx indicates that the request failed due to a server exception. For more information, see Error Codes.
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.


帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈