Open syberen opened 2 weeks ago
The type is supposed to be str
. Can you try using slashes instead of dashes? For example: "2024/11/19T00:00:00Z"
I was able to repro that issue with both V1 and V2 models, so it doesn't look like it's an issue with the decorators. We don't do any parsing or altering of the value passed in the decorator, so it seems like the extension is expecting a particular format. A Node function app works similarly here.
Tbf, I'm not sure why the slashes would be the expected format here. If this also works for you, we can update the docs to mention this. If this format is difficult, we can look into adding some logic in the decorators that will convert a start_from_time
input value of "2024-11-19T00:00:00Z"
into "2024/11/19T00:00:00Z"
, but I'd have to confirm with the CosmosDB extension team what the expected format is.
Hi, thanks for you response. Switching to slashes does seem to work indeed!
Expected Behavior
The function is triggered with documents added from specified date and time
Actual Behavior
First of all, it is unclear what the type is of the
start_from_time
parameter (linked issue). Depending on the type of input a different error message occurs.When I try a string i.e.
"2023-06-01T00:00:00Z"
the following error occurs:When I try a datetime i.e.
datetime.fromisoformat("2023-06-01T00:00:00Z")
, the following error occurs:Steps to Reproduce
Relevant code being tried
Relevant log output
requirements.txt file
Where are you facing this problem?
Local - Core Tools
Function app name
No response
Additional Information
No response