错误代码参考

您正在查看 Apigee Edge 文档。
前往 Apigee X 文档
信息

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

节点脚本

NodeScript ExecutionError scripts.node.ScriptExecutionError

PythonScript

PythonScript errorname 请参阅 PythonScript 政策运行时错误

脚本

Script EvaluationFailed steps.script.ScriptEvaluationFailed

ServiceCallout

ServiceCallout errorname 请参阅 ServiceCallout 政策运行时错误

网关

代理

Gateway APITimedOut 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

目标

Gateway FailedHandshakeWithTargetEndpoint 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 政策运行时错误

获利

Mint UndefinedProduct 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

流量管理政策

缓存

Caching InvalidExpiryDatForCacheEntry messaging.config.beans.InvalidExpiryDateForCacheEntry

ConcurrentRateLimit

ConcurrentRateLimit ConcurrentRateLimitViolation policies.concurrentratelimit.ConcurrentRatelimitViolation

配额

Quota errorname 请参阅配额政策运行时错误

配额或 SpikeArrest

QuotaOrSpikeArrest InvalidMessageWeight policies.ratelimit.InvalidMessageWeight

ResetQuota

ResetQuota errorname 请参阅 ResetQuota 政策运行时错误

SpikeArrest

SpikeArrest errorname 请参阅 SpikeArrest 政策运行时错误