Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deserialise error an Actor Reminder when using GetReminderAsync() #1464

Open
olitomlinson opened this issue Feb 21, 2025 · 4 comments
Open
Assignees
Milestone

Comments

@olitomlinson
Copy link

Expected Behavior

Calling .GetReminderAsync(String reminderName) shouldn't throw the following exception :

2025-02-21 19:33:53 Specified argument was out of the range of valid values.    at Dapr.Actors.Runtime.ConverterUtils.ConvertTimeSpanValueFromISO8601Format(String valueString)
2025-02-21 19:33:53    at Dapr.Actors.Runtime.ReminderInfo.DeserializeAsync(Stream stream)
2025-02-21 19:33:53    at Dapr.Actors.Runtime.DefaultActorTimerManager.DeserializeReminderAsync(Stream stream, ActorReminderToken token)
2025-02-21 19:33:53    at Dapr.Actors.Runtime.DefaultActorTimerManager.GetReminderAsync(ActorReminderToken token)
2025-02-21 19:33:53    at Dapr.Actors.Runtime.Actor.GetReminderAsync(String reminderName)

Actual Behavior

Should deserialize the Reminder correctly.

Steps to Reproduce the Problem

  • Create a Reminder on an Actor (await this.RegisterReminderAsync("Report", null, TimeSpan.FromSeconds(15), TimeSpan.FromSeconds(15));)
  • Call GetReminderAsync("Report")

Release Note

RELEASE NOTE:

@olitomlinson olitomlinson added the kind/bug Something isn't working label Feb 21, 2025
@WhitWaldo WhitWaldo self-assigned this Feb 21, 2025
@WhitWaldo WhitWaldo added this to the v1.15 milestone Feb 21, 2025
@WhitWaldo
Copy link
Contributor

This appears to have been an issue since at least 1.12 if not earlier in that the deserializer only supports ISO8601 values and not any of the other valid value formats (per the documentation).

@WhitWaldo WhitWaldo removed the kind/bug Something isn't working label Feb 21, 2025
@WhitWaldo WhitWaldo removed their assignment Feb 24, 2025
@siri-varma
Copy link
Contributor

/assign

@siri-varma
Copy link
Contributor

siri-varma commented Feb 25, 2025

I tried to repro with the 1.14.4 version but don't see this exception. I just ran the SDK examples DemoActor and ActorClient

Image

Image

@olitomlinson
Copy link
Author

@siri-varma try with the latest 1.15 runtime RC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants