[EventGrid/Core] CloudEvent.from_dict fails to convert a datetime string to datetime object when microsecond exceeds the python limitation #18602
Labels
blocking-release
Blocks release
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
Event Grid
Messaging
Messaging crew
Milestone
Describe the bug
CloudEvent.from_dict
fails to convert a datetime string to datetime object when the microsecond field exceeds the python limitation.The time in the input dictionary is "2021-05-10T14:39:23.5811478Z" (This value is set by the event grid service).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The sdks handles this instead of raising error or we give a more friendly error.
Additional context
python microseconds docs:
cc: @jongio
The text was updated successfully, but these errors were encountered: