MART 記錄

如要排解 Apigee hybrid 中的 MART 問題,請查看記錄檔案。MART 記錄會寫入 stdout/stderr,您可以使用 kubectl logs 指令查看記錄。

在 Kubernetes 管理機器上執行下列指令:

kubectl logs pod_name -n namespace

詳情請參閱「記錄」。

MART 錯誤代碼

MART 記錄中可能會出現以下錯誤代碼:

錯誤 說明
ROUTING_SERVICE_NOT_ENABLED

routing.RoutingServiceNotEnabled

當 MART pod 中的這個檔案將 routing.service.enable 設為 false 時,就會發生這個問題:/opt/apigee/edge-hybrid-mart-server/conf/routing-service.properties
HYBRID_MART_SERVER_ENDPOINT_NOT_FOUND

routing.HybridMARTServerEndpointNotFound
當機構沒有 org 屬性值時,就會發生這個錯誤: features.mart.server.endpoint
HYBRID_AUTHN_AUTHZ_TOKEN_ERROR

routing.HybridAuthNAuthZTokenError

當 AuthN-AuthZ 服務傳回非 200 回應代碼或無效的權杖時,就會發生此錯誤
MART_ENDPOINT_REQUIRED

organizations.MartEndpointRequired

當 org 屬性 features.mart.server.endpoint 的值為空值或空白時,就會發生此錯誤。
HTTPS_MART_ENDPOINT_REQUIRED

organizations.HttpsMartEndpointRequired

當 org 屬性 features.mart.server.endpoint 的值開頭為「http://」,且 mart.routing.https.validation.enable 在 MART pod 的這個檔案中設為 true 時,就會發生這個問題:/opt/apigee/edge-hybrid-mart-server/conf/routing-service.properties