Genesys cloud cli export command failing with null pointer exception

Having some config trouble here when trying to export architect flows. the docs say to run ‘genesys cloud architect:flows:export’ but i get a 500 error. here is my json output:
{
“error”: “internal server error”,
“message”: “null”
}
why is the api returning this? i am using the latest java sdk wrapper. please help.