錯誤的參考碼

您正在查看 Apigee Edge 說明文件。
前往 Apigee X 說明文件
info

Apigee 為各種功能提供一組錯誤代碼,協助您診斷問題。舉例來說,典型的 4xx5xx HTTP 狀態碼可使用一或多個錯誤代碼進行分類。

錯誤代碼會提供執行階段錯誤的實用資訊,包括錯誤來源和名稱的資訊,格式如下:[prefix].[error_name]

例如:steps.raisefault.RaiseFault

在這個例子中:

  • steps.raisefault 是前置字串,表示 RaiseFault 政策產生了錯誤。
  • RaiseFault 是錯誤名稱,可協助您判斷錯誤的原因。在這種情況下,錯誤字串會提供更多資訊。

下表列出錯誤代碼的摘要,並依類別和子類別分類。

注意設定警示時,系統會依類別和子類別排列錯誤代碼,並顯示可供人類閱讀的名稱。比較指標之間的關係活動時,系統會顯示原始錯誤代碼。

類別 子類別 名稱 錯誤代碼

API 通訊協定

HTTP

HTTP BadFormData protocol.http.BadFormData
HTTP BadRequestPath protocol.http.BadPath
HTTP DuplicateHeader protocol.http.DuplicateHeader
HTTP EmptyHeaderName protocol.http.EmptyHeaderName
HTTP HeaderNameWithNonASCIICharacter protocol.http.HeaderNameWithNonAsciiChar
HTTP HeaderWithInvalidCharacter protocol.http.HeaderWithInvalidChar
HTTP InvalidRequestPath protocol.http.InvalidPath
HTTP LengthRequired messaging.adaptors.http.flow.LengthRequired
HTTP ProxyTunnelCreationFailed protocol.http.ProxyTunnelCreationFailed
HTTP RequestHasABigBody protocol.http.TooBigBody
HTTP RequestsHaveABigLine protocol.http.TooBigLine
HTTP Response306IsReserved protocol.http.Response306Reserved
HTTP Response405WithoutAllowHeader protocol.http.Response405WithoutAllowHeader
ResponseWithBodyForIncorrectStatusCode protocol.http.ResponseWithBody
HTTP TargetURLHasEmptyPath protocol.http.EmptyPath
HTTP TooBigHeaders protocol.http.TooBigHeaders
HTTP UnsupportedEncoding protocol.http.UnsupportedEncoding

開發人員/應用程式

金鑰管理

KeyManagement AccessTokenNotApproved keymanagement.service.access_token_not_approved
KeyManagement APIProductNotFound keymanagement.service.InvalidAPICallAsNoApiProductMatchFound
KeyManagement AppNotApproved keymanagement.service.invalid_client-app_not_approved
KeyManagement AppNotApproved keymanagement.service.app_not_approved
KeyManagement AuthorizationCodeExpired keymanagement.service.access_denied-authorization_code_expired
KeyManagement AuthorizationCodeinvalid keymanagement.service.invalid_request-authorization_code_invalid
KeyManagement ClientIDAuthorizationCodeMismatch keymanagement.service.invalid_client-client_id_authorzation_code_mismatch
KeyManagement ClientIDNotApproved keymanagement.service.invalid_client-client_id_not_approved
KeyManagement CompanyStatusNotActive keymanagement.service.CompanyStatusNotActive
KeyManagement 用戶端金鑰已過期 keymanagement.service.consumer_key_expired
KeyManagement DeveloperNotActive keymanagement.service.DeveloperStatusNotActive
KeyManagement InvalidAccessToken keymanagement.service.oauth10_access_token_doesnotexist
KeyManagement InvalidClientID keymanagement.service.InvalidClientIdForGivenResource
KeyManagement InvalidClientID keymanagement.service.invalid_client-client_id_authorzation_code_mismatch
KeyManagement InvalidClientID keymanagement.service.invalid_client-invalid_client_id
KeyManagement InvalidConsumerKey keymanagement.service.invalid_consumer_key
KeyManagement InvalidRefreshToken keymanagement.service.invalid_refresh_token
KeyManagement RefreshTokenExpired keymanagement.service.refresh_token_expired

擴充功能政策

JavaCallout

JavaCallout errorname 請參閱「JavaCallout 政策執行階段錯誤

JavaScript 說明文字

JavaScriptCallout errorname 請參閱「JavaScript 政策執行階段錯誤」一文

MessageLogging

MessageLogging StepDefinitionExecutionFailed steps.messagelogging.StepDefinitionExecutionFailed

Node 指令碼

NodeScript ExecutionError scripts.node.ScriptExecutionError

PythonScript

PythonScript errorname 請參閱「PythonScript 政策執行階段錯誤

指令碼

