Anyone know why the Genesys Cloud Data Action integration returns a 502 Bad Gateway error specifically when the payload includes a base64-encoded attachment exceeding 2MB? The integration uses the standard ServiceNow REST API endpoint (/api/now/table/incident) and has functioned correctly for months with smaller text-based payloads. The error occurs intermittently during peak hours in the Europe/London timezone, suggesting a potential timeout or load balancer issue rather than a configuration error.
The Architect flow constructs the JSON body using a Set Data node, mapping the transcript and metadata fields correctly. The webhook logs indicate that the request is successfully initiated from the Genesys Cloud side, but the response from ServiceNow is truncated or malformed. Inspecting the HTTP headers in the Data Action diagnostic logs reveals a Connection: close header from the upstream proxy, which is unusual for standard REST API interactions. The ServiceNow instance is on the Washington DC release, and the integration user has full administrative privileges with no rate limits currently enforced.
We have verified that the same payload works when tested directly via Postman using the identical OAuth2 token generated by the Genesys Cloud integration. This isolates the issue to the Genesys Cloud Data Action execution environment or the intermediate network path. The error code 502 suggests that the Genesys Cloud server acting as a reverse proxy for the outbound request received an invalid response from the ServiceNow server, or the connection was dropped before completion. The timeout settings in the Data Action are set to the default 30 seconds, which should be sufficient for this operation.
Is there a known limitation regarding payload size or binary data handling in the current version of the Data Action service? We are considering implementing a chunking mechanism or using a separate Azure Function to handle the attachment upload, but we want to confirm if this is a platform constraint first. Any insights into the specific behavior of the Genesys Cloud outbound proxy when handling large base64 strings would be appreciated.