Export failure on /api/v2/analytics/reporting/exports

{"status": "Error", "code": "InternalServerError", "message": "An unexpected error occurred while processing the export request."}
This is hitting during bulk conversation detail extraction for a 30-day window. Using genesys-cloud-sdk-nodejs v4.12.0 to trigger the POST /api/v2/analytics/reporting/exports call.

Tried adjusting the interval size to reduce the load per request. Same result. There’s a similar thread on the community forums about export timeouts, but that was for a different region. Data volume is roughly 2.5M records.

// Use a smaller interval to avoid timeout
const exportRequest = {
 interval: "2023-10-01T00:00:00.000Z/2023-10-02T00:00:00.000Z"
};
await analyticsApi.postReportingExports(exportRequest);

The InternalServerError (500) indicates the backend timed out while aggregating 30 days of data. Why would the server fail on large windows? It can’t process the volume within the request limit. Breaking the 30-day window into 24-hour segments prevents the An unexpected error occurred while processing the export request. (500) failure.

1 Like

That worked. Split the 30-day window into 1-day chunks and the 500s stopped.