Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Data action timing out after 20 seconds

    Posted 08-21-2025 17:12

    I have created a custom data action and set it's timeout to 60s. I expect the request to take anywhere from 30-60s. When I go to test this in the data action configuration, it consistently returns a 504 gateway timeout after about 20s. When I inspect the request on our server, it received and processed the request as expected. This leads me to believe the genesys proxy is aborting the request sooner than configured. I have tried overriding this value in a call flow and get the same 20s response timeout. I know this because I logged the result to Participant Data on the interaction.


    #Architect
    #DataActions

    ------------------------------
    Brennan Bugbee
    ------------------------------


  • 2.  RE: Data action timing out after 20 seconds

    Posted 08-23-2025 16:51

    Do you happen to see the address of the gateway that's sending the timeout?

    If not, Support can probably find out if it is the Genesys back end gateway, or an intermediate gateway somewhere in the path...or what. Doesn't sound like it is your own back end server sending it.



    ------------------------------
    George Ganahl GCCX-AI, GCP, GCSME, ICCE, ICHD, etc.
    Technical Adoption Champion
    Genesys
    2024 Community Member of the Year
    ------------------------------



  • 3.  RE: Data action timing out after 20 seconds

    Posted 08-25-2025 09:16

    the 20 second timeout is being enforced at the public API layer, and is not configurable.  The test execution will actually timeout at 19 seconds so that the timeout response can be returned within the Public API 20 second timeout window.  All of the relevant timeframes are documented here: https://help.mypurecloud.com/faqs/how-many-seconds-before-a-data-action-times-out/

    Note that a 30 second operation/response is not ideal, as it's very likely that will cause the org to start to encounter the Data Action concurrent execution limit.  A much better paradigm to look at is a "jobs style" API, sending your query to a jobs endpoint that will queue and marshal the long running operation and return a job ID as the response.  That job ID can then  be utilized with a second data action that can query for the status of the job and return the results.  This allows both endpoints to be very responsive (returning their responses in under a second) while still allowing the long running operation to process.  The Genesys Cloud Analytics Jobs endpoints are a good example of this pattern.



    ------------------------------
    Richard Schott
    Product Manager
    ------------------------------



  • 4.  RE: Data action timing out after 20 seconds

    Posted 08-25-2025 09:30

    Thank you, Richard.



    ------------------------------
    George Ganahl GCCX-AI, GCP, GCSME
    Technical Adoption Champion
    Genesys
    2024 Community Member of the Year
    ------------------------------



  • 5.  RE: Data action timing out after 20 seconds

    Posted 08-25-2025 10:32

    Thanks @Richard Schott for the documentation link. The concurrent execution limit is not something I had considered, so that is helpful to know. Incidentally, I did end up switching to a async job + polling approach. I'm hoping to play hold music during this operation and will need to figure out how to pair that with polling.



    ------------------------------
    Brennan Bugbee
    ------------------------------