Genesys-cloud-export fails on custom routing profiles

Running the genesys-cloud-export command to dump our entire org config for DR purposes. It’s choking on custom profiles. The command hangs for a bit then spits out a 404 on a specific resource type. I’ve checked the permissions and the admin user has full access, so it’s not that.

Here is the error output:

Exporting resource: customRoutingProfile
Error: GET https://api.mypurecloud.com/api/v2//profiles returned 404 Not Found

The profile definitely exists in the UI. I can see it and edit it. But the export tool can’t fetch it via the API. Is this a known bug with the Terraform provider or the export utility? We’re on the latest version of the CLI. Need this fixed before Friday or our DR run is a mess.

Cause: Double slash in the URL api/v2//profiles breaks the request. The export tool likely concatenates a trailing slash from the base URL with a leading slash from the resource path.

Solution: Strip trailing slashes from the base URL config in genesys-cloud-export. Check your env file or config JSON for baseUrl: "https://api.mypurecloud.com/". Remove that slash.