dapr / dapr/dotnet-sdk

Error actor instance is missing

Open
#1,184 4 comments 0 reactions 0 assignees View on GitHub
area/actor/runtime question
Dominant language
C#
Stars
1.2k
Forks
378
Avg merge
2d 1h
Merged PRs (30d)
6

Description

## Ask your question here
I'm using .NET 6 and Dapr.Actors.AspNetCore version 1.8.0. I have an error: "actor instance is missing" when trying to load state via this.StateManager.GetStateAsync(). This error is not always but often occurs. Below is some information. How can I fix it?

`Dapr.DaprApiException: actor instance is missing
at async Task Dapr.Actors.DaprHttpInteractor.SendAsyncHandleUnsuccessfulResponse(Func requestFunc, string relativeUri, CancellationToken cancellationToken)
at async Task Dapr.Actors.DaprHttpInteractor.SendAsync(Func requestFunc, string relativeUri, CancellationToken cancellationToken)
at async Task Dapr.Actors.DaprHttpInteractor.GetStateAsync(string actorType, string actorId, string keyName, CancellationToken cancellationToken)
at async Task> Dapr.Actors.Runtime.DaprStateProvider.TryLoadStateAsync(string actorType, string actorId, string stateName, CancellationToken cancellationToken)
at async Task> Dapr.Actors.Runtime.ActorStateManager.TryGetStateAsync(string stateName, CancellationToken cancellationToken)
at async Task Service.Actors.GetAccountFromStateManagerAsync(CancellationToken cancellationToken) in /src/Service/Actor.cs:line 127
at async void Service.Actors.OnOrderUpdateEvent(object sender, OrderUpdateEventArgs updateEvent) in /src/Actor.cs:line 236`

![dapper](https://github.com/dapr/dotnet-sdk/assets/13431623/ed389090-ec34-4a73-bed3-411ea259ae25)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.