Error codes reference guide

List of gRPC and HTTP error codes in Dapr and their descriptions

The following tables list the error codes returned by Dapr runtime. The error codes are returned in the response body of an HTTP request or in the ErrorInfo section of a gRPC status response, if one is present. An effort is underway to enrich all gRPC error responses according to the Richer Error Model. Error codes without a corresponding gRPC code indicate those errors have not yet been updated to this model.

Actors API

HTTP CodegRPC CodeDescription
ERR_ACTOR_INSTANCE_MISSINGMissing actor instance
ERR_ACTOR_INVOKE_METHODError invoking actor method
ERR_ACTOR_RUNTIME_NOT_FOUNDActor runtime not found
ERR_ACTOR_STATE_GETError getting actor state
ERR_ACTOR_STATE_TRANSACTION_SAVEError saving actor transaction
ERR_ACTOR_REMINDER_CREATEError creating actor reminder
ERR_ACTOR_REMINDER_DELETEError deleting actor reminder
ERR_ACTOR_REMINDER_GETError getting actor reminder
ERR_ACTOR_REMINDER_NON_HOSTEDReminder operation on non-hosted actor type
ERR_ACTOR_TIMER_CREATEError creating actor timer
ERR_ACTOR_NO_APP_CHANNELApp channel not initialized
ERR_ACTOR_STACK_DEPTHMaximum actor call stack depth exceeded
ERR_ACTOR_NO_PLACEMENTPlacement service not configured
ERR_ACTOR_RUNTIME_CLOSEDActor runtime is closed
ERR_ACTOR_NAMESPACE_REQUIREDActors must have a namespace configured when running in Kubernetes mode
ERR_ACTOR_NO_ADDRESSNo address found for actor

Workflows API

HTTP CodegRPC CodeDescription
ERR_GET_WORKFLOWError getting workflow
ERR_START_WORKFLOWError starting workflow
ERR_PAUSE_WORKFLOWError pausing workflow
ERR_RESUME_WORKFLOWError resuming workflow
ERR_TERMINATE_WORKFLOWError terminating workflow
ERR_PURGE_WORKFLOWError purging workflow
ERR_RAISE_EVENT_WORKFLOWError raising event in workflow
ERR_WORKFLOW_COMPONENT_MISSINGMissing workflow component
ERR_WORKFLOW_COMPONENT_NOT_FOUNDWorkflow component not found
ERR_WORKFLOW_EVENT_NAME_MISSINGMissing workflow event name
ERR_WORKFLOW_NAME_MISSINGWorkflow name not configured
ERR_INSTANCE_ID_INVALIDInvalid workflow instance ID. (Only alphanumeric and underscore characters are allowed)
ERR_INSTANCE_ID_NOT_FOUNDWorkflow instance ID not found
ERR_INSTANCE_ID_PROVIDED_MISSINGMissing workflow instance ID
ERR_INSTANCE_ID_TOO_LONGWorkflow instance ID too long

State management API

HTTP CodegRPC CodeDescription
ERR_STATE_TRANSACTIONError in state transaction
ERR_STATE_SAVEError saving state
ERR_STATE_GETError getting state
ERR_STATE_DELETEError deleting state
ERR_STATE_BULK_DELETEError deleting state in bulk
ERR_STATE_BULK_GETError getting state in bulk
ERR_NOT_SUPPORTED_STATE_OPERATIONOperation not supported in transaction
ERR_STATE_QUERYDAPR_STATE_QUERY_FAILEDError querying state
ERR_STATE_STORE_NOT_FOUNDDAPR_STATE_NOT_FOUNDState store not found
ERR_STATE_STORE_NOT_CONFIGUREDDAPR_STATE_NOT_CONFIGUREDState store not configured
ERR_STATE_STORE_NOT_SUPPORTEDDAPR_STATE_TRANSACTIONS_NOT_SUPPORTEDState store does not support transactions
ERR_STATE_STORE_NOT_SUPPORTEDDAPR_STATE_QUERYING_NOT_SUPPORTEDState store does not support querying
ERR_STATE_STORE_TOO_MANY_TRANSACTIONSDAPR_STATE_TOO_MANY_TRANSACTIONSToo many operations per transaction
ERR_MALFORMED_REQUESTDAPR_STATE_ILLEGAL_KEYInvalid key

Configuration API

HTTP CodegRPC CodeDescription
ERR_CONFIGURATION_GETError getting configuration
ERR_CONFIGURATION_STORE_NOT_CONFIGUREDConfiguration store not configured
ERR_CONFIGURATION_STORE_NOT_FOUNDConfiguration store not found
ERR_CONFIGURATION_SUBSCRIBEError subscribing to configuration
ERR_CONFIGURATION_UNSUBSCRIBEError unsubscribing from configuration

Crypto API

HTTP CodegRPC CodeDescription
ERR_CRYPTOError in crypto operation
ERR_CRYPTO_KEYError retrieving crypto key
ERR_CRYPTO_PROVIDER_NOT_FOUNDCrypto provider not found
ERR_CRYPTO_PROVIDERS_NOT_CONFIGUREDCrypto providers not configured

