Right - another day, another DATA ACTION headache. We’re hitting a 400 Bad Request on POSTs to our endpoint, and the error message is spectacularly unhelpful - “Invalid character encoding.” It’s happening on about 1 in 50 calls, completely random.
The flow is simple enough. Architect flow has a TRANSFER action, then a DATA ACTION. DATA ACTION URL is https://our-endpoint.com - standard stuff. We’re passing a JSON payload with customer details - name, account number, the usual.
The weird thing is the payload looks fine when we log it on our side. The request headers are all set up correctly - Content-Type: application/json, Accept: application/json. Been staring at the logs for hours.
We’re using the Java SDK, version 3.2.1. Tried encoding the payload as UTF-8 explicitly before sending - didn’t fix it. Checked the endpoint logs, and the request body is often garbled - looks like some characters are getting escaped twice or something. Not consistently, mind you.
Here’s an example of the request body we’re sending - the one that sometimes works, sometimes doesn’t:
{
"accountNumber": "1234567890",
"customerName": "John Doe",
"interactionId": "some-unique-id"
}
I’ve tried Base64 encoding the payload before POSTing, as a complete shot in the dark - that just made it throw a different 400 error. The endpoint itself is working perfectly when called directly with Postman.
Anyone else run into this? Honestly, at this point, I just need a workaround - a way to reliably get the data through. Thinking of adding a retry mechanism in Architect, but that feels like masking a real issue. We’ve got a DUCTION queue stalled because of this. The API documentation is useless, naturally.