Legacy Dev Forum Posts

 View Only

Sign Up

platformClient.PureCloudRegionHosts['us_east_1'] returns incorrect URL

  • 1.  platformClient.PureCloudRegionHosts['us_east_1'] returns incorrect URL

    Posted 06-05-2025 18:03

    draeder | 2022-04-18 14:14:21 UTC | #1

    Following the tutorial from: https://developer.genesys.cloud/analyticsdatamanagement/recording/recordings-bulk-action

    const environment = platformClient.PureCloudRegionHosts['us_east_1'] returns mypurecloud.com.

    I ended up having to manually add environment = 'api.' + environment for the code to work.

    This is with the current NPM version of purecloud-platform-client-v2.


    Jerome.Saint-Marc | 2022-04-19 05:50:59 UTC | #2

    Hello,

    The fact that platformClient.PureCloudRegionHosts['us_east_1'] returns mypurecloud.com is expected/normal. When invoking client.setEnvironment(environment), the SDK sets two path: one for authentication (adding https://login. prefix to environment), one for api (adding https://api. prefix to environment).

    I have used the sdk few days ago (version 135 - out of nodejs) and didn't notice such issue.

    Regards,


    draeder | 2022-04-19 16:01:11 UTC | #3

    Okay, thank you for the clarification!


    system | 2022-05-20 16:01:28 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 14354