全部產品
Search
文件中心

Intelligent Media Management:錯誤處理

更新時間:Dec 27, 2024

通過本文您可以瞭解Intelligent Media Management請求發生錯誤時的錯誤格式、通用錯誤碼和常見錯誤及處理。

錯誤格式

如果在處理請求時發生異常,則Intelligent Media Management會返回如下格式的錯誤資訊。

{
    "RequestId": "D18E94DF-1D00-0B75-811E-****",
    "HostId": "imm.cn-hangzhou.aliyuncs.com",
    "Code": "InvalidArgument",
    "Message": "The parameter ProjectName is required but not provided.",
    "Recommend": "https://next.api.aliyun.com/troubleshoot?q=InvalidArgument&product=imm"
}

HTTP狀態代碼也會相應變化,錯誤資訊的參數說明請參見下表。

參數

描述

RequestId

當次請求的Request ID。

如果請求失敗需要提供協助,請使用DingTalk搜尋DingTalk群號31690030817加入DingTalk群進行反饋。

HostId

請求所在的地區對應的Endpoint。

如果請求失敗需要提供協助,請使用DingTalk搜尋DingTalk群號31690030817加入DingTalk群進行反饋。

Code

錯誤碼,提示錯誤類型。

Message

錯誤訊息,提供錯誤的原因和解決辦法。

Recommend

快捷搜尋連結。

通用錯誤碼

下表列出了通用錯誤碼,涵蓋大部分可能出現的錯誤。

  • HTTP Status Code列為響應的HTTP狀態代碼。

  • Code列為錯誤碼,其中{ParameterName}和{ResourceType}在實際返回的響應中分別對應參數名稱和資源類型。

  • Message列為更具體的錯誤資訊。錯誤資訊可能與實際返回的響應略有不同。

HTTP Status Code

Code

Message樣本

描述

400

InvalidArgument

%s

參數不合法,請參考文檔設定參數值。

400

Missing{ParameterName}

{ParameterName} is mandatory for this action.

參數缺失,執行該操作時必須設定對應參數。

400

LimitExceededError

Message: input quota exceed the max value

輸入的參數值不合法,超出合法範圍。

400

LimitExceededError

Message: resource count exceeds the limit

資源數量超出限制,請檢查。

400

Invalid{ParameterName}

Specified parameter {ParameterName} is not valid.

參數不合法。

400

ResourceAlreadyExists

The specified resource {ResourceType} already exists.

資源已經存在,請檢查。

400

ResourceNotFound

The specified resource {ResourceType} is not found.

資源不存在,請檢查。

400

InvalidJSON Array parsing error,{ParameterName}

Specified parameter JSON Array parsing error, {ParameterName} is not valid.

參數值JSON解析錯誤,不是正確的JSON格式。

400

MalformedPOSTRequest

Invalid json string.

請求的格式錯誤。

403

AccessDenied

%s

存取權限錯誤,沒有存取權限。

400

Throttling.Api

The request was denied due to flow control.

API請求調用頻率太高,觸發API QPS限流。

400

Throttling.User

Request was denied due to user flow control.

API請求調用頻率太高,觸發使用者QPS限流。

409

StatusConflict

%s

狀態衝突。

400

Invalid{ResourceType}.Unsupported

The resource {ResourceType} is not supported. Please check.

資源類型不支援,請檢查。

400

Invalid{ResourceType}.DownloadFailed

The resource {ResourceType} can not be downloaded. Please check.

資源類型不能下載,請檢查。

403

Forbidden.AccountNotFound

The specified account does not exist. Please check your account.

指定帳號不存在,請檢查帳號是否正確。

403

Forbidden.AccountInDebt

The specified account is in debt. Please check your permission.

指定帳號已欠費,請檢查帳號的許可權。

403

Forbidden.ServiceRole

Cannot access specified service role. Please check your permission.

不能訪問指定的服務角色,請檢查帳號的許可權。

403

Forbidden.RiskControl

This operation is forbidden by Alibaba Cloud RiskControl system. Please check.

阿里雲風險控制系統禁止此操作。

403

Forbidden

User not authorized to operate on the specified APIs. Please check your permission.

使用者未被授權使用指定API進行操作,請檢查帳號的許可權。

400

StateConflict

User operation is not valid. Please try again later.

操作不合法,請稍後重試。

408

Timeout

Request timed out. Please try again later.

請求逾時,請稍後重試。

500

InternalError

The request has been failed due to some unknown error. Please try again later.

由於未知原因請求失敗,請稍後重試。

405

HTTPMethodNotAllowed

The request http method is not supported for this resource. Please refer to document.

資源不支援HTTP方式的請求,請參考文檔設定。

503

ServiceUnavailable

