Running into a wall with a Data Action trying to fetch user profile data from NICE Cognigy. The setup is straightforward. I have a Genesys Cloud user attribute cognigy_profile_id that I pass to the Cognigy API. The endpoint returns valid JSON, but the Data Action consistently fails with a JSON_PARSE_ERROR on the response body.
- Source: Genesys Cloud Architect Data Action
- Target:
https://api.nice.com/cognigy/v1/profiles/{id} - Auth: Bearer token passed in header
- Response Content-Type:
application/json - Payload Structure: Standard nested object with
attributesarray
The curl from my local machine (Lagos timezone, late night debugging) works fine. The response looks clean. Here is the raw JSON coming back from Cognigy:
{
"id": "p_12345",
"name": "Test User",
"attributes": [
{
"key": "loyalty_tier",
"value": "gold"
}
]
}
In the Data Action, I mapped the response to a JSON variable. The error log just says Failed to parse response as JSON. I’ve checked for BOM characters, trailing commas, nothing. Is Genesys Cloud’s internal JSON parser stricter than standard? Or is there a specific Content-Type header quirk I’m missing in the outbound request config? The request headers are set to Accept: application/json.