閱讀534 返回首頁    go 財經資訊


錯誤碼表__錯誤說明_API 網關-阿裏雲

錯誤代碼表

公共錯誤碼

報錯場景

錯誤碼

錯誤提示

狀態碼

建議

Domain不正確(通過Domain找不到Product)

InvalidProduct.NotFound

Cannot find product according to your specified domain.

404

請檢查調用的域名或產品配置中的域名是否正確

Api找不到
該API是Private類型,名單中沒有該用戶

InvalidApi.NotFound

Specified api is not found,
please check your url and method.

404

請檢查調用的API是否正確,需注意大小寫,確認是否配置了訪問控製

Api必須使用HTTPS協議

InvalidProtocol.NeedSsl

Your request is denied as lack of ssl protect.

400

請檢查API配置,是否配置成隻支持https

必填參數沒有填({}中替換成相應的參數名)

Missing{ParameterName}

{ParameterName} is mandatory for this action.

400

檢查調用時是否填寫提示的了此參數

AccessKeyId找不到

InvalidAccessKeyId.NotFound

Specified access key is not found.

404

請檢查調用時是否使用了正確的AccessKeyId

AccessKeyId被禁用

InvalidAccessKeyId.Inactive

Specified access key is disabled.

400

檢查AK是否可用,或是否與所在環境匹配

時間戳格式不對(Date和Timestamp)

InvalidTimeStamp.Format

Specified time stamp or date value is not well formatted.

400

參照《公共入參》檢查時間戳

用戶時間和服務器時間不在15分鍾內

InvalidTimeStamp.Expired

Specified time stamp or date value is expired.

400

參照《公共入參》檢查時間戳

SignatureNonce重複

SignatureNonceUsed

Specified signature nonce war used already.

400

MD5校驗不通過(ROA)

ContentMD5NotMatched

Specified content md5 is not matched with your request body.

400

返回值格式不正確(Format不支持)

InvalidParameter.Format

Specified parameter format is not valid.

400

支持XML/JSON,ROA方式支持application/json、application/xml。

返回值格式不正確(Accept不支持)

InvalidParameter.Accept

Specified parameter accept is not valid.

400

參數值校驗不通過

Invalid{ParameterName}

Specified parameter {ParameterName} is not valid.

400

Http請求方法不支持(API上回配置允許的請求方法)

UnsupportedHTTPMethod

Specified signature is not matched with our calculation.

400

簽名方法不支持

InvalidSignatureMethod

Specified signature method is not valid.

400

服務器端位置錯誤

InternalError

The request processing has failed
due to some unknown error.

500

服務暫時不可用(底層服務不可用)

ServiceUnavailable

The request has failed due to a temporary failure of the server.

503

建議檢查API配置中的Isp協議描述,並檢查接入方提供的服務是否正常

簽名不通過

SignatureDoesNotMatch

Specified signature is not matched with our calculation.

400

簽名不通過,請參照《簽名驗證》

參數取值不匹配(url和body體中的參數不匹配)

ValueMismatch.{ParameterName}

Multi-specified parameter {ParameterName} conflicts with each other.

400

用戶這個時段的流量已經超限

Throttling.User

Request was denied due to user flow control.

API這個時段的流量已經超限

Throttling.Api

Request was denied due to api flow control.

指定的content-length與body長度不匹配

ContentLengthDoesNotMatch

Specified content-length is not matched with the length of body.

400

指定的參數重複

RepeatedParameter. {ParameterName}

Specified parameter is repeated.

400

用戶這個時段的流量已經超限

Throttling.User

Request was denied due to user flow control.

400

API這個時段的流量已經超限

Throttling.Api

Request was denied due to api flow control.

400

缺少AccessKeyId

MissingSecurityToken

SecurityToken is mandatory for this action.

400

當AccessKeyId以”STS.”開頭時,走Token的鑒權邏輯。如果AccessKeyId以”STS.”但未提供SecurityToken參數(包括RPC和ROA)時報此錯誤

SecurityToken過期

InvalidSecurityToken.Expired

Specified SecurityToken is expired.

400

需檢查SecurityToken

客戶端錯誤(開放API)

