Genesys Cloud - Developer Community!

 View Only

Sign Up

Expand all | Collapse all

Java platform SDK creates an invalid request to fetch operational console events

  • 1.  Java platform SDK creates an invalid request to fetch operational console events

    Posted 17 hours ago

    hi all, not sure if anyone has used Java platform SDK (using latest 251.0.0 version of the SDK) to fetch operations console events. I create the request like this:


    EventQueryRequest query = new EventQueryRequest();
    query.setInterval("2026-04-10T16:00:01/2026-04-12T22:59:59");

    However, the SDK adds another optional parameter list so this is what is actually sent in the body:

    {"interval":"2026-04-10T16:00:01/2026-04-12T22:59:59","eventDefinitionIds":[]}

    The eventdefinititionIds are used to filter which I dont want to do (adding all of them also creates a problem as there are way too many). So either the SDK should not add this attribute when the list is empty or the server should accept and ignore it.

    However, instead the server just sends HTTP 500. I tried to send this input in the developer portal and i get the same error. Has anyone made this working properly? I have just raised a genesys case too but it looks like an annoying bug to me.

    thansk,


    #PlatformSDK

    ------------------------------
    Zsolt Belicza
    Engineer
    ------------------------------


  • 2.  RE: Java platform SDK creates an invalid request to fetch operational console events

    Posted an hour ago

    Hi @Zsolt Belicza,

    This is a known edge-case. Although eventDefinitionIds is optional, the API does not handle an empty array ([]) correctly and ends up returning HTTP 500. Same thing happens when calling the API directly from the Developer Portal, so it's not only an SDK issue.

    Workaround: make sure eventDefinitionIds is not sent at all. If possible, set it to null so the SDK doesn't serialize it, or bypass the SDK and call the REST endpoint directly with only the interval field.

    Agree this should either be omitted by the SDK when empty, or ignored by the server. Raising a Genesys case is the right step.



    ------------------------------
    Cesar Padilla
    INDRA COLOMBIA
    ------------------------------