You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an actor that I used to send messages to an external party.
I have reminders and timers set in it and some state to track data I need to send.
Sometimes, the external party might be offline and not respond in the documented timeframe.
When this actor expires (deactivates), the onDeactivate callback is called.
When I try to delete the stored state in that callback or set the state to null, I get an error message.
Uncaught Error Error: {"error":"Bad Request","error_msg":"{\"errorCode\":\"ERR_ACTOR_INSTANCE_MISSING\",\"message\":\"actor instance is missing\"}","status":400}
at execute (actors/node_modules/@dapr/dapr/implementation/Client/HTTPClient/HTTPClient.js:172:19)
at processTicksAndRejections (internal/process/task_queues:95:5)
HTTPClient.js:172
Process exited with code 1
I have also tried to send a HTTP request to the actor state to delete the state and that also doesn't work. Is there a way to delete the actor's state when it gets deactivated?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have an actor that I used to send messages to an external party.
I have reminders and timers set in it and some state to track data I need to send.
Sometimes, the external party might be offline and not respond in the documented timeframe.
When this actor expires (deactivates), the
onDeactivate
callback is called.When I try to delete the stored state in that callback or set the state to null, I get an error message.
I have also tried to send a HTTP request to the actor state to delete the state and that also doesn't work. Is there a way to delete the actor's state when it gets deactivated?
Beta Was this translation helpful? Give feedback.
All reactions