Regionhost issue

Hi,

I'm trying to create an api which will do bulk recording download. I'm trying it using node js.
when i'm setting environment getting region issue. below is the error.

Cannot read property 'us_west_2' of undefined

client.setEnvironment(platformClient.PureCloudRegionHosts.us_west_2);

This is the code i'm using for it.
Please help me to fix this error. Thanks in advance.

Hello,

What version of the Platform API Javascript SDK are you using?

Regards,

Hi,

Download Recordings (genesys.cloud)

This is the tutorial i'm following.

purecloud-platform-client-v2 this module also included.

Regards,

Have you added typescript to your project?
The sample was without. And you would have to define the type for platformClient & platformClient.PureCloudRegionHosts.

Regards,

As a side comment - specific to setting the region, you can also do:

client.setEnvironment('usw2.pure.cloud');

Regards,

Thanks, It worked.

Why the downloading time is more? It took more than 5 minutes for me to download 5 recordings.
image

The sample code is functioning fully synchronously on a single thread. Adding multithreading in your app and/or using async operations would allow you to process operations in parallel, which can significantly increase your app's throughput.

You can also open a case with Genesys Cloud Customer Care to investigate the download speeds.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.