Legacy Dev Forum Posts

 View Only

Sign Up

Conversation Analytics API Interval issue

  • 1.  Conversation Analytics API Interval issue

    Posted 06-05-2025 18:23

    Taras | 2022-08-27 10:33:30 UTC | #1

    Hi,

    I have an issue with Conversation Analytics API when granularity month, interval "2021-12-31T22:00:00.000Z/2022-03-31T20:59:59.000Z" and mediaType "voice"

    Error: {"error":"Unknown exception","errorMessage":"java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.IllegalArgumentException: The end instant must be greater than the start instant","errorClass":"java.lang.RuntimeException","host":"10.50.221.145:8083"}

    If I run same query but different interval "2021-12-29T22:00:00.000Z/2022-03-31T20:59:59.000Z" it works.

    Could you please explain what is the reason for such behavior?

    Best regards, Taras


    FredericVanLoock | 2022-08-29 23:46:25 UTC | #2

    Hi Taras,

    You have this error if your interval contains the month of February and the start is after the 29th. The start before yyyy-MM-29T23:59:59.000Z is accepted and the start after yyyy-MM-30T00:00:00.000Z raises an error.

    The following intervals work.

    "2022-01-29T23:59:59.000Z/2022-07-31T00:00:00.000Z"
    "2022-03-30T00:00:00.000Z/2022-07-31T00:00:00.000Z"

    This one doesn't work.

    "2022-01-30T00:00:00.000Z/2022-07-31T00:00:00.000Z"

    I suppose it comes from the way of constructing the monthly intervals and to avoid to skip the month of February.

    Best Regards, Frederic


    John_Carnell | 2022-09-16 13:06:10 UTC | #3


    This post was migrated from the old Developer Forum.

    ref: 16058