Just noticed that running genesyscloud architect flow export --all consistently fails with a 500 Internal Server Error for flows containing complex REST proxy actions, whereas the REST API /api/v2/architect/flows returns the JSON successfully.
Error: failed to export flow 'ivr_main': 500 Internal Server Error
Is there a known limitation in the CLI exporter for these specific flow types?
The main issue here is that the CLI exporter often chokes on circular references or unhandled nulls in complex REST proxy configurations, so bypass it by fetching the flow JSON directly via GET /api/v2/architect/flows/{id} and piping it to your IaC state.
Note: Verify the version field in the response matches your target environment to avoid deployment drift.
It depends, but generally… the CLI exporter is unstable for complex flows. I hit this constantly with my Svelte dashboard backend. The REST API works fine. Use fetch in a SvelteKit server route.
Get an access token via OAuth.
Fetch the flow JSON directly.
Handle pagination if needed.
Save to JSON file.
Here is the payload structure you need. Note the divisionId.
This issue stems from the CLI mishandling null properties in REST proxy actions. The API tolerates it, but the exporter doesn’t. Fetch directly via API and sanitize the JSON.