The request has failed due to a temporary failure of the server. Please try again later.

由於伺服器臨時故障請求失敗,請稍後重試。

503

ServiceUnavailable.RegionMaintaining

System maintenance is in progress on the selected region. Please wait a few minutes before trying again.

所選地區的系統正在維護中,請等待幾分鐘再重試操作。

400

STSAccessError

STS access error. Please check your permission.

訪問STS錯誤,請檢查帳號的許可權。

400

OSSAccessError

OSS access error. Please check your permission.

訪問OSS錯誤,請檢查帳號的許可權。

403

Throttling

The request project is blocked due to throttling control. Please wait a few minutes before trying again.

由於流控原因,請求的專案處於阻塞狀態,請等待幾分鐘再操作。

400

ContentMD5NotMatched

Specified content md5 is not matched with your request body.

MD5校正不通過。

400

EntityTooLarge

The payload size exceeds maximum allowed size (%s bytes).

實體過大。

400

IllegalTimestamp

The input parameter \"Timestamp\" that is mandatory for processing this request is not supplied.

參數Timestamp不合法。

400

IncompleteSignature

The request signature does not conform to Aliyun standards.

簽名不匹配。

400

InvalidAction

Specified action is not valid.

操作不合法。

400

InvalidProtocolNeedSsl

Your request is denied as lack of ssl protect.

API只支援HTTPS協議。

400

InvalidSecurityTokenExpired

Specified SecurityToken is expired.

SecurityToken已到期。

400

InvalidSecurityTokenMalformed

Specified SecurityToken is malformed.

SecurityToken錯誤。

400

InvalidSecurityTokenMismatchWithAccessKey

Specified SecurityToken mismatch with the AccessKey.

SecurityToken與AccessKey不匹配。

400

InvalidSignatureMethod

Specified parameter signature method is not valid.

簽名方法不支援。

400

InvalidTimeStampExpired

Specified time stamp or date value is expired.

使用者請求時間和伺服器接收到請求的時間間隔大於15分鐘。

400

InvalidTimeStampFormat

Specified time stamp or date value is not well formatted.

時間戳記格式不正確。

400

MissingRequiredHeader

The required HTTP header %s was not specified.

缺少必要的請求Header。

400

SignatureNonceUsed

Specified signature nonce was used already.

指定的簽名已被使用。

400

SignatureNotMatch

Specified signature is not matched with our calculation.

簽名不匹配,AccessKey ID或AccessKey Secret配對錯誤。

400

UnsupportedAction

The requested action '%s' is not supported. Please check.

不支援的操作,請檢查。

400

UnsupportedAPIVersion

The requested API version '%s' is not supported yet. Please check.

不支援的API版本,請檢查。

403

ForbiddenAccessDenied

Request was denied due to isolation policy.

請求被隔離策略拒絕。

403

ForbiddenAccessKeyDisabled

The Access Key is disabled.

AccessKey無效。

403

ForbiddenProductDisabled

The target product is not enabled, try to enable it using web console or OpenAPI first.

目標產品未啟用,請嘗試在Web控制台或OpenAPI啟用。

403

InvalidAccessKeyID

Invalid access key ID '%s'.

AccessKey ID無效。

403

InvalidAccessKeyIDInactive

Specified access key is disabled.

AccessKey已被禁用。

403

UnsupportedSignatureMethod

This signature method is not supported.

簽名方法不支援。

403

UnsupportedSignatureType

This signature type is not supported.

簽名類型不支援。

404

InvalidAccessKeyIDNotFound

Specified access key is not found.

AccessKey不存在。

412

PreconditionFailed

The resource to be modified has been changed.

資源更新失敗,該資源可能已被更改。

415

UnsupportedMediaType

The content type must be 'application/x-www-form-urlencoded'.

請求訊息體類型錯誤。

常見錯誤及處理

常見錯誤

產生原因

處理方法

QuotaExhausted.CU

當前請求的API頻次,超過了建立Project時設定的CU限制。

該Project的預設CU限制為10,您可以控制用戶端請求的頻率來解決該問題。

SDK.InvalidRegionId

選擇的Region錯誤。

請確保已設定正確的地區同時使用的SDK為最新版本。

關於Intelligent Media Management已開通的Region請參見各地區支援的功能

Throttling.Api

API調用過於頻繁,超過API流量控制。

請檢查調用過程中是否存在迴圈。如果存在迴圈,請加入sleep來控制頻率。

該限制觸發後會在一定時間內解除。

Throttling.User

API調用過於頻繁,超過使用者流量控制。

請檢查調用過程中是否存在迴圈。如果存在迴圈,請加入sleep來控制頻率。

該限制觸發後會在一定時間內解除。