Yeah, I’m wrestling with a Node.js script to execute NICE CXone data actions against our legacy pricing endpoint, and the flow keeps hanging on the third retry. The template string interpolation for dynamic URL parameters works fine locally, but once the Data Action hits the CXone runtime, the HTTP client drops the connection after eight seconds. We’ve got a basic circuit breaker in place to stop the flow from locking up, yet it’s tripping way too early. Here’s the request builder we’re using:
const payload = {
method: ‘POST’,
url: https://api.vendor.com/v2/pricing?tenant=${flowVars.tenantId}®ion=${flowVars.region},
headers: { ‘Authorization’: Bearer ${flowVars.accessToken}, ‘Content-Type’: ‘application/json’ },
body: JSON.stringify({ sku: flowVars.sku, qty: flowVars.quantity })
};
The 504 Gateway Timeout keeps bubbling up from the vendor side, and the circuit breaker just kills the execution without logging the actual HTTP status code.
We need to map the response back through a JSON schema validator before the downstream flow processes it, but the retry logic with exponential backoff and jitter is swallowing the validation errors. Latency tracking and success rate counters are hooked up to the execution trail, yet the HTTP action profiler isn’t exposing the serialized request body when it fails. The schema validation throws a 422 Unprocessable Entity when the vendor returns a malformed array instead of the expected object structure. Can someone point out why the backoff jitter isn’t resetting the circuit breaker state before the next attempt? The flow just stalls and drops the call.