指令碼評估失敗 steps.script.ScriptEvaluationFailed

ServiceCallout

ServiceCallout errorname 請參閱「ServiceCallout 政策執行階段錯誤」一文。

閘道

Proxy

Gateway API 逾時 flow.APITimedOut
Gateway ApplicationNotFound messaging.adaptors.http.flow.ApplicationNotFound
Gateway DecompressionFailureAtRequest messaging.adaptors.http.flow.DecompressionFailureAtRequest
Gateway DecompressionFailureAtResponse messaging.adaptors.http.flow.DecompressionFailureAtResponse
Gateway KeyAliasNotFound security.util.KeyAliasNotFound
Gateway RouteToTargetFailed messaging.runtime.RouteFailed
Gateway SharedFlowNotFound flow.SharedFlowNotFound
Gateway TargetIsMissing messaging.runtime.TargetMissing

目標

閘道未能與目標端點握手 messaging.adaptors.http.flow.SslHandshakeFailed
Gateway TimeoutWithTargetOrCallout messaging.adaptors.http.flow.GatewayTimeout
Gateway TargetOrCalloutEndpointsNotAvailable messaging.adaptors.http.flow.ServiceUnavailable
Gateway TargetServerConfiguredInLoadBalancerIsDown messaging.adaptors.http.flow.NoActiveTargets
Gateway UnexpectedEOFAtTarget messaging.adaptors.http.flow.UnexpectedEOFAtTarget

其他

Gateway HTTPErrorResponseCode messaging.adaptors.http.flow.ErrorResponseCode

中介服務政策

AssignMessage

AssignMessage errorname 請參閱「AssignMessage 政策執行階段錯誤

ExtractVariables

ExtractVariables errorname 請參閱「ExtractVariables 政策執行階段錯誤

JSONtoXML

JSONtoXML errorname 請參閱「JSONtoXML 政策執行階段錯誤」一節。

KeyValueMap

KeyValueMap errorname 請參閱「KeyValueMapOperations 政策執行階段錯誤

MessageValidation

MessageValidation errorname 請參閱「SOAPMessageValidation 政策執行階段錯誤

RaiseFault

RaiseFault RaiseFaultException steps.raisefault.RaiseFault

XMLtoJSON

XMLtoJSON errorname 請參閱「XMLtoJSON 政策執行階段錯誤」一節。

XSLTransformation

XSLTransformation errorname 請參閱「XSLTransform 政策執行階段錯誤

營利

薄荷 undefined 產品 mintstep.undefinedProduct

安全性政策

AccessControl

AccessControl errorname 請參閱「AccessControl 政策執行階段錯誤

BasicAuthentication

BasicAuthentication errorname 請參閱「BasicAuthentication 政策執行階段錯誤

JSONThreatProtection

JSONThreatProtection errorname 請參閱「JSONThreatProtection 政策執行階段錯誤」一文。

JWT

JWT errorname 請參閱「JWT 政策執行階段錯誤

OAuth

OAuth errorname 請參閱「OAuth V2 政策執行階段錯誤

規則運算式防護

RegexProtection errorname 請參閱「RegularExpressionProtection 政策執行階段錯誤

SAMLAssertion

SAMLAssertion InvalidKeyStore steps.saml.generate.InvalidKeyStore
SAMLAssertion InvalidMediaType steps.saml.generate.InvalidMediaTpe
SAMLAssertion InvalidTrustStore steps.saml.validate.InvalidTrustStore
SAMLAssertion SAMLAssertionForNotBeforeConditionViolated steps.saml.validate.NotBeforeConditionViolated
SAMLAssertion SignatureValidationFailed steps.saml.validate.SignatureValidationFailed
SAMLAssertion XPathResolutionFailed steps.saml.validate.XPathResolutionFailed

XMLThreatProtection

XMLThreatProtection errorname 請參閱「XMLThreatProtection 政策執行階段錯誤

Sense

Sense

Sense RaiseFault messaging.runtime.SenseRaiseFault

流量管理政策

快取

快取 InvalidExpiryDatForCacheEntry messaging.config.beans.InvalidExpiryDateForCacheEntry

ConcurrentRateLimit

ConcurrentRateLimit ConcurrentRateLimitViolation policies.concurrentratelimit.ConcurrentRatelimitViolation

配額

配額 errorname 請參閱「配額政策執行階段錯誤」一文。

配額或 SpikeArrest

QuotaOrSpikeArrest InvalidMessageWeight policies.ratelimit.InvalidMessageWeight

ResetQuota

ResetQuota errorname 請參閱「ResetQuota 政策執行階段錯誤」一文。

SpikeArrest

SpikeArrest errorname 請參閱「SpikeArrest 政策執行階段錯誤