API返回的错误代码

Dapr API 错误代码的详细参考

For http calls made to Dapr runtime, when an error is encountered, an error json is returned in http response body. The json contains an error code and an descriptive error message, e.g. Json 包含错误代码和描述性错误消息,例如

  1. {
  2. "errorCode": "ERR_STATE_GET",
  3. "message": "Requested state key does not exist in state store."
  4. }
  5. }

下表列出了 Dapr 运行时返回的错误代码:

错误代码说明
ERR_ACTOR_INSTANCE_MISSING获取 actor 实例时出错。 Error getting an actor instance. This means that actor is now hosted in some other service replica.
ERR_ACTOR_RUNTIME_NOT_FOUND获取 actor 实例时出错。
ERR_ACTOR_REMINDER_CREATE为 actor 创建 reminders 时出错。
ERR_ACTOR_REMINDER_DELETE删除 actor 的 reminders 时出错。
ERR_ACTOR_TIMER_CREATE为 actor 创建 timer 时出错。
ERR_ACTOR_TIMER_DELETE删除 actor 的 timer 时出错。
ERR_ACTOR_REMINDER_GET获取 actor 的 reminders 时出错。
ERR_ACTOR_INVOKE_METHOD对 actor 调用方法时出错。
ERR_ACTOR_STATE_DELETE删除 actor 状态时出错。
ERR_ACTOR_STATE_GET获取 actor 的状态时出错。
ERR_ACTOR_STATE_TRANSACTION_SAVE存储 actor 状态时事务出错。
ERR_PUBSUB_NOT_FOUND引用 Dapr 运行时中的 Pub/Sub 组件时出错。
ERR_PUBSUB_PUBLISH_MESSAGE发布消息时出错。
ERR_PUBSUB_FORBIDDENError message forbidden by access controls.
ERR_PUBSUB_CLOUD_EVENTS_SERError serializing Pub/Sub event envelope.
ERR_STATE_STORE_NOT_FOUNDError referencing a state store not found.
ERR_STATE_STORES_NOT_CONFIGUREDError no state stores configured.
ERR_NOT_SUPPORTED_STATE_OPERATIONError transaction requested on a state store with no transaction support.
ERR_STATE_GETError getting a state for state store.
ERR_STATE_DELETEError deleting a state from state store.
ERR_STATE_SAVEError saving a state in state store.
ERR_INVOKE_OUTPUT_BINDINGError invoking an output binding.
ERR_MALFORMED_REQUESTError with a malformed request.
ERR_DIRECT_INVOKEError in direct invocation.
ERR_DESERIALIZE_HTTP_BODYError deserializing an HTTP request body.
ERR_SECRET_STORES_NOT_CONFIGUREDError that no secret store is configured.
ERR_SECRET_STORE_NOT_FOUNDError that specified secret store is not found.
ERR_HEALTH_NOT_READYError that Dapr is not ready.
ERR_METADATA_GETError parsing the Metadata information.

Last modified January 1, 0001