Running into a wall with a Data Action in Genesys Cloud Architect. I’m trying to pull a customer file from NICE Cognigy using their file token endpoint. The integration works fine in Postman, but the Data Action keeps failing with a generic JSON parsing error in the logs.
The endpoint is https://api.cognigy.ai/v1/files/{fileId}/data. I’m passing the auth token in the header and the file ID in the path. The response from Cognigy is valid JSON, but Genesys seems to choke on it during the response mapping phase.
Here’s the raw response I’m seeing in the debug logs:
{
"success": true,
"data": {
"customerId": "CUST-9921",
"tier": "gold",
"lastInteraction": "2023-10-25T14:30:00Z"
}
}
The Data Action configuration maps $.data.customerId to the output variable customerId. I’ve verified the JSON path is correct using an online validator. It works perfectly if I hardcode the JSON in the Data Action test. But when it hits the live endpoint, it fails.
I’ve tried:
- Adding
Content-Type: application/jsonto the request headers. - Wrapping the response in a try-catch block in the Architect flow (didn’t help, the error happens inside the Data Action execution).
- Checking for trailing commas or invisible characters in the Cognigy response (none found).
The error message in Genesys is just Failed to parse response body. No stack trace. No HTTP status code from Cognigy, since the call succeeds.
Is there a known issue with how Genesys parses nested JSON objects from external APIs? Or am I missing a specific header that forces strict JSON parsing?
Tried restarting the Data Action cache. No change.