Skip to content

Stop fire_reminder crashing on a non-dict payload - #1211

Open
magic-peach wants to merge 1 commit into
dapr:mainfrom
magic-peach:fix/fire-reminder-non-dict-payload-crash
Open

magic-peach wants to merge 1 commit into
dapr:mainfrom
magic-peach:fix/fire-reminder-non-dict-payload-crash

Conversation

@magic-peach

Copy link
Copy Markdown

Description

The code deserializes the reminder request body then only builds reminder_data when it is a dict, with a comment saying to ignore it otherwise, but invoke_reminder always referenced reminder_data regardless, so a non-dict payload like JSON null raised a NameError instead of being ignored. Now returns early before building the closure when the payload is not a dict.

Issue reference

No existing issue tracks this; found while reviewing the actor reminder dispatch path.

Checklist

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

The code deserializes the reminder request body then only builds
reminder_data when it is a dict, with a comment saying to ignore it
otherwise, but invoke_reminder always referenced reminder_data
regardless, so a non-dict payload like JSON null raised a NameError
instead of being ignored. Now returns early before building the
closure when the payload is not a dict.

Signed-off-by: Akanksha Trehun <akankshatrehun@gmail.com>
@magic-peach
magic-peach requested review from a team as code owners September 14, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant