全部產品
Search
文件中心

Object Storage Service:使用EC錯誤碼自助排查

更新時間:Feb 28, 2024

當訪問OSS出現錯誤時,OSS返回的錯誤資訊中包含EC,EC與錯誤原因一一對應。本文介紹如何通過EC尋找問題原因並自助解決問題。

背景資訊

每一個錯誤原因對應唯一的EC。

例如,您發起了AppendObject請求,但是請求URL中的position參數不是合法的正整數。

  • 錯誤請求

    POST /example?append&position=test HTTP/1.1 
    Host: oss-example.oss-cn-hangzhou.aliyuncs.com 
    Date: Thu, 11 Aug 2019 01:44:54 GMT
    Content-Length: 322
    Content-Type: application/octet-stream
    Authorization: OSS bwo4j5l8d3j****:MCY5nnfgfJU/f3Xe0odqBtG5****
  • 返回樣本

    返回結果中包含<EC>0016-00000502</EC> ,作為該錯誤原因的唯一標識。

    HTTP/1.1 400 Bad Request
    Server: AliyunOSS
    Date: Thu, 11 Aug 2019 01:44:54 GMT
    Content-Type: application/xml
    Content-Length: 322
    Connection: keep-alive
    x-oss-request-id: 57ABD896CCB80C366955****
    x-oss-server-time: 0
    <?xml version="1.0" encoding="UTF-8"?>
    <Error>
      <Code>MissingArgument</Code>
      <Message>Missing Some Required Arguments.</Message>
      <RequestId>57ABD896CCB80C366955****</RequestId>
      <HostId>oss-example.oss-cn-hangzhou.aliyuncs.com</HostId> 
      <EC>0016-00000502</EC> 
      <RecommendDoc>https://api.aliyun.com/troubleshoot?q=0016-00000502</RecommendDoc>
    </Error>

操作步驟

通過以上錯誤請求樣本返回的EC尋找問題原因及對應解決方案的操作步驟如下。

  1. 開啟Object Storage Service產品文檔首頁

  2. 在OSS文檔首頁左上方,單擊搜尋協助內容搜尋方塊

  3. 在搜尋方塊中,輸入EC,例如0016-00000502。

    search2

  4. 在搜尋結果列表中,單擊目標EC文檔。