tencent cloud

Feedback

Troubleshooting

Last updated: 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.
    
    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