Closed MarcusKohnert closed 5 months ago
Hi @MarcusKohnert,
Does the JSON example come from a real scenario?
StartTime is indeed not nullable, and so does EndTime. I think we get a problem because start_time
is explicitely set to null, while end_time
isn't provided at all.
I think I need to track that one down internally. I'd like to know what is the normal behavior.
I'll keep you posted on that one.
Hi @Tr00d,
yes that event was produced in a real scenario and it is reproducible. If an outbound call is started and the receiver of the call rejects the call this event is send.
Here is another sample produced just now:
{
"headers": {},
"uuid": "b772e8f9-47fb-4e82-a27d-8c496a00a790",
"network": "26201",
"duration": "0",
"start_time": null,
"rate": "0.00000000",
"price": "0.00000000",
"from": [redacted],
"to": [redacted],
"conversation_uuid": "CON-d7724493-3465-4ee2-91de-c34cd1c508bd",
"status": "completed",
"direction": "outbound",
"timestamp": "2024-05-08T08:05:52.951Z"
}
Hi @MarcusKohnert,
This has been fixed in the latest version, v7.2.2.
Let me know if it works out for you.
Closing issue after two weeks. Don't hesitate to reach out if yoou face any problem.
Describe the bug I'm using the EventBase.ParseEvent method to parse the received webhook events.
Expected behaviour: The method is able to parse a Completed event send by Vonage.
Actual behaviour:
EventBase.ParseEvent
throws an exception becausestart_time
is null and StartTime is of type DateTime (which is not nullable).StackTrace
Environment: