Running into a wall with a Data Action that queries NICE Cognigy. We’re trying to fetch a profile token and parse the response inside Architect. The HTTP call works fine in Postman, returns 200 OK with valid JSON. But in the Data Action, it’s throwing a 500 Internal Server Error on the parsing step.
The response from Cognigy looks like this:
{
"status": "success",
"data": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expires_in": 3600
}
}
The Data Action is configured with a JSON parser. I’ve mapped the output field to $.data.token. Standard dot notation. Nothing fancy. The error log just says “Invalid JSON” or “Parsing failed”. No specifics.
Tried a few things:
- Verified the raw response in the Architect logs. It’s definitely valid JSON. No BOM, no extra whitespace.
- Tried using a simple string parser action first. Same error.
- Checked if the token contains any weird characters. It’s base64, should be safe.
- Tested with a static JSON string in the parser. Works fine. So the parser itself isn’t broken.
The issue seems to be specifically when the Data Action tries to parse the dynamic response from the Cognigy endpoint. Is there a known issue with parsing nested JSON objects in Data Actions? Or maybe something with how the HTTP action passes the payload to the parser?
The endpoint is a custom integration. Using GET. Headers are set correctly. Authorization is handled via the integration config.
Anyone seen this before? What’s the trick to getting the parser to accept the response? Feeling stuck here.