Quick question about… exporting Architect flows via the CX as Code CLI.
Error: HTTP 500 Internal Server Error
I’m trying to dump our entire Architect configuration for a backup before a major deployment. The standard genesyscloud architect flow export command works fine for small test flows, but it crashes hard when hitting our main IVR tree.
Here’s the command I’m running:
genesyscloud architect flow export --output-dir ./flows-backup --include-all
It hangs for about 15 seconds, then spits out this:
Error: Failed to export flow 'Main-IVR-Tree-v2': 500 Internal Server Error
Body: {"code":"internal.server.error","message":"An internal server error has occurred","status":"500","messageParameters":{"id":"..."}}
The flow itself is massive. We’re talking 400+ nodes with complex data actions and dynamic routing. I suspect the CLI is hitting a timeout or payload size limit on the GET /api/v2/architect/flows/{id} endpoint, but the error message is useless.
I’ve tried:
- Increasing the HTTP timeout in
~/.genesyscloud/genesyscloud.yamlto 300s. No change. - Exporting flows one by one via the API directly. The single large flow fails with 500, while smaller ones return 200 OK.
- Checking the Genesys Cloud admin logs. Nothing useful there, just the generic 500.
Is this a known issue with the CX as Code provider? Or am I doing something wrong with the export flags? I need a reliable way to get these JSON blobs out without the server choking on them.
My environment:
- CLI Version: 1.18.0
- Genesys Cloud Org: US01
- Flow Size: ~2.5MB JSON when exported manually via UI (which works, by the way)
Any ideas on how to bypass this or split the export?