錯誤代碼 描述 Http 狀態碼 語義 解決tips
Repeated%s The specified %s is repeated. 400 某參數重複(%s是占位符,實際調用會給出明確的參數名或提示。) 建議按照提示修改重複的參數後重試。
RepeatedCommit Resubmit request. 400 請求重複 請不要頻繁提交請求。
Missing%s The %s is mandatory for this action. 400 缺少參數%s 根據具體返回補充缺少的參數,重試請求。
MissingAppIdOrAppOwner AppId or AppOwner must have a valid value. 400 缺少參數AppId或者AppOwner 參數AppId和AppOwner不能同時為空。
Invalid%s The specified parameter %s value is not valid. 400 參數無效 根據返回提示的具體參數,查看相關參數約束,修改後重試。
NotFound%s Cannot find resource according to your specified %s. 400 找不到資源 根據指定的參數%s找不到資源,建議檢查%s是否正確。
InvalidFormat%s The specified parameter %s value is not well formatted. 400 參數格式錯誤 建議根據實際返回提示,查看%s的格式要求,修改後重試。
Duplicate%s The specified parameter %s value is duplicate. 400 參數重複 某請求參數不允許重複,建議檢查修正後重試。
DependencyViolation%s The specified %s has %s definitions. 400 參數依賴錯誤 指定參數被依賴,不能隨意刪除,請先解除依賴。
Forbidden%s Not allowed to operate on the specified %s. 403 無權操作/操作禁止 您無權執行該操作。
NoPermission User is not authorized to operate on the specified resource. 403 無權操作 RAM鑒權不通過。
ExceedLimit%s The specified %s count exceeds the limit. 400 超出個數限製 一般指用戶賬戶下創建的API、API分組或者APP超出個數限製。
UserNotFound The specified user can not be found. 404/td> 指定用戶找不到 根據輸入的用戶信息找不到該用戶。
DomainCertificateNotFound Cannot find the domain certificate. 400 指定域名證書不存在 建議檢查傳入的證書ID及名稱。
DomainNotResolved The specified domain has not been resolved. 400 指定域名未解析 需要將指定域名CNAME解析到分組的二級域名上,才能完成綁定。域名解析是在用戶域名購買的網站上操作。
InvalidICPLicense The specified domain have not got ICP license, or the ICP license does not belong to Aliyun. 400 域名備案不合格 要綁定的域名需要在阿裏雲做首次備案,已經在其他係統做備案的,需要在阿裏雲備案接入。備案接入需要獲取備案號,在阿裏雲有ECS且具有公網IP的,每個ECS有5個備案號。
Invalid%s.LengthLimit The parameter %s length exceeds the limit. 400 長度超限 參數%s超出長度限製,建議修正後重試。
InvalidApiDefault The ApiDefault value exceeds limit. 400 流控API默認值超過限製值 該值數值不能超過1億,與單位無關。如需上調請提工單申請。
InvalidAppDefault The AppDefault value must smaller than the UserDefault and ApiDefault. 400 AppDefault的值不符合規則 該值需要小於Api流控值和用戶流控值。
InvalidUserDefault The UserDefault value must bigger than the AppDefault and smaller than the ApiDefault. 400 UserDefault的值不符合規則 該值需要小於Api流控值並大於App流控值。
InvalidParamMapping Parameters must be fully mapped. 400 參數映射無效 創建API時,前後端參數映射需要是全映射。即每個入參都需要配置後端參數名稱。
InvalidOwnerAccount OwnerAccount is invalid. 400 APP所有者賬號無效 一般為操作授權時,輸入目標用戶的阿裏雲郵箱賬號,該賬號無效。建議檢查修正後重試。
ServiceForbidden Your Gateway service is forbidden by risk control. 400 API網關服務被風控(應該使用戶被風控吧) 請注意不要頻繁請求,建議稍後重試。若重試後仍未解決,可提工單谘詢。
ServiceUnOpen Your Gateway service has not been opened. 400 服務未開通 建議到阿裏雲官網開通一下 API 網關服務。
ServiceInDept Your API Gateway service is in dept. 400 (您的API網關)服務欠費 充值或者結算後重新開始使用。
EqualSignature The new signature is the same as the old. 400 新密鑰與舊的相等 修改後端簽名密鑰時,新設置的Key和Secret不能跟原來的一樣。
CertificateNotMatch The domain does not match the one in the certificate. 400 證書不匹配 指定域名與證書內域名不匹配。
CertificateKeyNotMatch The certificate private key does not match the public key. 400 證書密鑰不匹配 證書的公鑰和私鑰不匹配。
PrivateKeyEncrypted The certificate private key is encrypted, please upload the unencrypted version. 400 密鑰不能加密 證書私鑰加密了,要求上傳不加密的版本。
CertificateSecretKeyError The certificate private key is invalid. 400 證書私鑰錯誤 建議檢查後重新傳入。
InvalidApiServiceAddress The specified service address is not valid. 400 API 後端服務地址無效 配置的 API 後端服務地址無效。