Secrets API

HTTP CodegRPC CodeDescription
ERR_SECRET_GETError getting secret
ERR_SECRET_STORE_NOT_FOUNDSecret store not found
ERR_SECRET_STORES_NOT_CONFIGUREDSecret store not configured
ERR_PERMISSION_DENIEDPermission denied by policy

Pub/Sub and messaging errors

HTTP CodegRPC CodeDescription
ERR_PUBSUB_EMPTYDAPR_PUBSUB_NAME_EMPTYPubsub name is empty
ERR_PUBSUB_NOT_FOUNDDAPR_PUBSUB_NOT_FOUNDPubsub not found
ERR_PUBSUB_NOT_FOUNDDAPR_PUBSUB_TEST_NOT_FOUNDPubsub not found
ERR_PUBSUB_NOT_CONFIGUREDDAPR_PUBSUB_NOT_CONFIGUREDPubsub not configured
ERR_TOPIC_NAME_EMPTYDAPR_PUBSUB_TOPIC_NAME_EMPTYTopic name is empty
ERR_PUBSUB_FORBIDDENDAPR_PUBSUB_FORBIDDENAccess to topic forbidden for APP ID
ERR_PUBSUB_PUBLISH_MESSAGEDAPR_PUBSUB_PUBLISH_MESSAGEError publishing message
ERR_PUBSUB_REQUEST_METADATADAPR_PUBSUB_METADATA_DESERIALIZATIONError deserializing metadata
ERR_PUBSUB_CLOUD_EVENTS_SERDAPR_PUBSUB_CLOUD_EVENT_CREATIONError creating CloudEvent
ERR_PUBSUB_EVENTS_SERDAPR_PUBSUB_MARSHAL_ENVELOPEError marshalling Cloud Event envelope
ERR_PUBSUB_EVENTS_SERDAPR_PUBSUB_MARSHAL_EVENTSError marshalling events to bytes
ERR_PUBSUB_EVENTS_SERDAPR_PUBSUB_UNMARSHAL_EVENTSError unmarshalling events
ERR_PUBLISH_OUTBOXError publishing message to outbox

Conversation API

HTTP CodegRPC CodeDescription
ERR_CONVERSATION_INVALID_PARMSInvalid parameters for conversation component
ERR_CONVERSATION_INVOKEError invoking conversation
ERR_CONVERSATION_MISSING_INPUTSMissing inputs for conversation
ERR_CONVERSATION_NOT_FOUNDConversation not found

Service Invocation / Direct Messaging API

HTTP CodegRPC CodeDescription
ERR_DIRECT_INVOKEError invoking service

Bindings API

HTTP CodegRPC CodeDescription
ERR_INVOKE_OUTPUT_BINDINGError invoking output binding

Distributed Lock API

HTTP CodegRPC CodeDescription
ERR_LOCK_STORE_NOT_CONFIGUREDLock store not configured
ERR_LOCK_STORE_NOT_FOUNDLock store not found
ERR_TRY_LOCKError acquiring lock
ERR_UNLOCKError releasing lock

Healthz

HTTP CodegRPC CodeDescription
ERR_HEALTH_NOT_READYDapr not ready
ERR_HEALTH_APPID_NOT_MATCHDapr App ID does not match
ERR_OUTBOUND_HEALTH_NOT_READYDapr outbound not ready

Common

HTTP CodegRPC CodeDescription
ERR_API_UNIMPLEMENTEDAPI not implemented
ERR_APP_CHANNEL_NILApp channel is nil
ERR_BAD_REQUESTBad request
ERR_BODY_READError reading request body
ERR_INTERNALInternal error
ERR_MALFORMED_REQUESTMalformed request
ERR_MALFORMED_REQUEST_DATAMalformed request data
ERR_MALFORMED_RESPONSEMalformed response

Scheduler/Jobs API

HTTP CodegRPC CodeDescription
DAPR_SCHEDULER_SCHEDULE_JOBDAPR_SCHEDULER_SCHEDULE_JOBError scheduling job
DAPR_SCHEDULER_JOB_NAMEDAPR_SCHEDULER_JOB_NAMEJob name should only be set in the url
DAPR_SCHEDULER_JOB_NAME_EMPTYDAPR_SCHEDULER_JOB_NAME_EMPTYJob name is empty
DAPR_SCHEDULER_GET_JOBDAPR_SCHEDULER_GET_JOBError getting job
DAPR_SCHEDULER_LIST_JOBSDAPR_SCHEDULER_LIST_JOBSError listing jobs
DAPR_SCHEDULER_DELETE_JOBDAPR_SCHEDULER_DELETE_JOBError deleting job
DAPR_SCHEDULER_EMPTYDAPR_SCHEDULER_EMPTYRequired argument is empty
DAPR_SCHEDULER_SCHEDULE_EMPTYDAPR_SCHEDULER_SCHEDULE_EMPTYNo schedule provided for job

Generic

HTTP CodegRPC CodeDescription
ERRORERRORGeneric error

Next steps


Last modified January 22, 2025: Apply suggestions from code review (cea7a7e9)