dotnet-sdk icon indicating copy to clipboard operation
dotnet-sdk copied to clipboard

StateManager.RemoveStateAsync inside a run-once reminder is logging unexpected 404 errors

Open repne opened this issue 4 years ago • 2 comments

This is happening in Dotnet 6 using Dapr.Actors.AspNetCore 1.5.0.

Expected Behavior

I have an actor that removes its own state after some time using a reminder:

  await RegisterReminderAsync(
      CleanUpReminderName,
      null,
      TimeSpan.FromDays(2),
      TimeSpan.FromMilliseconds(-1));

and in the actual reminder code, after checking that the state exist I have:

await StateManager.RemoveStateAsync(StateName);

The expectation is that the state is deleted and no errors are logged.

Actual Behavior

The state is correctly deleted but I get a spike of 404 errors with the format:

DELETE http://localhost:<daprPort>/v1.0/actors/<actorType>

No actor id, nor anything else, the URL simply looks truncated.

repne avatar Dec 06 '21 19:12 repne

@repne - Thanks for opening this issue! Where does that error message come from? Is your application logging it, or is the dapr runtime logging it?

halspang avatar Dec 20 '21 17:12 halspang

@repne - Thanks for opening this issue! Where does that error message come from? Is your application logging it, or is the dapr runtime logging it?

We are seeing this in appinsights using the appinsights dotnet sdk (not dapr own telemetry implementation). I will have more details once I'm back from holiday early January. Thanks for looking into this.

repne avatar Dec 21 '21 18:12 repne

@repne - Are you still having trouble here/can you provide a repro?

halspang avatar Aug 29 '22 23:08 halspang

I haven't seen the issue since 1.7 I think. We can close this.

repne avatar Aug 30 '22 09:08 repne