客戶端錯誤(調用API)

錯誤代碼 Http 狀態碼 語義 解決tips
Throttled by USER Flow Control 403 因用戶流控被限製 一般是由於API服務商設置的用戶流控值導致被流控,可以聯係API服務商協商放寬限製。
Throttled by APP Flow Control 403 因APP流控被限製 一般是由於API服務商設置的APP流控值導致被流控,可以聯係API服務商協商放寬限製。
Throttled by API Flow Control 403 因API流控被限製 一般是由於API服務商設置的API流控值導致被流控,可以聯係API服務商協商放寬限製。
Throttled by DOMAIN Flow Control 403 因二級域名流控被限製 直接訪問二級域名調用API,每天被訪問次數上限1000次。
TThrottled by GROUP Flow Control 403 因分組流控被限製 每個分組有QPS限製,可以聯係API服務商反饋。
Quota Exhausted 403 調用次數已用完 購買的次數已用完。
Quota Expired 403 購買次數已過期 購買的次數已經過期。
User Arrears 403 用戶已欠費 請盡快充值續費。
Empty Request Body 400 body為空 請檢查請求Body內容。
Invalid Request Body 400 body無效 請檢查請求Body。
Invalid Param Location 400 參數位置錯誤 請求參數位置錯誤。
Unsupported Multipart 400 不支持上傳 不支持上傳文件。
Invalid Url 400 Url無效 請求的method、path或者環境不對。請參照錯誤說明《Invalid Url
Invalid Domain 400 域名無效 請求域名無效,根據域名找不到API。請聯係API服務商。
Invalid HttpMethod 400 HttpMethod無效 輸入的Method不合法。
Invalid AppKey 400 AppKey無效或不存在 請檢查傳入的AppKey。注意左右空格的影響。
Invalid AppSecret 400 App的Secret錯誤 檢查傳入的AppSecret。注意左右空格的影響。
Timestamp Expired 400 時間戳過時 請核對請求係統時間是否為標準時間。
Invalid Timestamp 400 時間戳不合法 請參照《請求簽名說明文檔》。
Empty Signature 404 簽名為空 請傳入簽名字符串,請參照《請求簽名說明文檔》。
Invalid Signature, Server StringToSign:%s 400 簽名無效 簽名無效,參照 Invalid Signature 錯誤說明
Invalid Content-MD5 400 Content-MD5 值不合法 請求Body為空,但傳入了MD5值,或MD5值計算錯誤。請參照《請求簽名說明文檔》。
Unauthorized 403 未被授權 APP未獲得要調用的API的授權。請參照錯誤說明《Unauthorized
Nonce Used 400 SignatureNonce已被使用一次 SignatureNonce不能被重複使用,請參見《簽名機製》。
API Not Found 400 找不到API 傳入的GroupId、Stage等參數不正確,或已下線。

服務器端錯誤(開放API)

錯誤代碼 描述 Http 狀態碼 語義 解決tips
ServiceUnavailable The request has failed due to a temporary failure of the server. 503 服務不可用 建議重試。
InternalError The request processing has failed due to some unknown error, exception or failure. 500 內部錯誤 建議重試。

服務器端錯誤(調用API)

錯誤代碼 Http 狀態碼 語義 解決tips
Internal Error 500 API網關內部錯誤 建議重試。
Failed To Invoke Backend Service 500 底層服務錯誤 API提供者底層服務錯誤,建議重試,如果重試多次仍然不可用,可聯係API服務商解決。
Service Unavailable 503 服務不可用 建議稍後重試。
Async Service 504 後端服務超時 建議稍後重試。

最後更新:2016-11-28 15:04:42

  上一篇:go HTTPS證書報錯__錯誤說明_API 網關-阿裏雲
  下一篇:go unsupportthechannelHTTP__錯誤說明_API 網關-阿裏雲